1 |
|
include(setup_paths.cmake) |
2 |
|
|
3 |
|
execute_process( |
4 |
< |
WORKING_DIRECTORY ${office_dir} |
5 |
< |
COMMAND rpict${CMAKE_EXECUTABLE_SUFFIX} -ab 0 -vf model.vp test/raytest_model.oct |
6 |
< |
OUTPUT_FILE test/raytest_rpict.hdr |
7 |
< |
COMMAND pcond${CMAKE_EXECUTABLE_SUFFIX} -h test/raytest_rpict.hdr |
8 |
< |
OUTPUT_FILE test/raytest_rpict_pcd.hdr |
4 |
> |
WORKING_DIRECTORY ${test_output_dir} |
5 |
> |
COMMAND pcond${CMAKE_EXECUTABLE_SUFFIX} -h rpict_out.hdr |
6 |
> |
OUTPUT_FILE pcond_out.hdr |
7 |
|
RESULT_VARIABLE res |
8 |
|
) |
9 |
|
if(NOT ${res} EQUAL 0) |
10 |
|
message(FATAL_ERROR "Bad return value from pcond, res = ${res}") |
11 |
|
endif() |
12 |
|
|
13 |
< |
file(READ ${office_dir}/test/raytest_rpict_pcd.hdr test_output) |
13 |
> |
file(READ ${test_output_dir}/pcond_out.hdr test_output) |
14 |
|
if(test_output MATCHES "pcond") |
15 |
|
message(STATUS "passed") |
16 |
|
else() |
17 |
|
message(STATUS "failed") |
18 |
< |
endif() |
18 |
> |
endif() |