1 |
|
include(setup_paths.cmake) |
2 |
|
|
3 |
|
execute_process( |
4 |
< |
COMMAND getinfo${CMAKE_EXECUTABLE_SUFFIX} ${resources_dir}/evalglare/testimage.hdr |
5 |
< |
OUTPUT_FILE test_output |
4 |
> |
WORKING_DIRECTORY ${test_output_dir} |
5 |
> |
COMMAND ./resources/cmake_tests/test_lib.rb test_getinfo |
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 ${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() |