diff --git a/cmake/AkantuTestsMacros.cmake b/cmake/AkantuTestsMacros.cmake index a6bf6a5f9..0870a40e2 100644 --- a/cmake/AkantuTestsMacros.cmake +++ b/cmake/AkantuTestsMacros.cmake @@ -1,373 +1,378 @@ #=============================================================================== # @file AkantuTestMacros.cmake # # @author Nicolas Richart # # @date creation: Mon Oct 25 2010 # @date last modification: Tue Jun 24 2014 # # @brief macros for tests # # @section LICENSE # # Copyright (©) 2010-2012, 2014 EPFL (Ecole Polytechnique Fédérale de Lausanne) # Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides) # # Akantu 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 3 of the License, or (at your option) any # later version. # # Akantu 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 Akantu. If not, see . # #[=======================================================================[.rst: #AkantuTestsMacros #----------------- # #This modules provides the functions to helper to declare tests and folders #containing tests in akantu # #.. command:: add_test_tree # # add_test_tree() # # ```` is the entry direcroty of the full structure of # subfolders containing tests # #.. command:: add_akantu_test # # add_akantu_test( ) # # This function add a subdirectory ```` of tests that will be conditionnaly # activable and will be visible only if the parent folder as been activated An # option ``AKANTU_BUILD_TEST_`` will appear in ccmake with the description # ````. The compilation of all tests can be forced with the option # ``AKANTU_BUILD_ALL_TESTS`` # #.. command:: register_test # # register_test( # SOURCES ... # PACKAGE ... # SCRIPT # [FILES_TO_COPY ...] # [DEPENDS ...] # [DIRECTORIES_TO_CREATE ...] # [COMPILE_OPTIONS ...] # [EXTRA_FILES ...] # [UNSABLE] # [PARALLEL] # ) # # This function defines a test ``_run`` this test could be of # different nature depending on the context. If Just sources are provided the # test consist of running the executable generated. If a file ``.sh`` # is present the test will execute the script. And if a ``.verified`` # exists the output of the test will be compared to this reference file # # The options are: # # ``SOURCES ...`` # The list of source files to compile to generate the executable of the test # # ``PACKAGE ...`` # The list of package to which this test belongs. The test will be activable # only of all the packages listed are activated # # ``SCRIPT