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

Comparing ray/resources/cmake_tests/test_rtrace.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 < file(WRITE ${office_dir}/test/raytest_rtrace.in
3 < "-23 24.6 5.8 0 1 0
2 > file(WRITE ${test_output_dir}/rtrace.in
3 > "0 0 0 0 0 -1
4   ")
5   execute_process(
6 <  COMMAND rtrace${CMAKE_EXECUTABLE_SUFFIX} -ab 1 test/raytest_model.oct
7 <  WORKING_DIRECTORY ${office_dir}
8 <  INPUT_FILE test/raytest_rtrace.in
9 <  OUTPUT_FILE test/raytest_rtrace.out
6 >  WORKING_DIRECTORY ${test_output_dir}
7 >  COMMAND rtrace${CMAKE_EXECUTABLE_SUFFIX} -ab 1 cornell_box.oct
8 >  INPUT_FILE rtrace.in
9 >  OUTPUT_FILE rtrace.out
10    RESULT_VARIABLE res
11   )
12   if(NOT ${res} EQUAL 0)
13    message(FATAL_ERROR "Bad return value from rtrace, res = ${res}")
14   endif()
15  
16 < file(READ ${office_dir}/test/raytest_rtrace.out test_output)
16 > file(READ ${test_output_dir}/rtrace.out test_output)
17   if(test_output MATCHES "SOFTWARE= RADIANCE")
18    message(STATUS "passed")
19   else()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines