CMakeLists.txt (813B)
1 # Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 # 3 # Use of this source code is governed by a BSD-style 4 # license that can be found in the LICENSE file. 5 6 if(BUILD_TESTING AND CMAKE_EXECUTABLE_SUFFIX STREQUAL "") 7 # Script to validate the tooling. 8 # Only add it when djxl being build. 9 if(JPEGXL_ENABLE_TOOLS) 10 find_program (BASH_PROGRAM bash) 11 if(BASH_PROGRAM) 12 add_test( 13 NAME conformance_tooling_test 14 COMMAND 15 ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/tooling_test.sh 16 ${CMAKE_BINARY_DIR} ${JPEGXL_TEST_DATA_PATH}) 17 # Skip the test if dependencies are not available. 18 set_tests_properties(conformance_tooling_test PROPERTIES SKIP_RETURN_CODE 254) 19 endif() # BASH_PROGRAM 20 endif() # JPEGXL_ENABLE_TOOLS 21 endif() # BUILD_TESTING