ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/resources/cmake_tests/test_pcond.cmake
(Generate patch)

Comparing ray/resources/cmake_tests/test_pcond.cmake (file contents):
Revision 1.1 by greg, Mon Dec 4 21:58:10 2017 UTC vs.
Revision 1.2 by greg, Mon Jan 8 16:51:31 2018 UTC

# Line 1 | Line 1
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
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 ${office_dir}/test/raytest_rpict_pcd.hdr test_output)
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()
18 > endif()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines