fuzz CHANGE rename fuzz regression tests to start with regress_fuzz_ prefix
@@ -23,10 +23,10 @@ if (ENABLE_BUILD_TESTS)
set(fuzz_regression_tests lys_parse_mem lyd_parse_mem)
foreach(target_name IN LISTS fuzz_regression_tests)
file(COPY ${CMAKE_SOURCE_DIR}/tests/fuzz/corpus/${target_name} DESTINATION ${CMAKE_BINARY_DIR}/tests/fuzz/)
- add_executable(fuzz_${target_name}_test ${target_name}.c main.c $<TARGET_OBJECTS:yangobj>)
- set_target_properties(fuzz_${target_name}_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests/fuzz/${target_name}")
- target_link_libraries(fuzz_${target_name}_test yang)
- target_link_libraries(fuzz_${target_name}_test ${CMAKE_THREADS_LIB_INIT})
- add_test(NAME fuzz_${target_name}_test COMMAND fuzz_regression_test fuzz_${target_name}_test . WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/tests/fuzz/${target_name})
+ add_executable(regress_fuzz_${target_name} ${target_name}.c main.c $<TARGET_OBJECTS:yangobj>)
+ set_target_properties(regress_fuzz_${target_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests/fuzz/${target_name}")
+ target_link_libraries(regress_fuzz_${target_name} yang)
+ target_link_libraries(regress_fuzz_${target_name} ${CMAKE_THREADS_LIB_INIT})
+ add_test(NAME regress_fuzz_${target_name} COMMAND fuzz_regression_test regress_fuzz_${target_name} . WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/tests/fuzz/${target_name})
endforeach(target_name)
endif()
