|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52893 - branches/release/libs/gil/test
From: dgregor_at_[hidden]
Date: 2009-05-10 23:11:04
Author: dgregor
Date: 2009-05-10 23:11:03 EDT (Sun, 10 May 2009)
New Revision: 52893
URL: http://svn.boost.org/trac/boost/changeset/52893
Log:
Fix GIL image test for CMake
Text files modified:
branches/release/libs/gil/test/CMakeLists.txt | 3 ++-
branches/release/libs/gil/test/image.cpp | 2 ++
2 files changed, 4 insertions(+), 1 deletions(-)
Modified: branches/release/libs/gil/test/CMakeLists.txt
==============================================================================
--- branches/release/libs/gil/test/CMakeLists.txt (original)
+++ branches/release/libs/gil/test/CMakeLists.txt 2009-05-10 23:11:03 EDT (Sun, 10 May 2009)
@@ -3,7 +3,8 @@
add_definitions(-DBOOST_GIL_NO_IO -D_SCL_SECURE_NO_WARNINGS)
boost_test_run(channel channel.cpp error_if.cpp)
-boost_test_run(image image.cpp sample_image.cpp error_if.cpp)
+boost_test_run(image image.cpp sample_image.cpp error_if.cpp
+ ARGS ${CMAKE_CURRENT_SOURCE_DIR}/gil_reference_checksums.txt)
boost_test_run(image_io image_io.cpp error_if.cpp)
boost_test_run(pixel pixel.cpp error_if.cpp)
boost_test_run(pixel_iterator pixel_iterator.cpp error_if.cpp)
Modified: branches/release/libs/gil/test/image.cpp
==============================================================================
--- branches/release/libs/gil/test/image.cpp (original)
+++ branches/release/libs/gil/test/image.cpp 2009-05-10 23:11:03 EDT (Sun, 10 May 2009)
@@ -572,6 +572,8 @@
const char* local_name = "gil_reference_checksums.txt";
const char* name_from_status = "../libs/gil/test/gil_reference_checksums.txt";
+ if (argc > 1)
+ local_name = argv[1];
std::ifstream file_is_there(local_name);
if (file_is_there) {
test_image(local_name);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk