ENH: Add very simple tests (simply run command line with no option)

This commit is contained in:
Mathieu Malaterre 2007-09-06 16:38:06 +00:00
parent dfcacb8247
commit 8ac5e7023c
3 changed files with 10 additions and 8 deletions

View File

@ -81,7 +81,7 @@ ENDIF(BUILD_DOCUMENTATION)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# For openjpeg team if they ever want Dart+CMake # For openjpeg team if they ever want Dart+CMake
IF(OPJ_STANDALONE) IF(OPENJPEG_STANDALONE)
INCLUDE(Dart) INCLUDE(Dart)
MARK_AS_ADVANCED(BUILD_TESTING DART_ROOT TCL_TCLSH) MARK_AS_ADVANCED(BUILD_TESTING DART_ROOT TCL_TCLSH)
IF(BUILD_TESTING) IF(BUILD_TESTING)
@ -89,7 +89,7 @@ IF(OPJ_STANDALONE)
SET(BUILDNAME "OpenJPEG-${CMAKE_SYSTEM}-${CMAKE_C_COMPILER}" CACHE STRING "Name of build on the dashboard") SET(BUILDNAME "OpenJPEG-${CMAKE_SYSTEM}-${CMAKE_C_COMPILER}" CACHE STRING "Name of build on the dashboard")
MARK_AS_ADVANCED(BUILDNAME) MARK_AS_ADVANCED(BUILDNAME)
ENDIF(BUILD_TESTING) ENDIF(BUILD_TESTING)
ENDIF(OPJ_STANDALONE) ENDIF(OPENJPEG_STANDALONE)
# TODO, technically we should add tests, e.g: # TODO, technically we should add tests, e.g:
# http://www.crc.ricoh.com/~gormish/jpeg2000conformance/ # http://www.crc.ricoh.com/~gormish/jpeg2000conformance/

View File

@ -6,13 +6,14 @@ What's New for OpenJPEG
+ : added + : added
September 6, 2007 September 6, 2007
* [Mathieu Malaterre] CMake: start compiling mj2, jpwl and jp3d + [Mathieu Malaterre] CMake: start compiling mj2, jpwl and jp3d
* [Mathieu Malaterre] CMake: output all executable/libs into one single directory + [Mathieu Malaterre] CMake: output all executable/libs into one single directory
* [Mathieu Malaterre] CMake: start compiling index_create + [Mathieu Malaterre] CMake: start compiling index_create
* [Mathieu Malaterre] OpenJPEG.rc update copyright year + [Mathieu Malaterre] OpenJPEG.rc update copyright year
* [Mathieu Malaterre] CMake: add Java j2kviewer but do not compile it using cmake since cmake has too poor support for Java. Should create a custom command running ant instead. + [Mathieu Malaterre] CMake: add Java j2kviewer but do not compile it using cmake since cmake has too poor support for Java. Should create a custom command running ant instead.
* [Mathieu Malaterre] CMake: Add doxygen output + [Mathieu Malaterre] CMake: Add doxygen output
+ [GB] One more field in the codestream_info struct for recording the number of packets per tile part; JPWL now distributes the EPBs in all the tile part headers + [GB] One more field in the codestream_info struct for recording the number of packets per tile part; JPWL now distributes the EPBs in all the tile part headers
+ [Mathieu Malaterre] CMake: Add very simple tests (simply run command line with no option)
September 4, 2007 September 4, 2007
+ [GB] Added some fields in the codestream_info structure: they are used to record the position of single tile parts. Changed also the write_index function in the codec, to reflect the presence of this new information. + [GB] Added some fields in the codestream_info structure: they are used to record the position of single tile parts. Changed also the write_index function in the codec, to reflect the presence of this new information.

View File

@ -42,6 +42,7 @@ FIND_PACKAGE(TIFF REQUIRED)
FOREACH(exe j2k_to_image image_to_j2k) FOREACH(exe j2k_to_image image_to_j2k)
ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS}) ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES}) TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg ${TIFF_LIBRARIES})
ADD_TEST(${exe} ${exe})
# On unix you need to link to the math library: # On unix you need to link to the math library:
IF(UNIX) IF(UNIX)
TARGET_LINK_LIBRARIES(${exe} m) TARGET_LINK_LIBRARIES(${exe} m)