Want a test framework for arbitrary OS unit tests
The testrunner has three modes of operation:
With -c <runfile>:
Reads in an ini-style runfile that describes all the tests and test groups
for this test run in one section each. The runfile also contains a DEFAULT
section, that specifies various properties for the test run and individual
tests. Individual sections inherit properties from DEFAULT, and can override
them if needed.
With neither -c <runfile> nor -w <runfile>:
Takes a list of pathnames. It adds executable files to the testrun, and
searches directories recursively doing the same for executable files
found. With -g, directories are treated at test groups. This allows any
pre and post scripts specified to be run before and after all the tests in
that group rather than individual tests.
With -w <runfile>:
Creates a testrun as in the mode with no arguments, but writes a runfile
rather than executing the testrun.
These are the options currently supported:
oi-151% /opt/test-runner/bin/run -h
Usage: run [options]
-h, --help show this help message and exit
-c runfile Specify tests to run via config file.
-d Dry run. Print tests, but take no other action.
-g Make directories TestGroups.
-o outputdir Specify an output directory.
-p script Specify a pre script.
-P script Specify a post script.
-q Silence on the console during a test run.
-t seconds Timeout (in seconds) for an individual test.
-u user Specify a different user name to run as.
-w template Create a new config file.
-x pre_user Specify a user to execute the pre script.
-X post_user Specify a user to execute the post script.