diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-03-23 17:47:53 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-03-23 17:47:53 +0000 |
| commit | 855b5b513d92c565be762eca14ac16f01210ce97 (patch) | |
| tree | 8fd82eb563a40d4dde723480b6135df31d30727f /tests | |
| parent | b9d271c1a8d24ed4f3c6fe4cdd04c659648487eb (diff) | |
[trunk] add test_tile_encoder test and function related
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | tests/nonregression/CMakeLists.txt | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index cf8e86a3..d8f29f4d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -39,6 +39,9 @@ TARGET_LINK_LIBRARIES(j2k_random_tile_access ${OPENJPEG_LIBRARY_NAME}) ADD_EXECUTABLE(compareRAWimages ${compareRAWimages_SRCS}) +ADD_EXECUTABLE(test_tile_encoder test_tile_encoder.c) +TARGET_LINK_LIBRARIES(test_tile_encoder ${OPENJPEG_LIBRARY_NAME}) + # No image send to the dashboard if lib PNG is not available. IF(NOT HAVE_LIBPNG) MESSAGE(WARNING "Lib PNG seems to be not available: if you want run the non-regression tests with images reported to the dashboard, you need it (try BUILD_THIRDPARTY)") diff --git a/tests/nonregression/CMakeLists.txt b/tests/nonregression/CMakeLists.txt index ed984990..70a807f5 100644 --- a/tests/nonregression/CMakeLists.txt +++ b/tests/nonregression/CMakeLists.txt @@ -317,3 +317,8 @@ FOREACH(OPJ_TEST_CMD_LINE ${OPJ_TEST_CMD_LINE_LIST}) ENDFOREACH(OPJ_TEST_CMD_LINE) + +# Encode an image into the jpeg2000 format +ADD_TEST(test_tile_encoder + ${EXECUTABLE_OUTPUT_PATH}/test_tile_encoder + ) |
