Skip to content

Commit

Permalink
Tighten up --skip-benchmarks test
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Apr 23, 2022
1 parent 468f80e commit fe44137
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,17 @@ add_test(NAME CheckConvenienceHeaders

add_test(NAME "Benchmarking::SkipBenchmarkMacros"
COMMAND
$<TARGET_FILE:SelfTest> "Skip benchmark macros" --skip-benchmarks
$<TARGET_FILE:SelfTest> "Skip benchmark macros"
--reporter console
--skip-benchmarks
)
set_tests_properties("Benchmarking::SkipBenchmarkMacros"
PROPERTIES
PASS_REGULAR_EXPRESSION "All tests passed \\(2 assertions in 1 test case\\)"
FAIL_REGULAR_EXPRESSION "benchmark name"
)


add_test(NAME "Benchmarking::FailureReporting::OptimizedOut"
COMMAND
$<TARGET_FILE:SelfTest> "Failing benchmarks" -c "empty" -r xml
Expand Down

0 comments on commit fe44137

Please # to comment.