# 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()