Skip to content

Commit

Permalink
Do not warn of differences in output log
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenin authored and giacomofiorin committed Sep 7, 2023
1 parent 497cb74 commit 39e3502
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 20 deletions.
6 changes: 2 additions & 4 deletions gromacs/tests/interface/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,8 @@ for dir in ${DIRLIST} ; do
fi
if [ $RETVAL -ne 0 ]
then
if [ ${base} != ${base%.out} ]
if [ ${base} == ${base%.out} ] # Ignore differences in stdout log
then
echo -n "(warning: differences in log file $base) "
else
echo -e "\n*** Failure for file $(${TPUT_RED})$base$(${TPUT_CLEAR}): see `pwd`/$base.diff "
SUCCESS=0
ALL_SUCCESS=0
Expand All @@ -321,7 +319,7 @@ for dir in ${DIRLIST} ; do
if [ "x${gen_ref_output}" == 'xyes' ]; then
echo "Reference files copied successfully."
else
echo "$(${TPUT_GREEN})Success!$(${TPUT_CLEAR})"
echo " $(${TPUT_GREEN})Success!$(${TPUT_CLEAR})"
fi
cleanup_files
fi
Expand Down
6 changes: 2 additions & 4 deletions gromacs/tests/library/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,8 @@ for dir in ${DIRLIST} ; do
fi
if [ $RETVAL -ne 0 ]
then
if [ ${base} != ${base%.out} ]
if [ ${base} == ${base%.out} ] # Ignore differences in stdout log
then
echo -n "(warning: differences in log file $base) "
else
echo -e "\n*** Failure for file $(${TPUT_RED})$base$(${TPUT_CLEAR}): see `pwd`/$base.diff "
SUCCESS=0
ALL_SUCCESS=0
Expand All @@ -275,7 +273,7 @@ for dir in ${DIRLIST} ; do
if [ "x${gen_ref_output}" == 'xyes' ]; then
echo "Reference files copied successfully."
else
echo "$(${TPUT_GREEN})Success!$(${TPUT_CLEAR})"
echo " $(${TPUT_GREEN})Success!$(${TPUT_CLEAR})"
fi
cleanup_files
fi
Expand Down
7 changes: 3 additions & 4 deletions lammps/tests/library/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ for dir in ${DIRLIST} ; do
"${extra_args[@]}" \
-echo log > /dev/null


# Output of Colvars module, minus the version numbers
for log_file in *.out ; do
if [ x${log_file%.colvars.out} != x${log_file} ] ; then
Expand Down Expand Up @@ -236,10 +237,8 @@ for dir in ${DIRLIST} ; do
RETVAL=$?
if [ $RETVAL -ne 0 ]
then
if [ ${base##*\.} = 'out' ]
if [ ${base} == ${base%.out} ] # Ignore differences in stdout log
then
echo -n "(warning: differences in log file $base) "
else
echo -e "\n*** Failure for file $(${TPUT_RED})$base$(${TPUT_CLEAR}): see `pwd`/$base.diff "
SUCCESS=0
ALL_SUCCESS=0
Expand Down Expand Up @@ -268,7 +267,7 @@ for dir in ${DIRLIST} ; do
if [ "x${gen_ref_output}" == 'xyes' ]; then
echo "Reference files copied successfully."
else
echo "$(${TPUT_GREEN})Success!$(${TPUT_CLEAR})"
echo " $(${TPUT_GREEN})Success!$(${TPUT_CLEAR})"
fi
cleanup_files
fi
Expand Down
6 changes: 2 additions & 4 deletions namd/tests/library/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,8 @@ for dir in ${DIRLIST} ; do
fi
if [ $RETVAL -ne 0 ]
then
if [ ${base} != ${base%.out} ]
if [ ${base} == ${base%.out} ] # Ignore differences in stdout log
then
echo -n "(warning: differences in log file $base) "
else
echo -e "\n*** Failure for file $(${TPUT_RED})$base$(${TPUT_CLEAR}): see `pwd`/$base.diff "
SUCCESS=0
ALL_SUCCESS=0
Expand Down Expand Up @@ -276,7 +274,7 @@ for dir in ${DIRLIST} ; do
if [ "x${gen_ref_output}" == 'xyes' ]; then
echo "Reference files copied successfully."
else
echo "$(${TPUT_GREEN})Success!$(${TPUT_CLEAR})"
echo " $(${TPUT_GREEN})Success!$(${TPUT_CLEAR})"
fi
cleanup_files
fi
Expand Down
6 changes: 2 additions & 4 deletions vmd/tests/interface/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ do
RETVAL=$?
if [ $RETVAL -ne 0 ]
then
if [ ${base##*\.} = 'out' ]
if [ ${base} == ${base%.out} ] # Ignore differences in stdout log
then
echo -n "(warning: differences in log file $base) "
else
echo -e "\n*** Failure for file $base: see $dir/$base.diff ***"
SUCCESS=0
ALL_SUCCESS=0
Expand All @@ -91,7 +89,7 @@ do

if [ $SUCCESS -eq 1 ]
then
echo "Success!"
echo " Success!"
cleanup_files
fi

Expand Down

0 comments on commit 39e3502

Please sign in to comment.