From: Camille GOUTTEBROZE Date: Tue, 30 Sep 2014 13:12:07 +0000 (+0200) Subject: Generation of default profile tests X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef0c6fd8fdd53afe6ca60ab663f2a0dee55a00e0;p=modules%2Fkernel.git Generation of default profile tests --- diff --git a/bin/app-template/CMakeLists.txt b/bin/app-template/CMakeLists.txt index fa4dad7b4..942053da2 100644 --- a/bin/app-template/CMakeLists.txt +++ b/bin/app-template/CMakeLists.txt @@ -47,12 +47,12 @@ ENDIF(EXISTS ${KERNEL_ROOT_DIR}) # User options # ============ -#OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) +OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) OPTION(SALOME_BUILD_DOC "Generate SALOME documentation" ON) -#IF(SALOME_BUILD_TESTS) -# ENABLE_TESTING() -#ENDIF() +IF(SALOME_BUILD_TESTS) + ENABLE_TESTING() +ENDIF() # KERNEL optionals: IF(SALOME_BUILD_DOC) diff --git a/bin/app-template/src/CMakeLists.txt b/bin/app-template/src/CMakeLists.txt index 6df75bdb6..0992f87f3 100644 --- a/bin/app-template/src/CMakeLists.txt +++ b/bin/app-template/src/CMakeLists.txt @@ -29,3 +29,5 @@ SET(_bin_SCRIPTS # --- rules --- SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_PYTHON}) +# --- sub-directories --- +ADD_SUBDIRECTORY( tests ) diff --git a/bin/app-template/src/tests/CMakeLists.txt b/bin/app-template/src/tests/CMakeLists.txt new file mode 100644 index 000000000..110c031b9 --- /dev/null +++ b/bin/app-template/src/tests/CMakeLists.txt @@ -0,0 +1,29 @@ +# Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +# --- scripts --- + +# scripts / static +SET(_bin_SCRIPTS + helloWorld.py +) + +# --- rules --- +SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_PYTHON}) + diff --git a/bin/app-template/src/tests/README b/bin/app-template/src/tests/README new file mode 100644 index 000000000..ef5ad8fa0 --- /dev/null +++ b/bin/app-template/src/tests/README @@ -0,0 +1 @@ +This directory contains the tests of diff --git a/bin/app-template/src/tests/helloWorld.py b/bin/app-template/src/tests/helloWorld.py new file mode 100644 index 000000000..62c813abc --- /dev/null +++ b/bin/app-template/src/tests/helloWorld.py @@ -0,0 +1 @@ +print "Hello world"