Tester Class Reference
#include <tester.h>
Public Member Functions | |
Tester () | |
void | runTest (const CString &startdir, ostream &out) |
bool | compareToCorrectOutput (const CString &dir, const CString &output) |
Private Member Functions | |
CString * | extractOutputNumbers (const CString &s, list< OutputNumber > **floats) |
Private Attributes | |
Shell * | shell |
Constructor & Destructor Documentation
Tester::Tester | ( | ) |
constructor creates a shell object
References createShell(), and shell.
Member Function Documentation
Check whether output is equal to the contents of the correct-output file modulo differences in DOS/UNIX line ends (sigh...) and modulo differences in float representation and rounding
References CORRECT_OUTPUT_NAME, extractOutputNumbers(), PATHSEPARATOR, Shell::readFile(), CString::replace(), and shell.
Referenced by runTest().
CString * Tester::extractOutputNumbers | ( | const CString & | s, | |
list< OutputNumber > ** | numbers | |||
) | [private] |
Tester::extractOutputNumbers remove all numbers and wildcard symbols from output string and collect them in a separate list.
References NUMBER_OR_WILDCARD_REGEX, and ON_WILDCARD.
Referenced by compareToCorrectOutput().
void Tester::runTest | ( | const CString & | startdir, | |
ostream & | out | |||
) |
runTest () Run the actual tests.
References CAddNode(), CAddProcessingInstruction(), CNewDoc(), CNewNode(), compareToCorrectOutput(), CSaveFile(), CSetContent(), CSetRootNode(), Shell::execute(), CException::getMessage(), PATHSEPARATOR, ListTests::results, shell, TEST_SCRIPT_NAME, and TEST_TIMEOUT_MILS.
Referenced by main().
Member Data Documentation
Shell* Tester::shell [private] |
Referenced by compareToCorrectOutput(), runTest(), and Tester().
The documentation for this class was generated from the following files: