From 3355d35de9ebc2b89100bfeb1f7bcc2b5ac17e44 Mon Sep 17 00:00:00 2001 From: Kevin M Jablonka <32935233+kjappelbaum@users.noreply.github.com> Date: Mon, 12 Dec 2022 12:45:40 +0100 Subject: [PATCH] chore: print test commands (#17) --- tests/run_tests.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 5c4b7cc..20da7bc 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -3,10 +3,9 @@ # Exit immediately if a command exits with a non-zero status. set -e -function check_changes -{ +function check_changes { #diff=`git diff-index --quiet HEAD --` - diff=`git diff --no-index $1 $2` + diff=$(git diff --no-index $1 $2) rm $1 if [ -n "$diff" ]; then echo "### Changes detected:" @@ -15,17 +14,27 @@ function check_changes fi } +echo "Testing network -xyz ZIF-67_opt.cif" network -xyz ZIF-67_opt.cif check_changes ZIF-67_opt.xyz ZIF-67_opt_ref.xyz +echo "Testing network -ha -res -allowAdjustCoordsAndCell EDI.cssr" network -ha -res -allowAdjustCoordsAndCell EDI.cssr check_changes EDI.res EDI_ref.res + +echo "Testing network -ha -chan 1.5 EDI.cssr" network -ha -chan 1.5 EDI.cssr check_changes EDI.chan EDI_ref.chan + +echo "Testing network -ha -sa 1.2 1.2 2000 EDI.cssr" network -ha -sa 1.2 1.2 2000 EDI.cssr check_changes EDI.sa EDI_ref.sa + +echo "Testing network -ha -vol 1.2 1.2 50000 EDI.cssr" network -ha -vol 1.2 1.2 50000 EDI.cssr check_changes EDI.vol EDI_ref.vol + +echo "Testing network -ha -psd 1.2 1.2 50000 EDI.cssr" network -ha -psd 1.2 1.2 50000 EDI.cssr check_changes EDI.psd_histo EDI_ref.psd_histo