]> granicus.if.org Git - openjpeg/commitdiff
fixed CTest configuration files
authorAntonin Descampe <antonin@gmail.com>
Thu, 30 Jun 2011 13:52:23 +0000 (13:52 +0000)
committerAntonin Descampe <antonin@gmail.com>
Thu, 30 Jun 2011 13:52:23 +0000 (13:52 +0000)
CHANGES
CMake/CTestCustom.cmake.in [moved from testing/CTestCustom.cmake.in with 100% similarity]
CMakeLists.txt
CTestConfig.cmake [moved from testing/CTestConfig.cmake with 100% similarity]
applications/codec/CMakeLists.txt

diff --git a/CHANGES b/CHANGES
index 5cd44304eeb47441e09f94b49b34aa962bd39117..252e7d355f2104cd7d83836afb3f567c28bb78ab 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,9 @@ What's New for OpenJPEG
 ! : changed
 + : added
 
+June 30, 2011
+! [antonin] fixed CTest configuration files
+
 June 3, 2011
 + [malaterre] adding partno and numpart info as part of the warning message (issue #69)
 + [malaterre] make sure that cmake build system works on debian
index bd73a34dfba36cf5e9c400c83a280a9d3e696e2d..d88594144a7c112d6909ab65c17ed27c8ad34682 100644 (file)
@@ -111,8 +111,8 @@ INCLUDE (${OPENJPEG_SOURCE_DIR}/CMake/CheckHaveGetopt.cmake )
 #-----------------------------------------------------------------------------
 # Setup file for setting custom ctest vars
 CONFIGURE_FILE(
-  ${CMAKE_SOURCE_DIR}/testing/CTestCustom.cmake.in
-  ${CMAKE_BINARY_DIR}/testing/CTestCustom.cmake
+  ${CMAKE_SOURCE_DIR}/CMake/CTestCustom.cmake.in
+  ${CMAKE_BINARY_DIR}/CTestCustom.cmake
   @ONLY
   )
 
@@ -201,6 +201,14 @@ CONFIGURE_FILE("${OPENJPEG_SOURCE_DIR}/opj_configh.cmake.in"
  @ONLY
  )
 
+#-----------------------------------------------------------------------------
+# CDash+CMake : to be updated
+OPTION(BUILD_TESTING "Build the tests." OFF)
+IF(BUILD_TESTING)
+  ENABLE_TESTING()
+  INCLUDE(CTest)
+ENDIF(BUILD_TESTING)
+
 #-----------------------------------------------------------------------------
 # Build Library
 INCLUDE_DIRECTORIES(BEFORE ${OPENJPEG_BINARY_DIR})
@@ -221,21 +229,18 @@ OPTION(BUILD_JPWL "Build the JPWL library and executables" OFF)
 ADD_SUBDIRECTORY(doc)
 
 #-----------------------------------------------------------------------------
-# CDash+CMake : to be updated
-OPTION(BUILD_TESTING "Build the tests." OFF)
+# Tests data
 IF(BUILD_TESTING)
-  ENABLE_TESTING()
-  INCLUDE(CTest)
-ENDIF(BUILD_TESTING)
 # Adding test with dataset from:
-# http://www.crc.ricoh.com/~gormish/jpeg2000conformance/
-# -> wget http://www.crc.ricoh.com/~gormish/jpeg2000conformance/j2kp4files_v1_5.zip
+# http://www.openjpeg.org/conformance/j2kp4files_v1_5.zip
+# -> wget http://www.openjpeg.org/conformance/j2kp4files_v1_5.zip
 # http://www.jpeg.org/jpeg2000guide/testimages/testimages.html
 # Adding JPEG2000_CONFORMANCE_DATA_ROOT
 FIND_PATH(JPEG2000_CONFORMANCE_DATA_ROOT testimages.html
   ${OPENJPEG_SOURCE_DIR}/../jpeg2000testimages
   $ENV{JPEG2000_CONFORMANCE_DATA_ROOT}
 )
+ENDIF(BUILD_TESTING)
 
 #-----------------------------------------------------------------------------
 # install all targets referenced as OPENJPEGTargets
similarity index 100%
rename from testing/CTestConfig.cmake
rename to CTestConfig.cmake
index 44f10872df91f426207daf4cb8e8025c1044f68b..1a25d3101fc0ab07ce0d9c9ce2241fe8e40ab9cf 100644 (file)
@@ -133,6 +133,7 @@ foreach(filename ${OPENJPEG_DATA_IMAGES_GLOB})
   endforeach(codec_type)
   foreach(codec_type ppm bmp tif tga png)
     ADD_TEST(i2j-${filename_temp}-${codec_type} ${EXECUTABLE_OUTPUT_PATH}/image_to_j2k -i ${filename_temp}.${codec_type} -o ${filename_temp}.${codec_type}${filename_ext})
+    SET_TESTS_PROPERTIES(i2j-${filename_temp}-${codec_type} PROPERTIES DEPENDS j2i-${filename_temp}-${codec_type})
     #if(UNIX)
     #  ADD_TEST(cmp-${filename_temp}-${codec_type} cmp ${filename} ${filename_temp}.${codec_type}${filename_ext})
     #endif(UNIX)