|
1 | 1 | # ============================================================================= |
2 | | -# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL |
| 2 | +# Copyright (c) 2016 - 2022 Blue Brain Project/EPFL |
3 | 3 | # |
4 | 4 | # See top-level LICENSE file for details. |
5 | 5 | # ============================================================================= |
@@ -59,48 +59,37 @@ endif() |
59 | 59 |
|
60 | 60 | # ~~~ |
61 | 61 | # As reports require MPI, do not add test if report is enabled. |
62 | | -# GPU tests need SLURM allocation and hence they won't run without srun |
63 | 62 | # ~~~ |
64 | | -if(NOT CORENRN_ENABLE_REPORTING AND NOT CORENRN_ENABLE_GPU) |
| 63 | +if(NOT CORENRN_ENABLE_REPORTING) |
65 | 64 | list( |
66 | 65 | APPEND |
67 | 66 | TEST_CASES_WITH_ARGS |
68 | 67 | "ring_serial!--tstop 100. --celsius 6.3 --datpath ${RING_DATASET_DIR} ${MODEL_STATS_ARG} --outpath ${CMAKE_CURRENT_BINARY_DIR}/ring_serial" |
69 | 68 | ) |
70 | 69 | endif() |
71 | 70 |
|
72 | | -set(NEGATIVE_TEST_CASES_WITH_ARGS |
73 | | - "ring_different_seed!${RING_COMMON_ARGS} ${GPU_ARGS} --outpath ${CMAKE_CURRENT_BINARY_DIR}/ring_different_seed --seed 123456" |
74 | | -) |
75 | | - |
76 | 71 | # ~~~ |
77 | 72 | # There are no directories for permute and multisend related tests, |
78 | 73 | # create them and copy reference spikes |
79 | 74 | # ~~~ |
80 | 75 | foreach(data_dir "ring" "ring_gap") |
81 | 76 | foreach( |
82 | 77 | test_suffix |
83 | | - "serial" |
84 | | - "multisend" |
85 | | - "binqueue" |
86 | | - "savestate_permute0" |
87 | | - "savestate_permute1" |
88 | | - "savestate_permute2" |
89 | | - "permute1" |
90 | | - "permute2" |
91 | | - "permute2_cudaInterface") |
| 78 | + "" |
| 79 | + "_serial" |
| 80 | + "_multisend" |
| 81 | + "_binqueue" |
| 82 | + "_savestate_permute0" |
| 83 | + "_savestate_permute1" |
| 84 | + "_savestate_permute2" |
| 85 | + "_permute1" |
| 86 | + "_permute2" |
| 87 | + "_permute2_cudaInterface") |
92 | 88 | file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/${data_dir}/out.dat.ref" |
93 | | - DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/${data_dir}_${test_suffix}/") |
| 89 | + DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/${data_dir}${test_suffix}/") |
94 | 90 | endforeach() |
95 | 91 | endforeach() |
96 | | - |
97 | | -# base tests : ring, ring with gap and ring duplication |
98 | | -foreach(data_dir "ring" "ring_gap") |
99 | | - file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/${data_dir}/out.dat.ref" |
100 | | - DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/${data_dir}/") |
101 | | -endforeach() |
102 | | - |
103 | | -# test for small spike buffer |
| 92 | +# test without ring_gap version |
104 | 93 | file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/ring/out.dat.ref" |
105 | 94 | DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/ring_spike_buffer/") |
106 | 95 |
|
@@ -132,25 +121,6 @@ foreach(args_line ${TEST_CASES_WITH_ARGS}) |
132 | 121 | list(APPEND CORENRN_TEST_NAMES ${TEST_NAME}_TEST) |
133 | 122 | endforeach() |
134 | 123 |
|
135 | | -foreach(args_line ${NEGATIVE_TEST_CASES}) |
136 | | - string(REPLACE "!" ";" string_line ${args_line}) |
137 | | - set(test_num_processors 1) |
138 | | - if(MPI_FOUND) |
139 | | - set(test_num_processors 2) |
140 | | - string(REPLACE ";" " " SRUN_PREFIX "${TEST_MPI_EXEC_BIN};-n;${test_num_processors}") |
141 | | - endif() |
142 | | - list(GET string_line 0 TEST_NAME) |
143 | | - list(GET string_line 1 TEST_ARGS) |
144 | | - set(SIM_NAME ${TEST_NAME}) |
145 | | - configure_file(negative_integration_test.sh.in ${TEST_NAME}/negative_integration_test.sh @ONLY) |
146 | | - add_test( |
147 | | - NAME ${TEST_NAME}_TEST |
148 | | - COMMAND "/bin/sh" ${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}/negative_integration_test.sh |
149 | | - WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}") |
150 | | - set_tests_properties(${TEST_NAME}_TEST PROPERTIES PROCESSORS ${test_num_processors}) |
151 | | - list(APPEND CORENRN_TEST_NAMES ${TEST_NAME}_TEST) |
152 | | -endforeach() |
153 | | - |
154 | 124 | if(CORENRN_ENABLE_REPORTING) |
155 | 125 | foreach(TEST_NAME "1") |
156 | 126 | set(SIM_NAME "reporting_${TEST_NAME}") |
|
0 commit comments