]> granicus.if.org Git - openjpeg/commitdiff
Add jpylyzer tests for JP2 compression
authormayeut <mayeut@users.noreply.github.com>
Wed, 29 Jul 2015 23:33:04 +0000 (01:33 +0200)
committermayeut <mayeut@users.noreply.github.com>
Wed, 29 Jul 2015 23:33:04 +0000 (01:33 +0200)
Unify syntax

tests/nonregression/CMakeLists.txt

index 633ed20fb66e8a27966ffeea8b09cf6bc4f9acf5..ab90f03b0b17794bbf6bcd04dcc0b202318ff725 100644 (file)
@@ -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()