ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/cmake_tests/test_rpict.cmake
Revision: 1.2
Committed: Mon Dec 4 21:58:10 2017 UTC (6 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Added resources/ directory as requested by Rob G. and moved cmake_tests/ there

File Contents

# Content
1 include(setup_paths.cmake)
2
3 # run rpict on office model
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
8 RESULT_VARIABLE res
9 )
10 if(NOT ${res} EQUAL 0)
11 message(FATAL_ERROR "Bad return value from rpict, res = ${res}")
12 endif()
13
14 # scan output file for valid header
15 file(READ ${office_dir}/test/raytest_rpict.hdr test_output)
16 if(test_output MATCHES "SOFTWARE= RADIANCE")
17 message(STATUS "passed")
18 else()
19 message(STATUS "failed")
20 endif()