From 7da488cb933fdf51cfc14cb5810beb0766224380 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 6 May 2024 22:56:31 +0300 Subject: [PATCH] CMake: Add test_suffix.sh to the tests --- tests/tests.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/tests.cmake b/tests/tests.cmake index 5dd65e42..388a427e 100644 --- a/tests/tests.cmake +++ b/tests/tests.cmake @@ -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()