From 4f8dbed1c91231b5a184d99758e077668ef5417f Mon Sep 17 00:00:00 2001 From: maier Date: Mon, 16 Sep 2013 09:25:43 +0000 Subject: [PATCH] Bugfixes and last documentation update git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30726 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/README | 43 +++++++++++++++++++++---- tests/all-headers/CMakeLists.txt | 2 +- tests/build_tests/CMakeLists.txt | 2 +- tests/cmake/macros/macro_add_test.cmake | 6 ++-- tests/cmake/setup_testsuite.cmake | 4 +-- 5 files changed, 43 insertions(+), 14 deletions(-) diff --git a/tests/README b/tests/README index c72e7785e8..349a7c47c1 100644 --- a/tests/README +++ b/tests/README @@ -135,12 +135,41 @@ tests as discussed below. CMake configuration variables for the testsuite ----------------------------------------------- -TODO: Document the following options: - # TODO: Describe and document the following: - # TEST_DIFF - # TEST_TIME_LIMIT - # TEST_PICKUP_REGEX - # NUMDIFF_DIR +The testsuite has the following options: + + TEST_DIFF + - the diff tool and command line to use for comparison. If numdiff is + available it defaults to "numdiff -a 1e-6 -q", otherwise plain diff + is used. + + TEST_TIME_LIMIT + - The time limit (in seconds) a single test is allowed to run. Defaults + to 180 seconds + + TEST_PICKUP_REGEX + - A regular expression to filter tests. If this is a nonempty string + only tests that match the regular expression will be set up. An empty + string is interpreted as a catchall. + +These options can be set as environment variables prior to the call to the +setup_test target: + + TEST_PICKUP_REGEX="build_tests/" TEST_TIME_LIMIT="120" make setup_test + +Note: Specifying these options via environment variables is volatile, i.e. +if $ make setup_test is invoked a second time without the variables set in +environment, the option will be reset to the default value. + +If you want to set these options permanently, set them via cmake as CMake +variable in the build directory: + + # cmake -DTEST_PICKUP_REGEX="