]> SALOME platform Git repositories - tools/SALOME.git/commitdiff
Salome HOME
add ressources to make salome test work
authorcrouzet <nicolas.crouzet@cea.fr>
Wed, 25 Apr 2018 15:23:20 +0000 (17:23 +0200)
committercrouzet <nicolas.crouzet@cea.fr>
Wed, 25 Apr 2018 15:23:20 +0000 (17:23 +0200)
resources/CMakeLists.txt
resources/CTestCustom.cmake [new file with mode: 0644]
resources/CTestTestfile.cmake [new file with mode: 0644]

index e2987b4e111fac3755670200643d113ab94fe87e..fff95539a9fd2438a3b17c50f62fd3d63198f4bc 100644 (file)
@@ -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 (file)
index 0000000..d9a0701
--- /dev/null
@@ -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 (file)
index 0000000..a544908
--- /dev/null
@@ -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/)