From 880cb52e24fde8511859067ef0ee5ba010cd9f3c Mon Sep 17 00:00:00 2001 From: crouzet Date: Wed, 25 Apr 2018 17:23:20 +0200 Subject: [PATCH] add ressources to make salome test work --- resources/CMakeLists.txt | 7 +++++++ resources/CTestCustom.cmake | 2 ++ resources/CTestTestfile.cmake | 9 +++++++++ 3 files changed, 18 insertions(+) create mode 100644 resources/CTestCustom.cmake create mode 100644 resources/CTestTestfile.cmake diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt index e2987b4..fff9553 100644 --- a/resources/CMakeLists.txt +++ b/resources/CMakeLists.txt @@ -33,6 +33,10 @@ SET(_ts_RESOURCES LightApp_msg_fr.ts LightApp_msg_ja.ts ) +SET(SALOME_GLOBAL_TEST_RESOURCES + CTestCustom.cmake + CTestTestfile.cmake +) # --- rules --- INSTALL(FILES ${SALOME_RESOURCES_FILES} DESTINATION ${SALOME_INSTALL_RES_DATA}) @@ -40,3 +44,6 @@ QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_INSTALL_RES_DATA}") # --- config --- SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/SalomeApp.xml.in ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml INSTALL ${SALOME_INSTALL_RES_DATA}) + +# --- install ctest resources --- +SALOME_INSTALL_SCRIPTS("${SALOME_GLOBAL_TEST_RESOURCES}" ${SALOME_INSTALL_SCRIPT_PYTHON}/test) diff --git a/resources/CTestCustom.cmake b/resources/CTestCustom.cmake new file mode 100644 index 0000000..d9a0701 --- /dev/null +++ b/resources/CTestCustom.cmake @@ -0,0 +1,2 @@ +SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 1048576) # 1MB +SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 1048576) # 1MB diff --git a/resources/CTestTestfile.cmake b/resources/CTestTestfile.cmake new file mode 100644 index 0000000..a544908 --- /dev/null +++ b/resources/CTestTestfile.cmake @@ -0,0 +1,9 @@ +SUBDIRS(../../../../KERNEL/bin/salome/test/) +SUBDIRS(../../../../GEOM/bin/salome/test/) +SUBDIRS(../../../../SMESH/bin/salome/test/) +SUBDIRS(../../../../BLSURFPLUGIN/bin/salome/test/) +SUBDIRS(../../../../HYBRIDPLUGIN/bin/salome/test/) +SUBDIRS(../../../../HOMARD/bin/salome/test/) +SUBDIRS(../../../../MED/bin/salome/test/) +SUBDIRS(../../../../PARAVIS/bin/salome/test/) +SUBDIRS(../../../../YACS/bin/salome/test/) -- 2.39.2