BASIS  version 1.2.3 (revision 2104)
Functions | Variables
BasisTest.cmake File Reference

CTest configuration. Include this module instead of CTest. More...

#include "CTest"
#include "CTestTargets"
+ Include dependency graph for BasisTest.cmake:

Go to the source code of this file.

Functions

function basis_add_test (in TEST_NAME, in ARGN)
 Add test.
function basis_add_test_driver (in TESTDRIVER_NAME, in ARGN)
 Create and add a test driver executable.
function basis_add_tests_of_default_options (in TARGET_NAME)
 Add tests of default options for given executable.
function basis_disable_testing_if_no_tests ()
 Disable testing if project does not implement any tests.
function basis_get_test_property (in VAR, in TEST_NAME, in ARGN)
 Get a property of the test.
function basis_set_tests_properties (in ARGN)
 Set a property of the tests.

Variables

 BASIS_PROPERTIES_ON_TESTS
 Names of recognized properties on tests.
option BUILD_TESTING
 Request build of tests.

Detailed Description

CTest configuration. Include this module instead of CTest.

Note:
This module is included by basis_project_initialize().

Copyright (c) 2011, 2012 University of Pennsylvania. All rights reserved.
See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.

Contact: SBIA Group <sbia-software at uphs.upenn.edu>

Definition in file BasisTest.cmake.


Variable Documentation

Names of recognized properties on tests.

Unfortunately, the ARGV and ARGN arguments of a CMake function() or macro() does not preserve values which themselves are lists. Therefore, it is not possible to distinguish between property names and their values in the arguments passed to basis_set_tests_properties(). To overcome this problem, this list specifies all the possible property names. Everything else is considered to be a property value except the first argument follwing right after the PROPERTIES keyword. Alternatively, basis_set_property() can be used as here no disambiguity exists.

Note:
Placeholders such as <CONFIG> are allowed. These are treated as the regular expression "[^ ]+". See basis_list_to_regex().
See also:
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#section_PropertiesonTests

Definition at line 87 of file BasisTest.cmake.