Import rev 1148 from trunk.
This commit is contained in:
parent
82e539d333
commit
9d1bd03be4
1
CHANGES
1
CHANGES
|
@ -7,6 +7,7 @@ What's New for OpenJPEG
|
||||||
|
|
||||||
December 8, 2011
|
December 8, 2011
|
||||||
* [Mathieu Malaterre] Remove 9 warnings (gcc)
|
* [Mathieu Malaterre] Remove 9 warnings (gcc)
|
||||||
|
* [mathieu] remove hack with bash around kdu_expand
|
||||||
|
|
||||||
December 7, 2011
|
December 7, 2011
|
||||||
- [mickael] deactivate tests about class0 files with number of components greater to 1
|
- [mickael] deactivate tests about class0 files with number of components greater to 1
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
#
|
||||||
|
# this module looks for KAKADu
|
||||||
|
# http://www.kakadusoftware.com/
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Copyright (c) 2006-2011 Mathieu Malaterre <mathieu.malaterre@gmail.com>
|
||||||
|
#
|
||||||
|
# Redistribution and use is allowed according to the terms of the New
|
||||||
|
# BSD license.
|
||||||
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||||
|
#
|
||||||
|
|
||||||
|
FIND_PROGRAM(KDU_EXPAND_EXECUTABLE
|
||||||
|
kdu_expand
|
||||||
|
)
|
||||||
|
|
||||||
|
MARK_AS_ADVANCED(
|
||||||
|
KDU_EXPAND_EXECUTABLE
|
||||||
|
)
|
|
@ -256,13 +256,12 @@ IF(BUILD_TESTING)
|
||||||
# Search openjpeg data needed for the tests
|
# Search openjpeg data needed for the tests
|
||||||
# They could be found via svn on the OpenJPEG google code project
|
# They could be found via svn on the OpenJPEG google code project
|
||||||
# svn checkout http://openjpeg.googlecode.com/svn/data (about 70 Mo)
|
# svn checkout http://openjpeg.googlecode.com/svn/data (about 70 Mo)
|
||||||
FIND_PATH(OPJ_DATA_ROOT README-OPJ-Data
|
FIND_PATH(OPJ_DATA_ROOT README-OPJ-Data
|
||||||
PATHS $ENV{OPJ_DATA_ROOT} ${CMAKE_SOURCE_DIR}/../data)
|
PATHS
|
||||||
|
$ENV{OPJ_DATA_ROOT}
|
||||||
# For encoding tests we need the path to the ref decoder exe/lib (kakadu)
|
${CMAKE_SOURCE_DIR}/../data
|
||||||
SET (REF_DECODER_BIN_PATH "NOTFOUND" CACHE PATH "Single directory where find the reference decoder binaries to enable encoding test suite.")
|
)
|
||||||
MARK_AS_ADVANCED(REF_DECODER_BIN_PATH)
|
|
||||||
|
|
||||||
# Add repository where to find tests
|
# Add repository where to find tests
|
||||||
ADD_SUBDIRECTORY(tests)
|
ADD_SUBDIRECTORY(tests)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,8 @@ SET(INPUT_NR ${OPJ_DATA_ROOT}/input/nonregression)
|
||||||
SET(INPUT_NR_PATH ${INPUT_NR})
|
SET(INPUT_NR_PATH ${INPUT_NR})
|
||||||
SET(TEMP_PATH ${TEMP})
|
SET(TEMP_PATH ${TEMP})
|
||||||
|
|
||||||
# FIXME: should be corectly manage with a find kakadu
|
# need kdu_expand if possible
|
||||||
IF (NOT WIN32)
|
find_package(KAKADU)
|
||||||
CONFIGURE_FILE("opj_ref_decode_cmd.sh.in"
|
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/opj_ref_decode_cmd.sh"
|
|
||||||
@ONLY)
|
|
||||||
ENDIF (NOT WIN32)
|
|
||||||
|
|
||||||
STRING(COMPARE EQUAL ${REF_DECODER_BIN_PATH} "NOTFOUND" REF_DECODER_NOTFOUND)
|
STRING(COMPARE EQUAL ${REF_DECODER_BIN_PATH} "NOTFOUND" REF_DECODER_NOTFOUND)
|
||||||
IF (REF_DECODER_NOTFOUND)
|
IF (REF_DECODER_NOTFOUND)
|
||||||
|
@ -206,21 +202,12 @@ FOREACH(OPJ_TEST_CMD_LINE ${OPJ_TEST_CMD_LINE_LIST})
|
||||||
NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-dump)
|
NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-dump)
|
||||||
|
|
||||||
# Decode the encoding file with kakadu expand command
|
# Decode the encoding file with kakadu expand command
|
||||||
IF (NOT REF_DECODER_NOTFOUND)
|
IF (KDU_EXPAND_EXECUTABLE)
|
||||||
IF (NOT WIN32)
|
ADD_TEST(NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-decode-ref
|
||||||
# Need a bash script to export the path of the kakadu library into PATH
|
${KDU_EXPAND_EXECUTABLE}
|
||||||
ADD_TEST( NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-decode-ref
|
-i ${OUTPUT_FILENAME}
|
||||||
bash ${CMAKE_CURRENT_BINARY_DIR}/opj_ref_decode_cmd.sh
|
-o ${OUTPUT_FILENAME}.raw
|
||||||
-i ${OUTPUT_FILENAME}
|
|
||||||
-o ${OUTPUT_FILENAME}.raw
|
|
||||||
)
|
)
|
||||||
ELSE (NOT WIN32)
|
|
||||||
ADD_TEST(NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-decode-ref
|
|
||||||
${REF_DECODER_BIN_PATH}/kdu_expand
|
|
||||||
-i ${OUTPUT_FILENAME}
|
|
||||||
-o ${OUTPUT_FILENAME}.raw
|
|
||||||
)
|
|
||||||
ENDIF (NOT WIN32)
|
|
||||||
|
|
||||||
SET_TESTS_PROPERTIES(NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-decode-ref
|
SET_TESTS_PROPERTIES(NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-decode-ref
|
||||||
PROPERTIES DEPENDS
|
PROPERTIES DEPENDS
|
||||||
|
@ -237,7 +224,7 @@ FOREACH(OPJ_TEST_CMD_LINE ${OPJ_TEST_CMD_LINE_LIST})
|
||||||
PROPERTIES DEPENDS
|
PROPERTIES DEPENDS
|
||||||
NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-decode-ref)
|
NR-ENC-${INPUT_FILENAME_NAME}-${IT_TEST_ENC}-decode-ref)
|
||||||
|
|
||||||
ENDIF(NOT REF_DECODER_NOTFOUND)
|
ENDIF()
|
||||||
ENDIF(FAILED_TEST_FOUND)
|
ENDIF(FAILED_TEST_FOUND)
|
||||||
|
|
||||||
# DECODER TEST SUITE
|
# DECODER TEST SUITE
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
export LD_LIBRARY_PATH="@REF_DECODER_BIN_PATH@"
|
|
||||||
echo run following command: @REF_DECODER_BIN_PATH@/kdu_expand $@
|
|
||||||
@REF_DECODER_BIN_PATH@/kdu_expand $@
|
|
Loading…
Reference in New Issue