You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document foreign ctest and test-install in install/CMake docs
Expand NRN_ENABLE_TESTS (in-tree vs test-install), wheel testing via
test/foreign, and cross-links from install instructions, developer
index, coverage, and GPU testing pages.
Copy file name to clipboardExpand all lines: docs/install/install_instructions.md
+29-11Lines changed: 29 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -330,29 +330,47 @@ step method. You can find detailed instructions [here](../coreneuron/index.rst)
330
330
331
331
#### Run integrated tests
332
332
333
-
**NEURON** includes also some unit and integration tests. To enable you need to setthe `CMake` flag **-DNRN\_ENABLE\_TESTS=ON**.
334
-
The tests lie in the`test` directory and cover various aspects of **NEURON**:
335
-
***CoreNEURON** integration (if enabled in build step)
336
-
*Functionality and result regression testfor [ringtest](https://github.com/neuronsimulator/ringtest) and [testcorenrn](https://github.com/neuronsimulator/testcorenrn)
337
-
*HOC interpreter tests
338
-
* Python interpreter tests
339
-
* Parallel Context tests
333
+
**NEURON** includes unit and integration tests. Enable them with the CMake
334
+
flag **-DNRN\_ENABLE\_TESTS=ON**. Sources live under`test/`and cover
335
+
(among other areas):
336
+
***CoreNEURON** integration (if enabled at configure time)
337
+
*Functionality and result regression testsfor [ringtest](https://github.com/neuronsimulator/ringtest) and [testcorenrn](https://github.com/neuronsimulator/testcorenrn)
338
+
*HOC and Python interpreter tests
339
+
* Parallel Context / MPI tests
340
340
* Rx3d tests
341
-
* Unit tests
342
-
* GapJunction tests
341
+
* C++ unit tests (Catch2)
342
+
* Gap junction tests
343
+
344
+
**In-tree tests** (against the build directory; includes linked unit tests):
343
345
344
-
To run the tests it's needed to:
345
346
```bash
346
347
cd nrn/build
347
348
cmake .. \
349
+
-G Ninja \
350
+
-DNRN_ENABLE_TESTS=ON \
348
351
-DNRN_ENABLE_INTERVIEWS=OFF \
349
352
-DNRN_ENABLE_MPI=OFF \
350
353
-DNRN_ENABLE_RX3D=OFF \
351
354
-DCMAKE_INSTALL_PREFIX=/path/to/install/directory
352
355
cmake --build . --parallel 8
353
-
ctest # use --parallel for speed, -R to run specific tests
356
+
ctest --output-on-failure -j8 # -R to select tests by name
357
+
```
358
+
359
+
**Install check** (portable suite against the install prefix; no rebuild of
360
+
`libnrniv`). After the same configure with `-DNRN_ENABLE_TESTS=ON`:
361
+
362
+
```bash
363
+
cmake --build . --target install
364
+
cmake --build . --target test-install
365
+
# creates build/build-ctest and runs a default serial foreign ctest
0 commit comments