From 1931fc524ebdf780f9765cc48087c799c95f84b9 Mon Sep 17 00:00:00 2001 From: Derek G Foster Date: Fri, 1 Nov 2024 12:42:47 -0700 Subject: [PATCH] Fixed a testing issue (#167) - Added -L krnlmon to the ctest command line to limit its scope to the krnlmon unit tests. Signed-off-by: Derek Foster --- cmake/testing.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmake/testing.cmake b/cmake/testing.cmake index bcd4f77..198ddd1 100644 --- a/cmake/testing.cmake +++ b/cmake/testing.cmake @@ -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 @@ -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 @@ -80,7 +82,7 @@ add_custom_target(krnlmon-unit-tests DEPENDS ${test_targets} ) -unset(test_options) +unset(coverage_options) unset(test_targets) ####################