]> SALOME platform Git repositories - modules/homard.git/commitdiff
Salome HOME
Pilotage de l'installation des cas-tests
authorGerald NICOLAS <D68518@dsp0677846.(none)>
Wed, 13 Jan 2016 14:06:55 +0000 (15:06 +0100)
committerGerald NICOLAS <D68518@dsp0677846.(none)>
Wed, 13 Jan 2016 14:06:55 +0000 (15:06 +0100)
src/tests/CMakeLists.txt

index 11b1f061ddc1963880fc80a4b212e5365d48aaee..c22ab3d57b0e63a09077dd93354b36df82ba1b9f 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+# Copyright (C) 20126  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-SET(HOMARD_TEST_FILES
-  test_util.py
-  test_1.pdf
-  test_1.en.pdf
-  test_1.py
-  test_1.00.med
-  test_1.01.med
-  test_1.02.med
-  test_1.apad.03.bilan
-  test_2.pdf
-  test_2.en.pdf
-  test_2.py
-  test_2.00.med
-  test_2.fr.med
-  test_2.apad.03.bilan
-  test_3.pdf
-  test_3.en.pdf
-  test_3.py
-  test_3.00.med
-  test_3.fr.med
-  test_3.apad.02.bilan
-  test_4.pdf
-  test_4.en.pdf
-  test_4.py
-  test_4.apad.03.bilan
-  test_11.py
-  test_11.apad.03.bilan
-  test_12.py
-  test_12.apad.02.bilan
-  test_13.py
-  test_13.apad.02.bilan
-  test_14.py
-  test_14.apad.03.bilan
-  test_15.py
-  test_15.apad.02.bilan
-)
+IF(SALOME_BUILD_TESTS)
+  ADD_SUBDIRECTORY(Test)
+ENDIF(SALOME_BUILD_TESTS)
 
-# INSTALL(FILES ${HOMARD_TEST_FILES} DESTINATION ${SALOME_HOMARD_INSTALL_RES_DATA})
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/CTestTestfileInstall.cmake
-        DESTINATION ${SALOME_HOMARD_INSTALL_TEST}
-        RENAME CTestTestfile.cmake)
-INSTALL(FILES ${HOMARD_TEST_FILES}
-        DESTINATION ${SALOME_HOMARD_INSTALL_TEST})
\ No newline at end of file
+
+# --- rules ---
+
+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)
+INSTALL(FILES ${sample_files} DESTINATION ${SALOME_HOMARD_INSTALL_SAMPLES})