Gromacs
5.1.2
|
Testing utilities namespace.
This namespace contains utilities for writing unit tests, mostly from the Testing Utilities (testutils) module.
Classes | |
class | AnalysisDataTestInputPointSet |
Represents a single set of points in AnalysisDataTestInputFrame structure. More... | |
class | AnalysisDataTestInputFrame |
Represents a single frame in AnalysisDataTestInput structure. More... | |
class | AnalysisDataTestInput |
Represents static input data for AbstractAnalysisData tests. More... | |
class | AnalysisDataTestFixture |
Test fixture for AbstractAnalysisData testing. More... | |
class | MockModule |
Mock implementation of gmx::CommandLineModuleInterface. More... | |
class | MockOptionsModule |
Mock implementation of gmx::CommandLineOptionsModuleInterface. More... | |
class | CommandLineModuleManagerTestBase |
Test fixture for tests using gmx::CommandLineModuleManager. More... | |
class | SimdBaseTest |
Base class for SIMD test fixtures. More... | |
class | SimdTest |
Test fixture for SIMD tests. More... | |
class | Simd4Test |
Test fixture for SIMD4 tests - contains test settings. More... | |
class | AbstractTrajectoryAnalysisModuleTestFixture |
Test fixture for trajectory analysis modules. More... | |
class | TrajectoryAnalysisModuleTestFixture |
Test fixture for a trajectory analysis module. More... | |
class | SimulationRunner |
Helper object for running grompp and mdrun in integration tests of mdrun functionality. More... | |
class | MdrunTestFixtureBase |
Declares test fixture base class for integration tests of mdrun functionality. More... | |
class | MdrunTestFixture |
Declares test fixture class for integration tests of mdrun functionality that use a single call of mdrun. More... | |
class | ParameterizedMdrunTestFixture |
Parameterized test fixture for mdrun integration tests. More... | |
class | CommandLine |
Helper class for tests that need to construct command lines. More... | |
class | CommandLineTestHelper |
Helper class for tests that construct command lines that need to reference existing files. More... | |
class | CommandLineTestBase |
Test fixture for tests that call a single command-line program with input/output files. More... | |
class | IntegrationTestFixture |
Test fixture for integration tests. More... | |
class | TestReferenceData |
Handles creation of and comparison to test reference data. More... | |
class | TestReferenceChecker |
Handles comparison to test reference data. More... | |
class | TestFileOutputRedirector |
Implementation of FileOutputRedirectorInterface for tests. More... | |
class | StringTestBase |
Test fixture for tests that check string formatting. More... | |
class | FloatingPointDifference |
Computes and represents a floating-point difference value. More... | |
class | FloatingPointTolerance |
Specifies a floating-point comparison tolerance and checks whether a difference is within the tolerance. More... | |
class | TestException |
Exception class for reporting errors in tests. More... | |
class | TestFileManager |
Helper for tests that need input and output files. More... | |
class | TestFileInputRedirector |
In-memory implementation for FileInputRedirectorInterface for tests. More... | |
class | TestOptionsProvider |
Provides additional options for the test executable. More... | |
Typedefs | |
typedef boost::shared_ptr < MockAnalysisDataModule > | MockAnalysisDataModulePointer |
Smart pointer to manage an MockAnalysisDataModule object. | |
typedef gmx::test::ImdTestFixture | ImdTest |
Test fixture for mdrun with IMD settings. | |
typedef gmx_unique_ptr < CommandLine >::type | CommandLinePointer |
Convenience typedef. | |
typedef MultiSimTest | ReplicaExchangeTest |
Convenience typedef. | |
typedef gmx::test::SwapTestFixture | CompelTest |
Test fixture for mdrun with "Computational Electrophysiology" settings,. | |
Enumerations | |
enum | ReferenceDataMode { erefdataCompare, erefdataCreateMissing, erefdataUpdateAll } |
Mode of operation for reference data handling. More... | |
Functions | |
::std::vector< real > | simdReal2Vector (const gmx_simd_float_t simd) |
Convert SIMD real to std::vector<real>. More... | |
gmx_simd_float_t | vector2SimdReal (const std::vector< real > &v) |
Return floating-point SIMD value from std::vector<real>. More... | |
gmx_simd_float_t | setSimdRealFrom3R (real r0, real r1, real r2) |
Set SIMD register contents from three real values. More... | |
gmx_simd_float_t | setSimdRealFrom1R (real value) |
Set SIMD register contents from single real value. More... | |
std::vector< int > | simdInt2Vector (const gmx_simd_fint32_t simd) |
Convert SIMD integer to std::vector<int>. More... | |
gmx_simd_fint32_t | vector2SimdInt (const std::vector< int > &v) |
Return 32-bit integer SIMD value from std::vector<int>. More... | |
gmx_simd_fint32_t | setSimdIntFrom3I (int i0, int i1, int i2) |
Set SIMD register contents from three int values. More... | |
gmx_simd_fint32_t | setSimdIntFrom1I (int value) |
Set SIMD register contents from single integer value. More... | |
::std::vector< real > | simd4Real2Vector (const gmx_simd_float_t simd4) |
Convert SIMD4 real to std::vector<real>. More... | |
gmx_simd_float_t | vector2Simd4Real (const std::vector< real > &v) |
Return floating-point SIMD4 value from std::vector<real>. More... | |
gmx_simd_float_t | setSimd4RealFrom3R (real r0, real r1, real r2) |
Set SIMD4 register contents from three real values. More... | |
gmx_simd_float_t | setSimd4RealFrom1R (real value) |
Set SIMD4 register contents from single real value. More... | |
void | initMPIOutput () |
Customizes test output and test failure handling for MPI runs. More... | |
void | initReferenceData (Options *options) |
Initializes reference data handling. More... | |
void | initTestUtils (const char *dataPath, const char *tempPath, int *argc, char ***argv) |
Initializes the test utilities library. More... | |
void | finalizeTestUtils () |
Finalizes the test utilities library. More... | |
void | registerTestOptions (const char *name, TestOptionsProvider *provider) |
Registers a test option provider with the test framework. More... | |
void | initTestOptions (Options *options) |
Initializes the options from all registered test providers. More... | |
Assertions for floating-point comparison | |
These routines extend See gmx::test::FloatingPointTolerance for the possible ways to specify the tolerance, and gmx::test::FloatingPointDifference for some additional details of the difference calculation. | |
template<typename FloatType > | |
static inline::testing::AssertionResult | assertEqualWithinTolerance (const char *expr1, const char *expr2, const char *, FloatType value1, FloatType value2, const FloatingPointTolerance &tolerance) |
Assertion predicate formatter for comparing two floating-point values. More... | |
Variables | |
const gmx_simd_float_t | rSimd_1_2_3 = setSimdRealFrom3R(1, 2, 3) |
Generic (different) fp values. | |
const gmx_simd_float_t | rSimd_4_5_6 = setSimdRealFrom3R(4, 5, 6) |
Generic (different) fp values. | |
const gmx_simd_float_t | rSimd_7_8_9 = setSimdRealFrom3R(7, 8, 9) |
Generic (different) fp values. | |
const gmx_simd_float_t | rSimd_5_7_9 = setSimdRealFrom3R(5, 7, 9) |
rSimd_1_2_3 + rSimd_4_5_6. | |
const gmx_simd_float_t | rSimd_m1_m2_m3 = setSimdRealFrom3R(-1, -2, -3) |
Generic negative floating-point values. | |
const gmx_simd_float_t | rSimd_3_1_4 = setSimdRealFrom3R(3, 1, 4) |
Used to test min/max. | |
const gmx_simd_float_t | rSimd_m3_m1_m4 = setSimdRealFrom3R(-3, -1, -4) |
negative rSimd_3_1_4. | |
const gmx_simd_float_t | rSimd_2p25 = setSimdRealFrom1R(2.25) |
Value that rounds down. | |
const gmx_simd_float_t | rSimd_3p75 = setSimdRealFrom1R(3.75) |
Value that rounds up. | |
const gmx_simd_float_t | rSimd_m2p25 = setSimdRealFrom1R(-2.25) |
Negative value that rounds up. | |
const gmx_simd_float_t | rSimd_m3p75 = setSimdRealFrom1R(-3.75) |
Negative value that rounds down. More... | |
const gmx_simd_float_t | rSimd_Exp |
Three large floating-point values whose exponents are >32. More... | |
const gmx_simd_fint32_t | iSimd_1_2_3 = setSimdIntFrom3I(1, 2, 3) |
Three generic ints. | |
const gmx_simd_fint32_t | iSimd_4_5_6 = setSimdIntFrom3I(4, 5, 6) |
Three generic ints. | |
const gmx_simd_fint32_t | iSimd_7_8_9 = setSimdIntFrom3I(7, 8, 9) |
Three generic ints. | |
const gmx_simd_fint32_t | iSimd_5_7_9 = setSimdIntFrom3I(5, 7, 9) |
iSimd_1_2_3 + iSimd_4_5_6. | |
const gmx_simd_fint32_t | iSimd_1M_2M_3M = setSimdIntFrom3I(1000000, 2000000, 3000000) |
Term1 for 32bit add/sub. | |
const gmx_simd_fint32_t | iSimd_4M_5M_6M = setSimdIntFrom3I(4000000, 5000000, 6000000) |
Term2 for 32bit add/sub. | |
const gmx_simd_fint32_t | iSimd_5M_7M_9M = setSimdIntFrom3I(5000000, 7000000, 9000000) |
iSimd_1M_2M_3M + iSimd_4M_5M_6M. | |
const gmx_simd_fint32_t | iSimd_0xF0F0F0F0 = setSimdIntFrom1I(0xF0F0F0F0) |
Bitpattern to test integer logical operations. | |
const gmx_simd_fint32_t | iSimd_0xCCCCCCCC = setSimdIntFrom1I(0xCCCCCCCC) |
Bitpattern to test integer logical operations. | |
const gmx_simd_float_t | rSimd_Bits1 |
Pattern F0 repeated to fill single/double. | |
const gmx_simd_float_t | rSimd_Bits2 |
Pattern CC repeated to fill single/double. | |
const gmx_simd_float_t | rSimd_Bits3 |
Pattern C0 repeated to fill single/double. | |
const gmx_simd_float_t | rSimd_Bits4 |
Pattern 0C repeated to fill single/double. | |
const gmx_simd_float_t | rSimd_Bits5 |
Pattern FC repeated to fill single/double. | |
const gmx_simd_float_t | rSimd_Bits6 |
Pattern 3C repeated to fill single/double. | |
const gmx_simd_float_t | rSimd4_1_2_3 = setSimd4RealFrom3R(1, 2, 3) |
Generic (different) fp values. | |
const gmx_simd_float_t | rSimd4_4_5_6 = setSimd4RealFrom3R(4, 5, 6) |
Generic (different) fp values. | |
const gmx_simd_float_t | rSimd4_7_8_9 = setSimd4RealFrom3R(7, 8, 9) |
Generic (different) fp values. | |
const gmx_simd_float_t | rSimd4_5_7_9 = setSimd4RealFrom3R(5, 7, 9) |
rSimd_1_2_3 + rSimd_4_5_6. | |
const gmx_simd_float_t | rSimd4_m1_m2_m3 = setSimd4RealFrom3R(-1, -2, -3) |
Generic negative fp values. | |
const gmx_simd_float_t | rSimd4_3_1_4 = setSimd4RealFrom3R(3, 1, 4) |
Used to test min/max. | |
const gmx_simd_float_t | rSimd4_m3_m1_m4 = setSimd4RealFrom3R(-3, -1, -4) |
negative rSimd_3_1_4. | |
const gmx_simd_float_t | rSimd4_2p25 = setSimd4RealFrom1R(2.25) |
Value that rounds down. | |
const gmx_simd_float_t | rSimd4_3p75 = setSimd4RealFrom1R(3.75) |
Value that rounds up. | |
const gmx_simd_float_t | rSimd4_m2p25 = setSimd4RealFrom1R(-2.25) |
Negative value that rounds up. | |
const gmx_simd_float_t | rSimd4_m3p75 = setSimd4RealFrom1R(-3.75) |
Negative value that rounds down. More... | |
const gmx_simd_float_t | rSimd4_Exp |
Three large floating-point values whose exponents are >32. More... | |
const gmx_simd_float_t | rSimd4_Bits1 |
Pattern F0 repeated to fill single/double. | |
const gmx_simd_float_t | rSimd4_Bits2 |
Pattern CC repeated to fill single/double. | |
const gmx_simd_float_t | rSimd4_Bits3 |
Pattern C0 repeated to fill single/double. | |
const gmx_simd_float_t | rSimd4_Bits4 |
Pattern 0C repeated to fill single/double. | |
const gmx_simd_float_t | rSimd4_Bits5 |
Pattern FC repeated to fill single/double. | |
const gmx_simd_float_t | rSimd4_Bits6 |
Pattern 3C repeated to fill single/double. | |
static bool | g_bDeleteFilesAfterTest = true |
Controls whether TestFileManager should delete temporary files after the test finishes. More... | |
|
static |
Controls whether TestFileManager should delete temporary files after the test finishes.