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

Comparing ray/resources/cmake_tests/test_getinfo.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
3   execute_process(
4 <  WORKING_DIRECTORY ${office_dir}
5 <  COMMAND getinfo${CMAKE_EXECUTABLE_SUFFIX} test/raytest_rpict.hdr
7 <  OUTPUT_FILE test/raytest_falsecolor.hdr
4 >  COMMAND getinfo${CMAKE_EXECUTABLE_SUFFIX} ${resources_dir}/evalglare/testimage.hdr
5 >  OUTPUT_FILE test_output
6    RESULT_VARIABLE res
7   )
8   if(NOT ${res} EQUAL 0)
9    message(FATAL_ERROR "Bad return value from getinfo, res = ${res}")
10   endif()
11  
12 < file(READ ${office_dir}/test/raytest_falsecolor.hdr test_output)
12 > file(READ ${resources_dir}/evalglare/testimage.hdr test_output)
13   if(test_output MATCHES "RADIANCE")
14    message(STATUS "passed")
15   else()
16    message(STATUS "failed")
17 < endif()
17 > endif()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines