From 9befe3c9712c9be487159fa155b412c8cfaa0595 Mon Sep 17 00:00:00 2001 From: Robert Ulmer Date: Thu, 24 Oct 2024 19:11:55 +0200 Subject: [PATCH] Update cmake for better testing --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e701350..649fd56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,8 +84,8 @@ FOREACH(test_type_dir ${test_types}) GET_FILENAME_COMPONENT(test_type ${test_type_dir} NAME) FILE(GLOB test_targets "${test_type_dir}/*/") FOREACH(test_target_dir ${test_targets}) + GET_FILENAME_COMPONENT(test_target ${test_target_dir} NAME) IF(IS_DIRECTORY ${test_target_dir}) - GET_FILENAME_COMPONENT(test_target ${test_target_dir} NAME) MESSAGE("----> ${test_target}") IF(${test_type} MATCHES io_tests) FILE(GLOB in_files "${test_target_dir}/*.in") @@ -105,7 +105,11 @@ FOREACH(test_type_dir ${test_types}) MESSAGE(FATAL_ERROR "Error: unknown test type ${test_type}") ENDIF() ELSE() - MESSAGE(FATAL_ERROR "${test_target_dir} is no directory") + string(COMPARE EQUAL ${test_target} .keep is_keep) + IF(${is_keep}) + ELSE() + MESSAGE(FATAL_ERROR "${test_target_dir} is no directory") + ENDIF() ENDIF() ENDFOREACH() ELSE()