Gromacs
2021-sycl
|
#include <gromacs/coordinateio/tests/requirements.h>
Test fixture to test user inputs.
Public Member Functions | |
void | setInputFile (const char *option, const char *filename) |
Sets an input file. More... | |
void | setInputFile (const char *option, const std::string &filename) |
Sets an input file. More... | |
void | setModifiableInputFile (const char *option, const char *filename) |
Sets an input file that may be modified. The file is copied to a temporary file, which is used as the test input. More... | |
void | setModifiableInputFile (const char *option, const std::string &filename) |
Sets an input file that may be modified. The file is copied to a temporary file, which is used as the test input. More... | |
void | setInputFileContents (const char *option, const char *extension, const std::string &contents) |
Generates and sets an input file. More... | |
void | setInputFileContents (const char *option, const char *extension, const ArrayRef< const char *const > &contents) |
Generates and sets an input file. More... | |
void | setOutputFile (const char *option, const char *filename, const ITextBlockMatcherSettings &matcher) |
Sets an output file parameter and adds it to the set of tested files. More... | |
void | setOutputFile (const char *option, const char *filename, const IFileMatcherSettings &matcher) |
Sets an output file parameter and adds it to the set of tested files. More... | |
void | setInputAndOutputFile (const char *option, const char *filename, const ITextBlockMatcherSettings &matcher) |
Sets a file parameter that is used for input and modified as output. The input file is copied to a temporary file that is used as input and can be modified. | |
void | setInputAndOutputFile (const char *option, const char *filename, const IFileMatcherSettings &matcher) |
Sets a file parameter that is used for input and modified as output. The input file is copied to a temporary file that is used as input and can be modified. More... | |
CommandLine & | commandLine () |
Returns the internal CommandLine object used to construct the command line for the test. More... | |
TestFileManager & | fileManager () |
Returns the internal TestFileManager object used to manage the files. More... | |
TestReferenceChecker | rootChecker () |
Returns the root reference data checker. More... | |
void | setDefaultTolerance (const FloatingPointTolerance &tolerance) |
Sets the tolerance for floating-point comparisons. More... | |
void | testWriteHelp (ICommandLineModule *module) |
Checks the output of writeHelp() against reference data. | |
void | checkOutputFiles () |
Checks output files added with setOutputFile() against reference data. More... | |
Static Public Member Functions | |
static void | setModuleFlag (const std::string &optionName, const std::string &optionValues, Options *options, TestEnums type) |
Set value for options in flag setting object. More... | |
Public Attributes | |
OutputRequirementOptionDirector | requirementsBuilder_ |
Storage of requirments. | |
Options | options_ |
Options storage. | |
|
inherited |
Checks output files added with setOutputFile() against reference data.
|
inherited |
Returns the internal CommandLine object used to construct the command line for the test.
Derived test fixtures can use this to add additional options, and to access the final command line to do the actual call that is being tested.
Does not throw.
|
inherited |
Returns the internal TestFileManager object used to manage the files.
Derived test fixtures can use this to manage files in cases the canned methods are not sufficient.
Does not throw.
|
inherited |
Returns the root reference data checker.
Derived test fixtures can use this to check other things than output file contents.
|
inherited |
Sets the tolerance for floating-point comparisons.
All following floating-point comparisons using the checker will use the new tolerance.
Does not throw.
|
inherited |
Sets a file parameter that is used for input and modified as output. The input file is copied to a temporary file that is used as input and can be modified.
|
inherited |
Sets an input file.
[in] | option | Option to set. |
[in] | filename | Name of the input file. |
|
inherited |
Sets an input file.
[in] | option | Option to set. |
[in] | filename | Name of the input file. |
|
inherited |
Generates and sets an input file.
|
inherited |
Generates and sets an input file.
|
inherited |
Sets an input file that may be modified. The file is copied to a temporary file, which is used as the test input.
[in] | option | Option to set. |
[in] | filename | Name of the input file. |
|
inherited |
Sets an input file that may be modified. The file is copied to a temporary file, which is used as the test input.
[in] | option | Option to set. |
[in] | filename | Name of the input file. |
|
inlinestatic |
Set value for options in flag setting object.
[in] | optionName | Name of the option to add value for. |
[in] | optionValues | Values to set for option. |
[in] | options | Container for options. |
[in] | type | Need to know type of entries. |
|
inherited |
Sets an output file parameter and adds it to the set of tested files.
|
inherited |
Sets an output file parameter and adds it to the set of tested files.