parent
1947323329
commit
ae7953849b
|
@ -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 "<isValidJP2>True</isValidJP2>"
|
||||
)
|
||||
|
||||
endif()
|
||||
DEPENDS NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-encode
|
||||
PASS_REGULAR_EXPRESSION "<isValidJP2>True</isValidJP2>"
|
||||
)
|
||||
endif()
|
||||
endif(JPYLYZER_EXECUTABLE)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue