Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bceccc3406 | ||
|
|
001e192bb3 | ||
|
|
50032ffce3 |
+2
-10
@@ -63,15 +63,7 @@ endif()
|
|||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
include(Catch)
|
include(Catch)
|
||||||
|
catch_discover_tests(kpn_tests)
|
||||||
# DISCOVERY_MODE PRE_TEST defers test enumeration to `ctest` run time. The
|
|
||||||
# default (POST_BUILD) runs each test binary during the build to list its
|
|
||||||
# cases — which fails a sanitizer build: a TSan/ASan binary needs a fixed
|
|
||||||
# address-space layout and aborts on startup ("unexpected memory mapping")
|
|
||||||
# under the container's ASLR, breaking the build before any test runs. The
|
|
||||||
# tsan.yaml job invokes the binaries directly (not via ctest), so deferring
|
|
||||||
# discovery costs nothing there and keeps `ctest` working for normal builds.
|
|
||||||
catch_discover_tests(kpn_tests DISCOVERY_MODE PRE_TEST)
|
|
||||||
# Register the stress suite under its own label so CI can run / time it
|
# Register the stress suite under its own label so CI can run / time it
|
||||||
# separately from the fast unit tests.
|
# separately from the fast unit tests.
|
||||||
catch_discover_tests(kpn_tests_stress DISCOVERY_MODE PRE_TEST PROPERTIES LABELS "stress")
|
catch_discover_tests(kpn_tests_stress PROPERTIES LABELS "stress")
|
||||||
|
|||||||
Reference in New Issue
Block a user