Skip to content
Snippets Groups Projects
Commit ac1b3bd1 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Merge branch 'v2.3' into v2.4

parents 9fbad2ca db68da71
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,8 @@ dirs=$( ...@@ -30,6 +30,8 @@ dirs=$(
done done
) )
file1=$(mktemp)
file2=$(mktemp)
for dir in $dirs for dir in $dirs
do do
...@@ -38,22 +40,24 @@ do ...@@ -38,22 +40,24 @@ do
if [ -n "$html" ] ; then if [ -n "$html" ] ; then
fullname='<a href="'"$file"'">'"$file"'</a>' fullname='<a href="'"$file"'">'"$file"'</a>'
fi fi
if grep -q NOT_APPLIABLE $file ; then if grep -q NOT_APPLICABLE $file ; then
((notapp++)) ((notapp++))
echo + test $dir NOT APPLIABLE echo + test $dir NOT APPLICABLE >> $file1
echo + check file $fullname for more information echo + check file $fullname for more information >> $file1
elif grep -q FAILURE $file ; then elif grep -q FAILURE $file ; then
((nerror++)) ((nerror++))
echo + ERROR in test $dir echo + ERROR in test $dir >> $file2
echo + check file $fullname for more information echo + check file $fullname for more information >> $file2
else else
((nok++)) ((nok++))
fi fi
done done
cat $file1
cat $file2
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++" echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "+ Final report:" echo "+ Final report:"
echo "+ $((nok+nerror)) tests performed, $notapp tests not appliable" echo "+ $((nok+nerror)) tests performed, $notapp tests not applicable"
echo "+ $nerror errors found" echo "+ $nerror errors found"
if ((nerror==0)) ; then if ((nerror==0)) ; then
echo "+ Well done!!" echo "+ Well done!!"
...@@ -68,7 +72,7 @@ fi ...@@ -68,7 +72,7 @@ fi
if [ "$PLUMED_ALL_TESTS" = yes ] ; then if [ "$PLUMED_ALL_TESTS" = yes ] ; then
if (($notapp>0)) ; then if (($notapp>0)) ; then
echo "+ You are running with PLUMED_ALL_TESTS=yes and some tests are not appliable" echo "+ You are running with PLUMED_ALL_TESTS=yes and some tests are not applicable"
echo "+ This is likely happening on the first job under TRAVIS-CI" echo "+ This is likely happening on the first job under TRAVIS-CI"
echo "+ Please check that all modules have been properly enabled!" echo "+ Please check that all modules have been properly enabled!"
if [ -n "$fail" ] ; then if [ -n "$fail" ] ; then
......
...@@ -67,7 +67,7 @@ mpi="${PLUMED_MPIRUN:-mpirun} -np $mpiprocs" ...@@ -67,7 +67,7 @@ mpi="${PLUMED_MPIRUN:-mpirun} -np $mpiprocs"
if ! plumed config -q has mpi if ! plumed config -q has mpi
then then
echo "NOT_APPLIABLE (MPI NOT INSTALLED)" echo "NOT_APPLICABLE (MPI NOT INSTALLED)"
exit 0; exit 0;
fi fi
...@@ -79,7 +79,7 @@ fi ...@@ -79,7 +79,7 @@ fi
if ((mpiprocs>0)) && [[ "$valgrind" != "env" ]] if ((mpiprocs>0)) && [[ "$valgrind" != "env" ]]
then then
echo "NOT_APPLIABLE (MPI cannot be used with valgrind)" echo "NOT_APPLICABLE (MPI cannot be used with valgrind)"
exit 0; exit 0;
fi fi
...@@ -88,7 +88,7 @@ do ...@@ -88,7 +88,7 @@ do
echo "Checking for $need" echo "Checking for $need"
if ! $plumed config -q has $need if ! $plumed config -q has $need
then then
echo "NOT_APPLIABLE ($need NOT ENABLED)" echo "NOT_APPLICABLE ($need NOT ENABLED)"
exit 0; exit 0;
fi fi
done done
...@@ -98,7 +98,7 @@ do ...@@ -98,7 +98,7 @@ do
echo "Checking for $module" echo "Checking for $module"
if ! $plumed config -q module $module if ! $plumed config -q module $module
then then
echo "NOT_APPLIABLE ($module MODULE NOT INSTALLED)" echo "NOT_APPLICABLE ($module MODULE NOT INSTALLED)"
exit 0; exit 0;
fi fi
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment