From fe261e431c6e8ac09562c6d7ca4c17faa4681c0f Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Wed, 7 Aug 2024 15:16:00 +0200 Subject: [PATCH] Pass code-generator name to usecase scripts. By passing the name of the code-generator to usecase scipts, we can store data during the `nocmodl` run; and compare during the `nmodl` run. --- test/usecases/run_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/usecases/run_test.sh b/test/usecases/run_test.sh index d8bcc34b2..99dde6879 100755 --- a/test/usecases/run_test.sh +++ b/test/usecases/run_test.sh @@ -9,7 +9,7 @@ function run_tests() { if [[ -f "$f" ]] then echo "${usecase_dir}/$f: started." - python "$f" + python "$f" $1 echo "${usecase_dir}/$f: success." fi done @@ -32,11 +32,11 @@ pushd "${usecase_dir}" > /dev/null echo "-- Running NRN+nocmodl ------" rm -r "${output_dir}" tmp || true nrnivmodl -run_tests +run_tests nocmodl # NRN + NMODL echo "-- Running NRN+NMODL --------" rm -r "${output_dir}" tmp || true nrnivmodl -nmodl "${nmodl}" -run_tests +run_tests nmodl