mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
25 lines
843 B
CMake
25 lines
843 B
CMake
set(failures "")
|
|
|
|
foreach(f explicit_root_sbom explicit_subdir_sbom)
|
|
if(NOT EXISTS "${RunCMake_TEST_INSTALL_DIR}/${f}-Debug.spdx.json")
|
|
list(APPEND failures "expected explicit SBOM ${f}-Debug.spdx.json to exist")
|
|
endif()
|
|
endforeach()
|
|
|
|
foreach(f implicit_root implicit_subdir)
|
|
if(NOT EXISTS "${RunCMake_TEST_INSTALL_DIR}/lib/sbom/${f}/${f}-Debug.spdx.json")
|
|
list(APPEND failures "expected autogen SBOM ${f}-Debug.spdx.json to exist")
|
|
endif()
|
|
endforeach()
|
|
|
|
foreach(f explicit_root explicit_subdir)
|
|
if(EXISTS "${RunCMake_TEST_INSTALL_DIR}/lib/sbom/${f}/${f}-Debug.spdx.json")
|
|
list(APPEND failures "autogen wrongly produced ${f}-Debug.spdx.json (should be suppressed by explicit install(SBOM))")
|
|
endif()
|
|
endforeach()
|
|
|
|
if(failures)
|
|
string(REPLACE ";" "\n " msg "${failures}")
|
|
set(RunCMake_TEST_FAILED "${msg}")
|
|
endif()
|