From ae7953849b5b1fdce160e07f83881c31b5dd35e9 Mon Sep 17 00:00:00 2001 From: mayeut Date: Thu, 30 Jul 2015 01:33:04 +0200 Subject: [PATCH] Add jpylyzer tests for JP2 compression Unify syntax --- tests/nonregression/CMakeLists.txt | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/tests/nonregression/CMakeLists.txt b/tests/nonregression/CMakeLists.txt index 633ed20f..ab90f03b 100644 --- a/tests/nonregression/CMakeLists.txt +++ b/tests/nonregression/CMakeLists.txt @@ -340,17 +340,16 @@ foreach(OPJ_TEST_CMD_LINE ${OPJ_TEST_CMD_LINE_LIST}) # Test the encoded file is a valid JP2 file if (JPYLYZER_EXECUTABLE) - if (${OUTPUT_FILENAME} MATCHES "\\.jp2$") - add_test(NAME NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-jpylyser - COMMAND ${JPYLYZER_EXECUTABLE} - ${OUTPUT_FILENAME} - ) + if (${OUTPUT_FILENAME} MATCHES "\\.jp2$") + add_test(NAME NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-jpylyser + COMMAND ${JPYLYZER_EXECUTABLE} + ${OUTPUT_FILENAME} + ) set_tests_properties(NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-jpylyser PROPERTIES - DEPENDS NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-encode - PASS_REGULAR_EXPRESSION "True" - ) - - endif() + DEPENDS NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-encode + PASS_REGULAR_EXPRESSION "True" + ) + endif() endif(JPYLYZER_EXECUTABLE) endif() -- 2.40.0