ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/resources/cmake_tests/test_pcond.cmake
Revision: 1.2
Committed: Mon Jan 8 16:51:31 2018 UTC (6 years, 4 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad5R3, HEAD
Changes since 1.1: +5 -7 lines
Log Message:
Update to CMake build system from Rob G. and Alex S., adding test cases

File Contents

# Content
1 include(setup_paths.cmake)
2
3 execute_process(
4 WORKING_DIRECTORY ${test_output_dir}
5 COMMAND pcond${CMAKE_EXECUTABLE_SUFFIX} -h rpict_out.hdr
6 OUTPUT_FILE pcond_out.hdr
7 RESULT_VARIABLE res
8 )
9 if(NOT ${res} EQUAL 0)
10 message(FATAL_ERROR "Bad return value from pcond, res = ${res}")
11 endif()
12
13 file(READ ${test_output_dir}/pcond_out.hdr test_output)
14 if(test_output MATCHES "pcond")
15 message(STATUS "passed")
16 else()
17 message(STATUS "failed")
18 endif()