/* * Project: MoleCuilder * Description: creates and alters molecular systems * Copyright (C) 2010 University of Bonn. All rights reserved. * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. */ /** * \file regression-tests.dox * * This file contains explanation how to write, launch and use regression tests. * * Created on: Oct 11, 2011 * Author: heber */ /** * \page regressiontest "Regression tests" * * Regression test with this project are used to check on the functionality of * all Actions. The launch the MoleCuilder from the command line with a given * action and option and basically diff the output against a stored file with * the desired result. This should be the behavior of more than 90% of all * regression tests. * * \section regressiontest-structure Directory structure * * They are contained in the source folder \b tests/regression. There are * categories containing a distinct folder for each action. The folder for the * test of a specific Action has the following structure: * \li a folder \b pre contains all files required as input to the test. * \li a folder \b post contains all output files against which we compare all * or a number of resulting files. * \li a test script \b testsuite-....at which is included in a similarly- * named test script one directory level higher. * * \section regressiontest-launch-all Launching all tests * * Launching all regression tests is as simple as: * -# Enter the build directory * -# There, enter \b tests/regression * -# Run * \code make check \endcode * (at you liberty with option \a -j8 or similar for running the tests in * parallel. * * \section regressiontest-launch-some Launching a specific tests * * Launching a single or just some of the tests is only a little bit more * complicated. There are two options: either by the test number which however * changes when new tests are added, and by keywords. * * Then proceed as follows: * -# Enter the build directory * -# There, enter \b tests/regression * -# Run * \code ../../../tests/regression/testsuite