From cb06402ef1e536647efbad7e7ddb4e7bb02cd774 Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Wed, 18 Dec 2024 09:08:41 +0100 Subject: [PATCH] Fix tests --- test/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6555a87b23..9b2ac12283 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -797,9 +797,14 @@ function(add_modlunit_test mod_file) PARENT_SCOPE) endfunction() add_modlunit_test("${PROJECT_SOURCE_DIR}/test/pytest_coreneuron/unitstest.mod") -add_modlunit_test("${PROJECT_SOURCE_DIR}/src/nrnoc/hh.mod") -add_modlunit_test("${PROJECT_SOURCE_DIR}/src/nrnoc/stim.mod") -add_modlunit_test("${PROJECT_SOURCE_DIR}/src/nrnoc/pattern.mod") +if (NRN_ENABLE_CORENEURON OR NRN_ENABLE_MOD_COMPATIBILITY) + set(modfile_dir "modfiles/coreneuron") +else() + set(modfile_dir "modfiles/neuron") +endif() +add_modlunit_test("${PROJECT_SOURCE_DIR}/src/nrnoc/${modfile_dir}/hh.mod") +add_modlunit_test("${PROJECT_SOURCE_DIR}/src/nrnoc/${modfile_dir}/stim.mod") +add_modlunit_test("${PROJECT_SOURCE_DIR}/src/nrnoc/${modfile_dir}/pattern.mod") add_modlunit_test("${PROJECT_SOURCE_DIR}/test/hoctests/rand.mod") set_property(TEST modlunit_pattern PROPERTY WILL_FAIL ON)