]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Generation of default profile tests
authorCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Tue, 30 Sep 2014 13:12:07 +0000 (15:12 +0200)
committerCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Tue, 30 Sep 2014 13:12:07 +0000 (15:12 +0200)
bin/app-template/CMakeLists.txt
bin/app-template/src/CMakeLists.txt
bin/app-template/src/tests/CMakeLists.txt [new file with mode: 0644]
bin/app-template/src/tests/README [new file with mode: 0644]
bin/app-template/src/tests/helloWorld.py [new file with mode: 0644]

index fa4dad7b48f21698bd70a9f478081a1617a5facd..942053da25cc46508289e4200aa35882c3d8c23e 100644 (file)
@@ -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 <Name_of_Application> documentation" ON)
 
-#IF(SALOME_BUILD_TESTS)
-#  ENABLE_TESTING()
-#ENDIF()
+IF(SALOME_BUILD_TESTS)
+  ENABLE_TESTING()
+ENDIF()
 
 # KERNEL optionals:
 IF(SALOME_BUILD_DOC)
index 6df75bdb665560392ffb537a3e77dd0929af2b01..0992f87f3d1edd1a206a9ee5455aa8ad041cea12 100644 (file)
@@ -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 (file)
index 0000000..110c031
--- /dev/null
@@ -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 (file)
index 0000000..ef5ad8f
--- /dev/null
@@ -0,0 +1 @@
+This directory contains the tests of <Name_of_Application>
diff --git a/bin/app-template/src/tests/helloWorld.py b/bin/app-template/src/tests/helloWorld.py
new file mode 100644 (file)
index 0000000..62c813a
--- /dev/null
@@ -0,0 +1 @@
+print "Hello world"