Added coverage reports for all current tests
This commit is contained in:
parent
2a1ad1311a
commit
548a3d6b14
3 changed files with 7 additions and 2 deletions
|
@ -77,6 +77,7 @@ foreach(script ${SCRIPTS})
|
|||
add_test(${script} sh ${CMAKE_CURRENT_LIST_DIR}/tests/${script}.sh)
|
||||
set_property(TEST ${script} PROPERTY
|
||||
ENVIRONMENT "CRITERION_ALWAYS_SUCCEED=1"
|
||||
ENVIRONMENT "CRITERION_NO_EARLY_EXIT=1" # for coverage
|
||||
)
|
||||
|
||||
add_test(${script}_compare sh ${CMAKE_CURRENT_LIST_DIR}/tests/run_test.sh "${CMAKE_CURRENT_LIST_DIR}" . "${CMAKE_CURRENT_LIST_DIR}" tests/${script})
|
||||
|
@ -84,6 +85,7 @@ foreach(script ${SCRIPTS})
|
|||
ENVIRONMENT "LC_ALL=en_US.utf8"
|
||||
ENVIRONMENT "CRITERION_ALWAYS_SUCCEED=1"
|
||||
ENVIRONMENT "CRITERION_SHORT_FILENAME=1"
|
||||
ENVIRONMENT "CRITERION_NO_EARLY_EXIT=1" # for coverage
|
||||
)
|
||||
endforeach()
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
./simple.c.bin --no-early-exit --always-succeed
|
||||
./theories.c.bin --no-early-exit --always-succeed
|
||||
./simple.c.bin --always-succeed
|
||||
CRITERION_NO_EARLY_EXIT=0 ./simple.c.bin --always-succeed
|
||||
|
|
|
@ -16,3 +16,6 @@ target_link_libraries(criterion_unit_tests criterion)
|
|||
add_dependencies(criterion_tests criterion_unit_tests)
|
||||
|
||||
add_test(criterion_unit_tests criterion_unit_tests)
|
||||
set_property(TEST criterion_unit_tests PROPERTY
|
||||
ENVIRONMENT "CRITERION_NO_EARLY_EXIT=1" # for coverage
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue