| 1 |
# |
| 2 |
# Copyright by The HDF Group. |
| 3 |
# All rights reserved. |
| 4 |
# |
| 5 |
# This file is part of HDF5. The full HDF5 copyright notice, including |
| 6 |
# terms governing use, modification, and redistribution, is contained in |
| 7 |
# the COPYING file, which can be found at the root of the source code |
| 8 |
# distribution tree, or in https://www.hdfgroup.org/licenses. |
| 9 |
# If you do not have access to either file, you may request a copy from |
| 10 |
# [email protected]. |
| 11 |
# |
| 12 |
# runTest.cmake executes a command and captures the output in a file. File is then compared |
| 13 |
# against a reference file. Exit status of command can also be compared. |
| 14 |
cmake_policy(SET CMP0007 NEW) |
| 15 |
|
| 16 |
# arguments checking |
| 17 |
if (NOT TEST_PROGRAM) |
| 18 |
message (FATAL_ERROR "Require TEST_PROGRAM to be defined") |
| 19 |
endif () |
| 20 |
if (NOT TEST_FOLDER) |
| 21 |
message (FATAL_ERROR "Require TEST_FOLDER to be defined") |
| 22 |
endif () |
| 23 |
if (NOT TEST_OUTPUT) |
| 24 |
message (FATAL_ERROR "Require TEST_OUTPUT to be defined") |
| 25 |
endif () |
| 26 |
if (NOT TEST_EXPECT) |
| 27 |
message (STATUS "Require TEST_EXPECT to be defined") |
| 28 |
endif () |
| 29 |
|
| 30 |
if (EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}") |
| 31 |
file (REMOVE ${TEST_FOLDER}/${TEST_OUTPUT}) |
| 32 |
endif () |
| 33 |
|
| 34 |
if (EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}.err") |
| 35 |
file (REMOVE ${TEST_FOLDER}/${TEST_OUTPUT}.err) |
| 36 |
endif () |
| 37 |
|
| 38 |
message (STATUS "COMMAND: ${TEST_EMULATOR} ${TEST_PROGRAM} ${TEST_ARGS}") |
| 39 |
|
| 40 |
if (TEST_LIBRARY_DIRECTORY) |
| 41 |
if (WIN32) |
| 42 |
set (ENV{PATH} "$ENV{PATH};${TEST_LIBRARY_DIRECTORY}") |
| 43 |
else () |
| 44 |
set (ENV{LD_LIBRARY_PATH} "$ENV{LD_LIBRARY_PATH}:${TEST_LIBRARY_DIRECTORY}") |
| 45 |
endif () |
| 46 |
endif () |
| 47 |
|
| 48 |
if (TEST_ENV_VAR) |
| 49 |
set (ENV{${TEST_ENV_VAR}} "${TEST_ENV_VALUE}") |
| 50 |
#message (STATUS "ENV:${TEST_ENV_VAR}=$ENV{${TEST_ENV_VAR}}") |
| 51 |
endif () |
| 52 |
|
| 53 |
if (NOT TEST_INPUT) |
| 54 |
# run the test program, capture the stdout/stderr and the result var |
| 55 |
execute_process ( |
| 56 |
COMMAND ${TEST_EMULATOR} ${TEST_PROGRAM} ${TEST_ARGS} |
| 57 |
WORKING_DIRECTORY ${TEST_FOLDER} |
| 58 |
RESULT_VARIABLE TEST_RESULT |
| 59 |
OUTPUT_FILE ${TEST_OUTPUT} |
| 60 |
ERROR_FILE ${TEST_OUTPUT}.err |
| 61 |
OUTPUT_VARIABLE TEST_OUT |
| 62 |
ERROR_VARIABLE TEST_ERROR |
| 63 |
) |
| 64 |
else () |
| 65 |
# run the test program with stdin, capture the stdout/stderr and the result var |
| 66 |
execute_process ( |
| 67 |
COMMAND ${TEST_EMULATOR} ${TEST_PROGRAM} ${TEST_ARGS} |
| 68 |
WORKING_DIRECTORY ${TEST_FOLDER} |
| 69 |
RESULT_VARIABLE TEST_RESULT |
| 70 |
INPUT_FILE ${TEST_INPUT} |
| 71 |
OUTPUT_FILE ${TEST_OUTPUT} |
| 72 |
ERROR_FILE ${TEST_OUTPUT}.err |
| 73 |
OUTPUT_VARIABLE TEST_OUT |
| 74 |
ERROR_VARIABLE TEST_ERROR |
| 75 |
) |
| 76 |
endif () |
| 77 |
|
| 78 |
if (TEST_REGEX) |
| 79 |
# TEST_REGEX should always be matched |
| 80 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 81 |
string (REGEX MATCH "${TEST_REGEX}" REGEX_MATCH ${TEST_STREAM}) |
| 82 |
string (COMPARE EQUAL "${REGEX_MATCH}" "${TEST_MATCH}" REGEX_RESULT) |
| 83 |
if (NOT REGEX_RESULT) |
| 84 |
message (STATUS "Failed: The output of ${TEST_PROGRAM} did not contain ${TEST_MATCH}") |
| 85 |
endif () |
| 86 |
endif () |
| 87 |
|
| 88 |
message (STATUS "COMMAND Result: ${TEST_RESULT}") |
| 89 |
|
| 90 |
# if the .err file exists and ERRROR_APPEND is enabled |
| 91 |
if (EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}.err") |
| 92 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT}.err TEST_STREAM) |
| 93 |
list (LENGTH TEST_STREAM test_len) |
| 94 |
if (test_len GREATER 0) |
| 95 |
if (TEST_MASK_FILE) |
| 96 |
STRING(REGEX REPLACE "CurrentDir is [^\n]+\n" "CurrentDir is (dir name)\n" TEST_STREAM "${TEST_STREAM}") |
| 97 |
endif () |
| 98 |
# remove special output |
| 99 |
string (REGEX REPLACE "^.*_pmi_alps[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}") |
| 100 |
|
| 101 |
if (NOT ERROR_APPEND) |
| 102 |
# write back to original .err file |
| 103 |
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT}.err "${TEST_STREAM}") |
| 104 |
else () |
| 105 |
# append error output to the stdout output file |
| 106 |
file (APPEND ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}") |
| 107 |
endif () |
| 108 |
endif () |
| 109 |
endif () |
| 110 |
|
| 111 |
# append the test result status with a predefined text |
| 112 |
if (TEST_APPEND) |
| 113 |
file (APPEND ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_APPEND} ${TEST_RESULT}\n") |
| 114 |
endif () |
| 115 |
|
| 116 |
# if the return value is !=${TEST_EXPECT} bail out |
| 117 |
if (NOT TEST_RESULT EQUAL TEST_EXPECT) |
| 118 |
if (NOT TEST_NOERRDISPLAY) |
| 119 |
if (EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}") |
| 120 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 121 |
message (STATUS "Output :\n${TEST_STREAM}") |
| 122 |
endif () |
| 123 |
endif () |
| 124 |
message (FATAL_ERROR "Failed: Test program ${TEST_PROGRAM} exited != ${TEST_EXPECT}.\n${TEST_ERROR}") |
| 125 |
endif () |
| 126 |
|
| 127 |
message (STATUS "COMMAND Error: ${TEST_ERROR}") |
| 128 |
|
| 129 |
# remove special output |
| 130 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 131 |
string (FIND "${TEST_STREAM}" "_pmi_alps" TEST_FIND_RESULT) |
| 132 |
if (TEST_FIND_RESULT GREATER -1) |
| 133 |
string (REGEX REPLACE "^.*_pmi_alps[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}") |
| 134 |
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_STREAM}) |
| 135 |
endif () |
| 136 |
|
| 137 |
# remove special error output |
| 138 |
if (NOT TEST_ERRREF) |
| 139 |
# the error stack has been appended to the output file |
| 140 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 141 |
else () |
| 142 |
# the error stack remains in the .err file |
| 143 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT}.err TEST_STREAM) |
| 144 |
endif () |
| 145 |
string (FIND "${TEST_STREAM}" "no version information available" TEST_FIND_RESULT) |
| 146 |
if (TEST_FIND_RESULT GREATER -1) |
| 147 |
string (REGEX REPLACE "^.*no version information available[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}") |
| 148 |
# write back the changes to the original files |
| 149 |
if (NOT TEST_ERRREF) |
| 150 |
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}") |
| 151 |
else () |
| 152 |
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT}.err "${TEST_STREAM}") |
| 153 |
endif () |
| 154 |
endif () |
| 155 |
|
| 156 |
# if the output file needs Storage text removed |
| 157 |
if (TEST_MASK) |
| 158 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 159 |
string (REGEX REPLACE "Storage:[^\n]+\n" "Storage: <details removed for portability>\n" TEST_STREAM "${TEST_STREAM}") |
| 160 |
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}") |
| 161 |
endif () |
| 162 |
|
| 163 |
# if the output file needs Modified text removed |
| 164 |
if (TEST_MASK_MOD) |
| 165 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 166 |
string (REGEX REPLACE "Modified:[^\n]+\n" "Modified: XXXX-XX-XX XX:XX:XX XXX\n" TEST_STREAM "${TEST_STREAM}") |
| 167 |
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}") |
| 168 |
endif () |
| 169 |
|
| 170 |
# if the output file or the .err file needs to mask out error stack info |
| 171 |
if (TEST_MASK_ERROR) |
| 172 |
if (NOT TEST_ERRREF) |
| 173 |
# the error stack has been appended to the output file |
| 174 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 175 |
else () |
| 176 |
# the error stack remains in the .err file |
| 177 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT}.err TEST_STREAM) |
| 178 |
endif () |
| 179 |
string (REGEX REPLACE "thread [0-9]*:" "thread (IDs):" TEST_STREAM "${TEST_STREAM}") |
| 180 |
string (REGEX REPLACE ": ([^\n]*)[.]c " ": (file name) " TEST_STREAM "${TEST_STREAM}") |
| 181 |
string (REGEX REPLACE " line [0-9]*" " line (number)" TEST_STREAM "${TEST_STREAM}") |
| 182 |
string (REGEX REPLACE "v[1-9]*[.][0-9]*[.]" "version (number)." TEST_STREAM "${TEST_STREAM}") |
| 183 |
string (REGEX REPLACE "[1-9]*[.][0-9]*[.][0-9]*[^)]*" "version (number)" TEST_STREAM "${TEST_STREAM}") |
| 184 |
string (REGEX REPLACE "H5Eget_auto[1-2]*" "H5Eget_auto(1 or 2)" TEST_STREAM "${TEST_STREAM}") |
| 185 |
string (REGEX REPLACE "H5Eset_auto[1-2]*" "H5Eset_auto(1 or 2)" TEST_STREAM "${TEST_STREAM}") |
| 186 |
# write back the changes to the original files |
| 187 |
if (NOT TEST_ERRREF) |
| 188 |
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}") |
| 189 |
else () |
| 190 |
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT}.err "${TEST_STREAM}") |
| 191 |
endif () |
| 192 |
endif () |
| 193 |
|
| 194 |
# remove text from the output file |
| 195 |
if (TEST_FILTER) |
| 196 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 197 |
string (REGEX REPLACE "${TEST_FILTER}" "${TEST_FILTER_REPLACE}" TEST_STREAM "${TEST_STREAM}") |
| 198 |
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} "${TEST_STREAM}") |
| 199 |
endif () |
| 200 |
|
| 201 |
if (TEST_REF_FILTER) |
| 202 |
#message (STATUS "TEST_REF_FILTER: ${TEST_APPEND}${TEST_REF_FILTER}") |
| 203 |
file (READ ${TEST_FOLDER}/${TEST_REFERENCE} TEST_STREAM) |
| 204 |
string (REGEX REPLACE "${TEST_REF_APPEND}" "${TEST_REF_FILTER}" TEST_STREAM "${TEST_STREAM}") |
| 205 |
file (WRITE ${TEST_FOLDER}/${TEST_REFERENCE} "${TEST_STREAM}") |
| 206 |
endif () |
| 207 |
|
| 208 |
# compare output files to references unless this must be skipped |
| 209 |
set (TEST_COMPARE_RESULT 0) |
| 210 |
if (NOT TEST_SKIP_COMPARE) |
| 211 |
if (EXISTS "${TEST_FOLDER}/${TEST_REFERENCE}") |
| 212 |
file (READ ${TEST_FOLDER}/${TEST_REFERENCE} TEST_STREAM) |
| 213 |
list (LENGTH TEST_STREAM test_len) |
| 214 |
if (test_len GREATER 0) |
| 215 |
if (WIN32) |
| 216 |
configure_file(${TEST_FOLDER}/${TEST_REFERENCE} ${TEST_FOLDER}/${TEST_REFERENCE}.tmp NEWLINE_STYLE CRLF) |
| 217 |
if (EXISTS "${TEST_FOLDER}/${TEST_REFERENCE}.tmp") |
| 218 |
file(RENAME ${TEST_FOLDER}/${TEST_REFERENCE}.tmp ${TEST_FOLDER}/${TEST_REFERENCE}) |
| 219 |
endif () |
| 220 |
#file (READ ${TEST_FOLDER}/${TEST_REFERENCE} TEST_STREAM) |
| 221 |
#file (WRITE ${TEST_FOLDER}/${TEST_REFERENCE} "${TEST_STREAM}") |
| 222 |
endif () |
| 223 |
|
| 224 |
if (NOT TEST_SORT_COMPARE) |
| 225 |
# now compare the output with the reference |
| 226 |
execute_process ( |
| 227 |
COMMAND ${CMAKE_COMMAND} -E compare_files ${CMAKE_IGNORE_EOL} ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_FOLDER}/${TEST_REFERENCE} |
| 228 |
RESULT_VARIABLE TEST_COMPARE_RESULT |
| 229 |
) |
| 230 |
else () |
| 231 |
file (STRINGS ${TEST_FOLDER}/${TEST_OUTPUT} v1) |
| 232 |
file (STRINGS ${TEST_FOLDER}/${TEST_REFERENCE} v2) |
| 233 |
list (SORT v1) |
| 234 |
list (SORT v2) |
| 235 |
if (NOT v1 STREQUAL v2) |
| 236 |
set(TEST_COMPARE_RESULT 1) |
| 237 |
endif () |
| 238 |
endif () |
| 239 |
|
| 240 |
if (TEST_COMPARE_RESULT) |
| 241 |
set (TEST_COMPARE_RESULT 0) |
| 242 |
file (STRINGS ${TEST_FOLDER}/${TEST_OUTPUT} test_act) |
| 243 |
list (LENGTH test_act len_act) |
| 244 |
file (STRINGS ${TEST_FOLDER}/${TEST_REFERENCE} test_ref) |
| 245 |
list (LENGTH test_ref len_ref) |
| 246 |
if (len_act GREATER 0 AND len_ref GREATER 0) |
| 247 |
math (EXPR _FP_LEN "${len_ref} - 1") |
| 248 |
foreach (line RANGE 0 ${_FP_LEN}) |
| 249 |
list (GET test_act ${line} str_act) |
| 250 |
list (GET test_ref ${line} str_ref) |
| 251 |
if (NOT str_act STREQUAL str_ref) |
| 252 |
if (str_act) |
| 253 |
set (TEST_COMPARE_RESULT 1) |
| 254 |
message (STATUS "line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n") |
| 255 |
endif () |
| 256 |
endif () |
| 257 |
endforeach () |
| 258 |
else () |
| 259 |
if (len_act EQUAL 0) |
| 260 |
message (STATUS "COMPARE Failed: ${TEST_FOLDER}/${TEST_OUTPUT} is empty") |
| 261 |
endif () |
| 262 |
if (len_ref EQUAL 0) |
| 263 |
message (STATUS "COMPARE Failed: ${TEST_FOLDER}/${TEST_REFERENCE} is empty") |
| 264 |
endif () |
| 265 |
endif () |
| 266 |
if (NOT len_act EQUAL len_ref) |
| 267 |
set (TEST_COMPARE_RESULT 1) |
| 268 |
endif () |
| 269 |
endif () |
| 270 |
endif () |
| 271 |
|
| 272 |
message (STATUS "COMPARE Result: ${TEST_COMPARE_RESULT}") |
| 273 |
|
| 274 |
# again, if return value is !=0 scream and shout |
| 275 |
if (TEST_COMPARE_RESULT) |
| 276 |
message (FATAL_ERROR "Failed: The output of ${TEST_OUTPUT} did not match ${TEST_REFERENCE}") |
| 277 |
endif () |
| 278 |
endif () |
| 279 |
|
| 280 |
# now compare the .err file with the error reference, if supplied |
| 281 |
set (TEST_ERRREF_RESULT 0) |
| 282 |
if (TEST_ERRREF) |
| 283 |
file (READ ${TEST_FOLDER}/${TEST_ERRREF} TEST_STREAM) |
| 284 |
list (LENGTH TEST_STREAM test_len) |
| 285 |
if (test_len GREATER 0) |
| 286 |
if (WIN32) |
| 287 |
configure_file(${TEST_FOLDER}/${TEST_ERRREF} ${TEST_FOLDER}/${TEST_ERRREF}.tmp NEWLINE_STYLE CRLF) |
| 288 |
if (EXISTS "${TEST_FOLDER}/${TEST_ERRREF}.tmp") |
| 289 |
file(RENAME ${TEST_FOLDER}/${TEST_ERRREF}.tmp ${TEST_FOLDER}/${TEST_ERRREF}) |
| 290 |
endif () |
| 291 |
#file (READ ${TEST_FOLDER}/${TEST_ERRREF} TEST_STREAM) |
| 292 |
#file (WRITE ${TEST_FOLDER}/${TEST_ERRREF} "${TEST_STREAM}") |
| 293 |
endif () |
| 294 |
|
| 295 |
# now compare the error output with the error reference |
| 296 |
execute_process ( |
| 297 |
COMMAND ${CMAKE_COMMAND} -E compare_files ${CMAKE_IGNORE_EOL} ${TEST_FOLDER}/${TEST_OUTPUT}.err ${TEST_FOLDER}/${TEST_ERRREF} |
| 298 |
RESULT_VARIABLE TEST_ERRREF_RESULT |
| 299 |
) |
| 300 |
if (TEST_ERRREF_RESULT) |
| 301 |
set (TEST_ERRREF_RESULT 0) |
| 302 |
file (STRINGS ${TEST_FOLDER}/${TEST_OUTPUT}.err test_act) |
| 303 |
list (LENGTH test_act len_act) |
| 304 |
file (STRINGS ${TEST_FOLDER}/${TEST_ERRREF} test_ref) |
| 305 |
list (LENGTH test_ref len_ref) |
| 306 |
math (EXPR _FP_LEN "${len_ref} - 1") |
| 307 |
if (len_act GREATER 0 AND len_ref GREATER 0) |
| 308 |
math (EXPR _FP_LEN "${len_ref} - 1") |
| 309 |
foreach (line RANGE 0 ${_FP_LEN}) |
| 310 |
list (GET test_act ${line} str_act) |
| 311 |
list (GET test_ref ${line} str_ref) |
| 312 |
if (NOT str_act STREQUAL str_ref) |
| 313 |
if (str_act) |
| 314 |
set (TEST_ERRREF_RESULT 1) |
| 315 |
message (STATUS "line = ${line}\n***ACTUAL: ${str_act}\n****REFER: ${str_ref}\n") |
| 316 |
endif () |
| 317 |
endif () |
| 318 |
endforeach () |
| 319 |
else () |
| 320 |
if (len_act EQUAL 0) |
| 321 |
message (STATUS "COMPARE Failed: ${TEST_FOLDER}/${TEST_OUTPUT}.err is empty") |
| 322 |
endif () |
| 323 |
if (len_ref EQUAL 0) |
| 324 |
message (STATUS "COMPARE Failed: ${TEST_FOLDER}/${TEST_ERRREF} is empty") |
| 325 |
endif () |
| 326 |
endif () |
| 327 |
if (NOT len_act EQUAL len_ref) |
| 328 |
set (TEST_ERRREF_RESULT 1) |
| 329 |
endif () |
| 330 |
endif () |
| 331 |
endif () |
| 332 |
|
| 333 |
message (STATUS "COMPARE Result: ${TEST_ERRREF_RESULT}") |
| 334 |
|
| 335 |
# again, if return value is !=0 scream and shout |
| 336 |
if (TEST_ERRREF_RESULT) |
| 337 |
message (FATAL_ERROR "Failed: The error output of ${TEST_OUTPUT}.err did not match ${TEST_ERRREF}") |
| 338 |
endif () |
| 339 |
endif () |
| 340 |
endif () |
| 341 |
|
| 342 |
set (TEST_GREP_RESULT 0) |
| 343 |
if (TEST_GREP_COMPARE) |
| 344 |
# now grep the output with the reference |
| 345 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 346 |
list (LENGTH TEST_STREAM test_len) |
| 347 |
if (test_len GREATER 0) |
| 348 |
# TEST_REFERENCE should always be matched |
| 349 |
string (REGEX MATCH "${TEST_REFERENCE}" TEST_MATCH ${TEST_STREAM}) |
| 350 |
string (COMPARE EQUAL "${TEST_REFERENCE}" "${TEST_MATCH}" TEST_GREP_RESULT) |
| 351 |
if (NOT TEST_GREP_RESULT) |
| 352 |
message (FATAL_ERROR "Failed: The output of ${TEST_PROGRAM} did not contain ${TEST_REFERENCE}") |
| 353 |
endif () |
| 354 |
|
| 355 |
string (REGEX MATCH "${TEST_FILTER}" TEST_MATCH ${TEST_STREAM}) |
| 356 |
if (TEST_EXPECT) |
| 357 |
# TEST_EXPECT (1) interprets TEST_FILTER as; NOT to match |
| 358 |
string (LENGTH "${TEST_MATCH}" TEST_GREP_RESULT) |
| 359 |
if (TEST_GREP_RESULT) |
| 360 |
message (FATAL_ERROR "Failed: The output of ${TEST_PROGRAM} did contain ${TEST_FILTER}") |
| 361 |
endif () |
| 362 |
endif () |
| 363 |
endif () |
| 364 |
endif () |
| 365 |
|
| 366 |
# dump the output unless nodisplay option is set |
| 367 |
if (TEST_SKIP_COMPARE AND NOT TEST_NO_DISPLAY) |
| 368 |
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) |
| 369 |
execute_process ( |
| 370 |
COMMAND ${CMAKE_COMMAND} -E echo ${TEST_STREAM} |
| 371 |
RESULT_VARIABLE TEST_RESULT |
| 372 |
) |
| 373 |
endif () |
| 374 |
|
| 375 |
# everything went fine... |
| 376 |
message (STATUS "${TEST_PROGRAM} Passed") |
| 377 |
|