1 |
greg |
1.1 |
include(setup_paths.cmake) |
2 |
|
|
|
3 |
|
|
execute_process( |
4 |
greg |
1.2 |
WORKING_DIRECTORY ${test_output_dir} |
5 |
|
|
COMMAND pcond${CMAKE_EXECUTABLE_SUFFIX} -h rpict_out.hdr |
6 |
|
|
OUTPUT_FILE pcond_out.hdr |
7 |
greg |
1.1 |
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 |
greg |
1.2 |
file(READ ${test_output_dir}/pcond_out.hdr test_output) |
14 |
greg |
1.1 |
if(test_output MATCHES "pcond") |
15 |
|
|
message(STATUS "passed") |
16 |
|
|
else() |
17 |
|
|
message(STATUS "failed") |
18 |
greg |
1.2 |
endif() |