Skip to content

Commit 1b942e5

Browse files
authored
docs: merge tests/README.md and building_and_running_tests.rst
1 parent 1e8a363 commit 1b942e5

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

docs/building_and_running_tests.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,20 @@ following:
3131
and then used in oneMKL by setting ``-REF_BLAS_ROOT=/path/to/lapack/install``
3232
and ``-DREF_LAPACK_ROOT=/path/to/lapack/install``.
3333

34-
To run the tests, either use the CMake test driver, by running ``ctest``, or run
35-
individual test binaries individually.
34+
You can re-run tests without re-building the entire project.
35+
36+
To run the tests, either run test binaries individually, or use `ctest` CMake test driver program.
37+
38+
.. code-block:: bash
39+
40+
# Run all tests
41+
ctest
42+
# Run only Gpu specific tests
43+
ctest -R Gpu
44+
# Exclude Cpu tests
45+
ctest -E Cpu
46+
47+
For more `ctest` options, refer to `ctest manual page <https://cmake.org/cmake/help/v3.13/manual/ctest.1.html>`_.
3648

3749
When running tests you may encounter the issue ``BACKEND NOT FOUND EXCEPTION``,
3850
you may need to add your ``<oneMKL build directory>/lib`` to your

0 commit comments

Comments
 (0)