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 |
> |
WORKING_DIRECTORY ${test_output_dir} |
5 |
> |
COMMAND ./resources/cmake_tests/test_lib.rb test_getinfo |
6 |
|
RESULT_VARIABLE res |
7 |
|
) |
10 |
– |
if(NOT ${res} EQUAL 0) |
11 |
– |
message(FATAL_ERROR "Bad return value from getinfo, res = ${res}") |
12 |
– |
endif() |
13 |
– |
|
14 |
– |
file(READ ${office_dir}/test/raytest_falsecolor.hdr test_output) |
15 |
– |
if(test_output MATCHES "RADIANCE") |
16 |
– |
message(STATUS "passed") |
17 |
– |
else() |
18 |
– |
message(STATUS "failed") |
19 |
– |
endif() |