ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/cmake_tests/test_falsecolor.cmake
Revision: 1.2
Committed: Wed Apr 25 22:21:06 2012 UTC (12 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2P2, rad4R2P1, rad5R1, rad4R2, rad5R0
Changes since 1.1: +2 -2 lines
Log Message:
Changes to support new Cmake build system

File Contents

# User Rev Content
1 greg 1.1 include(setup_paths.cmake)
2    
3     execute_process(
4     WORKING_DIRECTORY ${office_dir}
5 greg 1.2 COMMAND ${perl} ${px_dir}/falsecolor.pl -e -i test/raytest_rpict.hdr
6 greg 1.1 OUTPUT_FILE test/raytest_falsecolor.hdr
7     RESULT_VARIABLE res
8     )
9     if(NOT ${res} EQUAL 0)
10     message(FATAL_ERROR "Bad return value from falsecolor, res = ${res}")
11     endif()
12    
13     file(READ ${office_dir}/test/raytest_falsecolor.hdr test_output)
14 greg 1.2 if(test_output MATCHES "pcomb")
15 greg 1.1 message(STATUS "passed")
16     else()
17     message(STATUS "failed")
18     endif()