Skip to content

Commit

Permalink
Fixed a testing issue (#167)
Browse files Browse the repository at this point in the history
- Added -L krnlmon to the ctest command line to limit its scope
  to the krnlmon unit tests.

Signed-off-by: Derek Foster <[email protected]>
  • Loading branch information
ffoulkes authored Nov 1, 2024
1 parent db0a394 commit 1931fc5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmake/testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ endfunction()
################

if(TEST_COVERAGE)
set(test_options -T test -T coverage)
set(coverage_options -T test -T coverage)
endif()

set(test_targets
Expand All @@ -62,8 +62,10 @@ endif()
# minimum of configuration.
add_custom_target(krnlmon-test
COMMAND
ctest ${test_options}
ctest
-L krnlmon
--output-on-failure
${coverage_options}
DEPENDS
${test_targets}
WORKING_DIRECTORY
Expand All @@ -80,7 +82,7 @@ add_custom_target(krnlmon-unit-tests
DEPENDS ${test_targets}
)

unset(test_options)
unset(coverage_options)
unset(test_targets)

####################
Expand Down

0 comments on commit 1931fc5

Please sign in to comment.