/* * 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 code-tests.dox * * Created on: Oct 28, 2011 * Author: heber */ /** * \page codetest "Code tests" * * Code tests enforce certain principles which the programmer must follow. * * At this moment these are: * -# Every .cpp files must include \b config.h and \b CodePatterns/MemDebug.hpp * -# Every .hpp files must include \b config.h * -# Every .dox file contains a (correctly formatted: YYYY-MM-DD) date stamp. * * These make sure that the memory debugger is catching every movement on the * heap and that every module knows about the behavior controling \e #define's that * are checked by autoconf and written to \b config.h in the build directory. And * also that for every documentation file it is known when it was current. * * \section codetest-structure Directory structure * * The code tests are contained in \b tests/CodeChecks. Therein are all test * scripts gathered that use autotest (http://www.gnu.org/s/hello/manual/autoconf/Using-Autotest.html#Using-Autotest). * Mostly, these look through files * * \section codetest-launch-all Launching all tests * * In order to launch all tests, simply do: * -# Enter \b tests/CodeChecks in your build directory * -# Run * \code make check \endcode * there * * \section codetest-launch-some Launching some tests * * Launching a single or just some of the tests is only a little bit more * complicated. Proceed as follows: * -# Enter \b tests/CodeChecks in your build directory * -# Run * \code ../../../tests/CodeChecks/testsuite