1 |
|
include(setup_paths.cmake) |
2 |
|
|
3 |
|
execute_process( |
4 |
< |
WORKING_DIRECTORY ${office_dir} |
5 |
< |
COMMAND ${perl} ${px_dir}/falsecolor.pl -e -i test/raytest_rpict.hdr |
6 |
< |
OUTPUT_FILE test/raytest_falsecolor.hdr |
4 |
> |
COMMAND ${perl} ${rpath}/falsecolor${CMAKE_PERL_SUFFIX} -e -i ${resources_dir}/evalglare/testimage.hdr |
5 |
> |
OUTPUT_FILE ${test_output_dir}/falsecolor_out.hdr |
6 |
|
RESULT_VARIABLE res |
7 |
|
) |
8 |
|
if(NOT ${res} EQUAL 0) |
9 |
|
message(FATAL_ERROR "Bad return value from falsecolor, res = ${res}") |
10 |
|
endif() |
11 |
|
|
12 |
< |
file(READ ${office_dir}/test/raytest_falsecolor.hdr test_output) |
12 |
> |
file(READ ${test_output_dir}/falsecolor_out.hdr test_output) |
13 |
|
if(test_output MATCHES "pcomb") |
14 |
|
message(STATUS "passed") |
15 |
|
else() |