From e46b9b5bf34acc1b77f9eb2a232f8c1ff327b336 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Mon, 19 Jun 2017 10:26:38 +0200 Subject: [PATCH] Update Readme for salome test --- bin/appliskel/salome_tester/README | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/appliskel/salome_tester/README b/bin/appliskel/salome_tester/README index 6e0eb4f52..4b7186f2c 100644 --- a/bin/appliskel/salome_tester/README +++ b/bin/appliskel/salome_tester/README @@ -1,4 +1,4 @@ -Copyright (C) 2015-2016 CEA/DEN, EDF R&D, OPEN CASCADE +Copyright (C) 2015-2017 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 @@ -32,11 +32,12 @@ Each module test folder must contain: - install test files in /bin/salome/test/ - install the CTestTestfileInstall.cmake file (see below) as /bin/salome/test/CTestTestfile.cmake (rename file) - a CTestTestfileInstall.cmake that: - - declare tests requiring a SALOME session + - declare tests requiring a SALOME session, or tests that do not require a SALOME session but to be tested in SALOME execution environment. -The CTestTestfileInstall.cmake can also declare unit tests already declared in CMakeLists.txt. Actually CTestTestfileInstall.cmake declare all tests that will be runnable from SALOME application. This file MUST NOT use cmake environment variables. -It can refer the ABSOLUTE_APPLI_PATH variable (automatically set when using application). -If a test has to be run inside a SALOME session, use the salome_test_driver.py script that need as arguments a timeout, the test file to be run and its arguments. +The CTestTestfileInstall.cmake can also declare unit tests already declared in CMakeLists.txt. Actually CTestTestfileInstall.cmake declares all tests that will be runnable from SALOME application. For easier maintenance shared tests may be declared in a dedicated tests.set file which is then included in both CMakeLists.txt and CTestTestfileInstall.cmake files: + INCLUDE(tests.set) + +The CTestTestfileInstall.cmake file MUST NOT use cmake environment variables. It can refer the ABSOLUTE_APPLI_PATH variable (automatically set when using application). If a test has to be run inside a SALOME session, use the salome_test_driver.py script that need as arguments a timeout, the test file to be run and its arguments. SET(SALOME_TEST_DRIVER "$ENV{ABSOLUTE_APPLI_PATH}/bin/salome/appliskel/salome_test_driver.py") SET(TIMEOUT 500) ADD_TEST(SalomeLauncher python ${SALOME_TEST_DRIVER} ${TIMEOUT} test_launcher.py) -- 2.39.2