build: explicitly set FAIL_REGULAR_EXPRESSION for tests

This commit is contained in:
Danny Robson 2018-07-16 11:28:04 +10:00
parent 49d39c4ede
commit 01ae59c19c

View File

@ -593,21 +593,25 @@ if (TESTS)
target_link_libraries(util_${name} PRIVATE cruft-util)
target_include_directories(util_${name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
add_test(NAME util_${name} COMMAND util_${name})
set_tests_properties(util_${name} PROPERTIES FAIL_REGULAR_EXPRESSION "not ok -")
endforeach(t)
foreach (jtest compare schema pointer)
configure_file ("test/json/${jtest}.py.in" "util_test_json_${jtest}.py" @ONLY)
add_test(NAME "util_test_json_${jtest}" COMMAND "util_test_json_${jtest}.py")
set_property(TEST "util_test_json_${jtest}" APPEND PROPERTY DEPENDS "util_json-${jtest}")
set_tests_properties(util_test_json_${jtest} PROPERTIES FAIL_REGULAR_EXPRESSION "not ok -")
endforeach()
configure_file (test/json-parse.sh.in util_test_json_parse.sh @ONLY)
add_test(NAME util_test_json_parse COMMAND util_test_json_parse.sh)
set_property(TEST util_test_json_parse APPEND PROPERTY DEPENDS util_json-validate)
set_tests_properties(util_test_json_parse PROPERTIES FAIL_REGULAR_EXPRESSION "not ok -")
configure_file (test/cpp.sh.in util_test_cpp.sh @ONLY)
add_test (NAME util_test_cpp COMMAND util_test_cpp.sh)
set_property (TEST util_test_cpp APPEND PROPERTY DEPENDS util_macro)
set_tests_properties(util_test_cpp PROPERTIES FAIL_REGULAR_EXPRESSION "not ok -")
endif ()