From 67543806c1674525d800d7e35263599aea4d56ca Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 9 Dec 2021 12:18:07 +0300 Subject: [PATCH] bos #26750 Disable HOMARD tests if medfile is built with 32-bits IDs (this is unsupported configuration) --- src/tests/CMakeLists.txt | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 99f9795b..d17e1fca 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -17,15 +17,18 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -IF(SALOME_BUILD_TESTS) - ADD_SUBDIRECTORY(Test) -ENDIF(SALOME_BUILD_TESTS) +IF(MED_INT_IS_LONG) + # Homard tests are unavailable if medfile is built with 32-bits UIDs + IF(SALOME_BUILD_TESTS) + ADD_SUBDIRECTORY(Test) + ENDIF(SALOME_BUILD_TESTS) -FILE(GLOB sample_files - ${PROJECT_SOURCE_DIR}/src/tests/samples/*.med - ${PROJECT_SOURCE_DIR}/src/tests/samples/*.bilan - ${PROJECT_SOURCE_DIR}/src/tests/samples/*.odt - ${PROJECT_SOURCE_DIR}/src/tests/samples/*.pdf - ${PROJECT_SOURCE_DIR}/src/tests/samples/*.png - ${PROJECT_SOURCE_DIR}/src/tests/samples/*.xao) -INSTALL(FILES ${sample_files} DESTINATION ${SALOME_HOMARD_INSTALL_SAMPLES}) + FILE(GLOB sample_files + ${PROJECT_SOURCE_DIR}/src/tests/samples/*.med + ${PROJECT_SOURCE_DIR}/src/tests/samples/*.bilan + ${PROJECT_SOURCE_DIR}/src/tests/samples/*.odt + ${PROJECT_SOURCE_DIR}/src/tests/samples/*.pdf + ${PROJECT_SOURCE_DIR}/src/tests/samples/*.png + ${PROJECT_SOURCE_DIR}/src/tests/samples/*.xao) + INSTALL(FILES ${sample_files} DESTINATION ${SALOME_HOMARD_INSTALL_SAMPLES}) +ENDIF(MED_INT_IS_LONG) -- 2.39.2