CMake: Add test_suffix.sh to the tests

This commit is contained in:
Lasse Collin 2024-05-06 22:56:31 +03:00
parent a805594ed0
commit 7da488cb93
1 changed files with 13 additions and 0 deletions

View File

@ -85,4 +85,17 @@ if(BUILD_TESTING)
SKIP_RETURN_CODE 77
)
endif()
if(UNIX AND HAVE_ENCODERS AND HAVE_DECODERS)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test_suffix")
add_test(NAME test_suffix.sh
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tests/test_suffix.sh" ".."
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test_suffix"
)
set_tests_properties(test_suffix.sh PROPERTIES
SKIP_RETURN_CODE 77
)
endif()
endif()