Project

General

Profile

Feature #3311

Want a test framework for arbitrary OS unit tests

Added by John Kennedy almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
tests
Start date:
2012-10-26
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

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]

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.

History

#1

Updated by Rich Lowe almost 7 years ago

  • Tags deleted (needs-triage)
  • % Done changed from 0 to 100
  • Status changed from New to Resolved
  • Category set to tests

Resolved in d583b39

Also available in: Atom PDF