Skip to content

Commit

Permalink
Update cmake for better testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Ulmer committed Oct 24, 2024
1 parent 0e63689 commit 860959f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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()
Expand Down

0 comments on commit 860959f

Please sign in to comment.