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

File Contents

# Content
1 include(setup_paths.cmake)
2
3 execute_process(
4 WORKING_DIRECTORY ${office_dir}
5 COMMAND rpict${CMAKE_EXECUTABLE_SUFFIX} -ab 0 -vf model.vp test/raytest_model.oct
6 OUTPUT_FILE test/raytest_rpict.hdr
7 COMMAND pcond${CMAKE_EXECUTABLE_SUFFIX} -h test/raytest_rpict.hdr
8 OUTPUT_FILE test/raytest_rpict_pcd.hdr
9 RESULT_VARIABLE res
10 )
11 if(NOT ${res} EQUAL 0)
12 message(FATAL_ERROR "Bad return value from pcond, res = ${res}")
13 endif()
14
15 file(READ ${office_dir}/test/raytest_rpict_pcd.hdr test_output)
16 if(test_output MATCHES "pcond")
17 message(STATUS "passed")
18 else()
19 message(STATUS "failed")
20 endif()