Files
libguestfs/tests
Richard W.M. Jones 008be5dbfa tests: More flexible re-implementation of C API tests.
Instead of using the various 'TestOutput', 'TestOutputList' etc
macros, it makes better sense to let the tests contain fragments of C
code to perform the checks.

Several new macros are added:

- 'TestResult': This macro takes a C expression which is evaluated to
test the result of commands.  For example to compare if a string
result has some value:

   TestResult (* command sequence *), "STREQ (ret, \"abcd\")"

The variable "ret" contains the result from the last command in the
sequence.  But also, variables "ret1", "ret2", etc contain the results
from the last but one command, the command before that, and so forth,
allowing much more flexible tests to be written.

- 'TestResultTrue', 'TestResultFalse': Wrappers that test the last
command for true/false.
2013-04-12 21:26:23 +01:00
..
2013-04-02 12:38:50 +01:00
2013-02-02 13:56:19 +00:00
2013-02-02 13:56:19 +00:00
2013-02-02 13:56:19 +00:00
2013-02-02 13:56:19 +00:00
2013-04-02 12:38:50 +01:00