summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2011-12-21 10:19:36 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2011-12-21 10:19:36 +0000
commit51ae8b7926b235ada3ba173d486f2536764527d9 (patch)
tree789aa4e8d68eef53f1f28043e236eaa3d60183d4 /tests
parent3280dc344f44c501e43d1fdfc27936f4220fe3a7 (diff)
minor doc tweak
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt37
-rw-r--r--tests/nonregression/test_suite.ctest.in28
2 files changed, 35 insertions, 30 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0a6215c4..2db27bb6 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,26 +1,29 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-
-INCLUDE_DIRECTORIES(${OPENJPEG_SOURCE_DIR}/libopenjpeg
- ${OPENJPEG_SOURCE_DIR}/applications/codec
- ${OPENJPEG_SOURCE_DIR}/applications/common
- ${Z_INCLUDE_DIRNAME}
- ${PNG_INCLUDE_DIRNAME}
- ${TIFF_INCLUDE_DIRNAME}
- )
+# Tests
+INCLUDE_DIRECTORIES(
+ ${OPENJPEG_SOURCE_DIR}/libopenjpeg
+ ${OPENJPEG_SOURCE_DIR}/applications/codec
+ ${OPENJPEG_SOURCE_DIR}/applications/common
+ ${Z_INCLUDE_DIRNAME}
+ ${PNG_INCLUDE_DIRNAME}
+ ${TIFF_INCLUDE_DIRNAME}
+ )
# First thing define the common source:
-SET(comparePGXimages_SRCS comparePGXimages.c ${OPENJPEG_SOURCE_DIR}/applications/codec/convert.c ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
+SET(comparePGXimages_SRCS comparePGXimages.c
+ ${OPENJPEG_SOURCE_DIR}/applications/codec/convert.c
+ ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c
+ )
-SET(compare_dump_files_SRCS compare_dump_files.c ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
+SET(compare_dump_files_SRCS compare_dump_files.c
+ ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
-SET(compareRAWimages_SRCS compareRAWimages.c ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
+SET(compareRAWimages_SRCS compareRAWimages.c
+ ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c)
ADD_EXECUTABLE(comparePGXimages ${comparePGXimages_SRCS})
-TARGET_LINK_LIBRARIES(comparePGXimages ${OPENJPEG_LIBRARY_NAME}
- ${Z_LIBNAME}
- ${PNG_LIBNAME}
- ${TIFF_LIBNAME}
- )
+TARGET_LINK_LIBRARIES(comparePGXimages
+ ${OPENJPEG_LIBRARY_NAME} ${Z_LIBNAME}
+ ${PNG_LIBNAME} ${TIFF_LIBNAME})
ADD_EXECUTABLE(compare_dump_files ${compare_dump_files_SRCS})
diff --git a/tests/nonregression/test_suite.ctest.in b/tests/nonregression/test_suite.ctest.in
index ba89ef7c..c5310547 100644
--- a/tests/nonregression/test_suite.ctest.in
+++ b/tests/nonregression/test_suite.ctest.in
@@ -1,19 +1,21 @@
-# This file list all the input commands of the tests run by the ctest command which
-# are not related to the conformance files.
+# This file list all the input commands of the tests run by the ctest command
+# which are not related to the conformance files.
#
-# For each line of this file (exept line which begin with #) an image_to_j2k test or a
-# j2k_to_image is run and its related tests.
-# + For encoder related tests = dump, compare dump to base, decode the encoded file with
-# reference and compare the decoded file with the baseline decoded previously with
-# ref decoder.
-# + For decoder related tests = dump, compare dump to base, (TODO: compare outpout decoding
-# image to base)
+# For each line of this file (exept line which begin with #) an image_to_j2k
+# test or a j2k_to_image is run and its related tests.
+# + For encoder related tests = dump, compare dump to base, decode the
+# encoded file with reference and compare the decoded file with the baseline
+# decoded previously with ref decoder.
+# + For decoder related tests = dump, compare dump to base, (TODO: compare
+# outpout decoding image to base)
#
-# Line begin with ! should failed (should be used for bad jpeg2000 file which should be
-# gracefully rejected)
+# Line begining with ! should fail (use for bad jpeg2000 file which should
+# gracefully be rejected)
#
-# You can use @INPUT_NR_PATH@ and @TEMP_PATH@ cmake variable which refers to OPJ_DATA_ROOT
-# repository. However you can use relative path or absolute path.
+# You can use @INPUT_NR_PATH@ and @TEMP_PATH@ cmake variable which refers to
+# OPJ_DATA_ROOT repository. You can use either relative path or absolute path.
+# However you cannot have space in the path for neither INPUT_NR_PATH nor
+# TEMP_PATH
# ENCODER TEST SUITE
image_to_j2k -i @INPUT_NR_PATH@/Bretagne1.ppm -o @TEMP_PATH@/Bretagne1_0.j2k -r 200,50,10