| Home | Trees | Index | Help |
|---|
|
|
object --+
|
extension.Extension --+
|
runnable.Runnable --+
|
test.Test --+
|
ExecTestBase
Check a program's output and exit code.
An 'ExecTestBase' runs a program and compares its standard output, standard error, and exit code with expected values. The program may be provided with command-line arguments and/or standard input.
The test passes if the standard output, standard error, and exit code are identical to the expected values.
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
MakeEnvironment(self,
context)
Construct the environment for executing the target program. |
|||
|
ValidateOutput(self,
stdout,
stderr,
result)
Validate the output of the program. |
|||
|
RunProgram(self,
program,
arguments,
context,
result)
Run the 'program'. |
|||
|
__CompareText(self,
s1,
s2)
Compare 's1' and 's2', ignoring line endings. |
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
| arguments | |||
| _argument_dictionary | |||
| _argument_list | |||
| environment | |||
| exit_code | |||
| stderr | |||
| stdin | |||
| stdout | |||
| timeout | |||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Validate the output of the program. 'stdout' -- A string containing the data written to the standard output stream. 'stderr' -- A string containing the data written to the standard error stream. 'result' -- A 'Result' object. It may be used to annotate the outcome according to the content of stderr. returns -- A list of strings giving causes of failure. |
Run the 'program'. 'program' -- The path to the program to run. 'arguments' -- A list of the arguments to the program. This list must contain a first argument corresponding to 'argv[0]'. 'context' -- A 'Context' giving run-time parameters to the test. 'result' -- A 'Result' object. The outcome will be 'Result.PASS' when this method is called. The 'result' may be modified by this method to indicate outcomes other than 'Result.PASS' or to add annotations. |
Compare 's1' and 's2', ignoring line endings. 's1' -- A string. 's2' -- A string. returns -- True if 's1' and 's2' are the same, ignoring differences in line endings. |
|
|||
arguments
|
_argument_dictionary
|
_argument_list
|
environment
|
exit_code
|
stderr
|
stdin
|
stdout
|
timeout
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:31 2007 | http://epydoc.sf.net |