diff options
| author | Martin Hořeňovský | 2020-02-03 09:07:23 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-03 09:07:23 +0100 |
| commit | a3ffc20f57283178dab27d6cf0f1ff685ed6c4af (patch) | |
| tree | 22a128c8cb6f8bf5b45362d4bba88d5d3bcd8889 /tests/ExtraTests | |
| parent | b86ab201541d1e0e10db647cc0f64ab9fc112624 (diff) | |
| download | catch3-a3ffc20f57283178dab27d6cf0f1ff685ed6c4af.tar.gz | |
Provide CTest a hint on test costs (and thus ordering)
When running tests in parallel, CTest runs the tests in decreasing
order of cost (time required), to get the largest speed up from
parallelism. However, the initial cost estimates for all tests are
0, and they are only updated after a test run. This works on a dev
machine, where the tests are ran over and over again, because
eventually the estimates become quite precise, but CI always does
a clean build with 0 estimates.
Because we have 2 slow tests, we want them to run first to avoid
losing parallelism. To do this, we provide them with a cost estimate
manually.
Diffstat (limited to 'tests/ExtraTests')
| -rw-r--r-- | tests/ExtraTests/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt index b00ecf78..0001d940 100644 --- a/tests/ExtraTests/CMakeLists.txt +++ b/tests/ExtraTests/CMakeLists.txt @@ -128,6 +128,8 @@ set_tests_properties( BenchmarkingMacros PROPERTIES PASS_REGULAR_EXPRESSION "benchmark name samples iterations estimated" + COST 80 # We know that this is either the most, or second most, + # expensive test in the test suite, so we give it high estimate for CI runs ) # This test touches windows.h, so it should only be compiled under msvc |