Add jpylyzer tests for JP2 compression

Unify syntax
This commit is contained in:
mayeut 2015-07-30 01:33:04 +02:00
parent 1947323329
commit ae7953849b
1 changed files with 9 additions and 10 deletions

View File

@ -340,17 +340,16 @@ foreach(OPJ_TEST_CMD_LINE ${OPJ_TEST_CMD_LINE_LIST})
# Test the encoded file is a valid JP2 file # Test the encoded file is a valid JP2 file
if (JPYLYZER_EXECUTABLE) if (JPYLYZER_EXECUTABLE)
if (${OUTPUT_FILENAME} MATCHES "\\.jp2$") if (${OUTPUT_FILENAME} MATCHES "\\.jp2$")
add_test(NAME NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-jpylyser add_test(NAME NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-jpylyser
COMMAND ${JPYLYZER_EXECUTABLE} COMMAND ${JPYLYZER_EXECUTABLE}
${OUTPUT_FILENAME} ${OUTPUT_FILENAME}
) )
set_tests_properties(NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-jpylyser PROPERTIES set_tests_properties(NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-jpylyser PROPERTIES
DEPENDS NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-encode DEPENDS NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-encode
PASS_REGULAR_EXPRESSION "<isValidJP2>True</isValidJP2>" PASS_REGULAR_EXPRESSION "<isValidJP2>True</isValidJP2>"
) )
endif()
endif()
endif(JPYLYZER_EXECUTABLE) endif(JPYLYZER_EXECUTABLE)
endif() endif()