From 80c2c9d8148f05b84ace40e828f0f1d209e16ba2 Mon Sep 17 00:00:00 2001 From: Gerald NICOLAS Date: Wed, 13 Jan 2016 15:06:55 +0100 Subject: [PATCH] Pilotage de l'installation des cas-tests --- src/tests/CMakeLists.txt | 57 ++++++++++------------------------------ 1 file changed, 14 insertions(+), 43 deletions(-) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 11b1f061..c22ab3d5 100755 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -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 @@ -17,46 +17,17 @@ # 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}) -- 2.39.2