Download: rtest-1.0.1.tgz

rtest - a small regression test tool

usage

rtest [testcase[.test] ...]

Examples

This is the most simple case. You have some commands that produce output and it must match the sample you give.

TEST_DEF TestName Short Description <<END_TEST
one or more shell commands
....
___EXPECT___
expected output from the commands above
END_TEST

In this case, the sample output comes from a separate file (testname.baseline). You would use this form when the output is really large, or binary

TEST_DEF TestName Another Description <<END_TEST
___EXPECT_FILE__ testname.baseline
END_TEST

see the test cases in the source code for more examples

More Features

CLEANUP file ...
Indicates that the named files are created during the tests and should be deleted if the tests complete successfully. If the tests fail, they are left around for inspection.
CLEANUP a.out
REQUIRE program ...
Indicates that the named programs must be found in your $PATH. If they are not available, the tests stop with a warning.
REQUIRE tar
Download: rtest-1.0.1.tgz