ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/cmake_tests/test_getinfo.cmake
Revision: 1.1
Committed: Sat Oct 22 22:38:10 2011 UTC (12 years, 6 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2P2, rad4R2P1, rad5R1, rad4R2, rad4R1, rad5R0
Log Message:
Added qt interface for rvu and cmake files from Bill Hoffman

File Contents

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