Skip to content

Commit

Permalink
Pass code-generator name to usecase scripts.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
1uc committed Aug 7, 2024
1 parent 41c3a15 commit fe134d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/usecases/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit fe134d8

Please sign in to comment.