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

Comparing ray/resources/cmake_tests/test_rpict.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 < # run rpict on office model
3 > # run rpict on the Cornell box
4   execute_process(
5 <  COMMAND rpict${CMAKE_EXECUTABLE_SUFFIX} -ab 0 -vf model.vp test/raytest_model.oct
6 <  WORKING_DIRECTORY ${office_dir}
7 <  OUTPUT_FILE test/raytest_rpict.hdr
5 >  WORKING_DIRECTORY ${test_output_dir}
6 >  COMMAND rpict${CMAKE_EXECUTABLE_SUFFIX} -ab 1 -vf ${resources_dir}/cornell_box/cornell.vf ${test_output_dir}/cornell_box.oct
7 >  OUTPUT_FILE ${test_output_dir}/rpict_out.hdr
8    RESULT_VARIABLE res
9   )
10   if(NOT ${res} EQUAL 0)
# Line 12 | Line 12 | if(NOT ${res} EQUAL 0)
12   endif()
13  
14   # scan output file for valid header
15 < file(READ ${office_dir}/test/raytest_rpict.hdr test_output)
15 > file(READ ${test_output_dir}/rpict_out.hdr test_output)
16   if(test_output MATCHES "SOFTWARE= RADIANCE")
17    message(STATUS "passed")
18   else()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines