Skip to content

Commit 1989f8f

Browse files
committed
add quick_test target for tests
1 parent f1b75a7 commit 1989f8f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ if(GINKGO_BUILD_TESTS)
143143

144144
enable_testing()
145145
include(CTest)
146+
add_custom_target(quick_test "${CMAKE_CTEST_COMMAND}" -R 'core|reference')
146147
endif()
147148

148149
if(GINKGO_WITH_CLANG_TIDY)

TESTING.md

+11
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ run the following from the build folder:
2727

2828
where `path/to/test` is the path returned by `make test`.
2929

30+
#### Using make quick_test
31+
After compiling Ginkgo, use the following command inside the build folder to run
32+
a small subset of tests that should execute quickly:
33+
34+
```sh
35+
make quick_test
36+
```
37+
38+
These tests do not use GPU features except for a few device property queries, so
39+
they may still fail if Ginkgo was compiled with GPU support, but no such GPU is
40+
available. The output is equivalent to `make test`.
3041

3142
#### Using CTest
3243
The tests can also be ran through CTest from the command line, for example when

0 commit comments

Comments
 (0)