Gromacs  2016.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
gmx::test::MdrunTestFixtureBase Class Reference

#include <programs/mdrun/tests/moduletest.h>

+ Inheritance diagram for gmx::test::MdrunTestFixtureBase:
+ Collaboration diagram for gmx::test::MdrunTestFixtureBase:

Description

Declares test fixture base class for integration tests of mdrun functionality.

Derived fixture classes (or individual test cases) that might have specific requirements should assert that behaviour, rather than hard-code the requirements. A test that (for example) can't run with more than one thread should report that as a diagnostic, so the person running the test (or designing the test harness) can get feedback on what tests need what conditions without having to read the code of lots of tests.

Specifying the execution context (such as numbers of threads and processors) is normally sensible to specify from the test harness (i.e. when CMake/CTest/the user runs a test executable), because only there is information about the hardware available. The default values for such context provided in test fixtures for mdrun should mirror the defaults for mdrun, but currently mdrun.c hard-codes those in a gmx_hw_opt_t.

Any method in this class may throw std::bad_alloc if out of memory.

Additional Inherited Members

- Public Attributes inherited from gmx::test::IntegrationTestFixture
::gmx::test::TestFileManager fileManager_
 Object that manages finding input files, writing temporary output files and cleaning up files.
 
- Protected Member Functions inherited from gmx::test::IntegrationTestFixture
void redirectStringToStdin (const char *theString)
 Accepts a string as input, writes it to a temporary file and then reopens stdin to read the contents of that string. More...
 
void redirectStdoutToDevNull ()
 Discards stdout while running a test. More...
 
void redirectStderrToDevNull ()
 Discards stderr while running a test. More...
 

The documentation for this class was generated from the following files: