Remove ScriptTest.cpp, replace with test_conflict_set.py

CC #23
This commit is contained in:
2024-04-17 11:29:44 -07:00
parent fd93300ce8
commit 717f9d6829
10 changed files with 35 additions and 1006 deletions

View File

@@ -261,13 +261,14 @@ if(BUILD_TESTING)
# scripted tests. Written manually to fill in anything libfuzzer couldn't
# find.
add_executable(script_test ScriptTest.cpp)
target_compile_options(script_test PRIVATE ${TEST_FLAGS})
target_link_libraries(script_test PRIVATE ${PROJECT_NAME})
file(GLOB SCRIPT_TESTS ${CMAKE_SOURCE_DIR}/script_tests/*)
find_package(Python3 REQUIRED COMPONENTS Interpreter)
execute_process(
COMMAND ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR}/test_conflict_set.py list
OUTPUT_VARIABLE SCRIPT_TESTS)
foreach(TEST ${SCRIPT_TESTS})
get_filename_component(name ${TEST} NAME)
add_test(NAME conflict_set_script_${name} COMMAND script_test ${TEST})
add_test(NAME script_test_${TEST}
COMMAND ${Python3_EXECUTABLE}
${CMAKE_SOURCE_DIR}/test_conflict_set.py test ${TEST})
endforeach()
find_program(VALGRIND_EXE valgrind)