2018-10-28 12:09:07 +01:00
|
|
|
|
2024-11-11 15:18:55 +01:00
|
|
|
if (actual_stdout MATCHES "LINKER:" AND NOT linker_prefix_expected)
|
2018-10-28 12:09:07 +01:00
|
|
|
set (RunCMake_TEST_FAILED "LINKER: prefix was not expanded.")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2024-11-11 15:18:55 +01:00
|
|
|
if (NOT EXISTS "${RunCMake_TEST_BINARY_DIR}/${reference_file}")
|
|
|
|
set (RunCMake_TEST_FAILED "${RunCMake_TEST_BINARY_DIR}/${reference_file}: Reference file not found.")
|
2018-10-28 12:09:07 +01:00
|
|
|
return()
|
|
|
|
endif()
|
2024-11-11 15:18:55 +01:00
|
|
|
file(READ "${RunCMake_TEST_BINARY_DIR}/${reference_file}" linker_flag)
|
2018-10-28 12:09:07 +01:00
|
|
|
|
|
|
|
if (NOT actual_stdout MATCHES "${linker_flag}")
|
|
|
|
set (RunCMake_TEST_FAILED "LINKER: was not expanded correctly.")
|
|
|
|
endif()
|