runtest1
Dejagnu test driver
Usage
runtest [OPTION] ...
Overview
DejaGnu is a framework for testing programs using Expect. runtest is the driver program for DejaGnu. It controls what tests to run and how to run them.
Options
-
--all, -a -
Output all test results. By default, only unexpected results are displayed.
--buildTRIPLET-
The configuration TRIPLET for the build system.
-
--debug -
Turn on
Expectinternal debugging output. The output is logged to a file calleddbg.log.
--directoryDIRECTORY-
Run only tests in the specified DIRECTORY.
--global_initNAME-
The NAME to use for the global init file in libdir. The default is
site.expif this option is not given.
-
--help -
Prints a usage message and then exits.
--hostTRIPLET-
The configuration TRIPLET for the host system.
--host_boardNAME-
The host board definition to use.
--ignoretest1.exp test2.exp ...-
Do not run the specified tests.
--local_initNAME-
The NAME to use for the testsuite local init file in both the current directory and objdir. The default is
site.expif this option is not given.
-
--log_dialog -
Emit Expect output to standard output.
|
Electronic mail addresses to receive test results. |
|---|---|
|
PATH is a directory containing compiled test code. |
|
The name of a DIRECTORY for test log output. |
-
--reboot -
Reboot the target board when
runtestinitializes (if supported).
--srcdirPATH-
PATH is a directory containing test directories.
--straceN-
Turns on
Expectinternal tracing to N levels deep. The output is logged to a file calleddbg.log.
--targetTRIPLET-
The configuration TRIPLET for the target.
--target_boardNAME-
A list of target board NAMEs to run tests on.
--toolTOOLNAME-
Specify the tool to be tested. TOOLNAME controls the test suite applied, and the associated initialization module.
--tool_execPATH-
Specify the PATH to the executable to test.
--tool_optsOPTIONS-
Additional OPTIONS to pass to the tool.
-
-v, --verbose -
Turns on more debugging output from test cases and DejaGnu utility code. Use more than once to increase output further.
-
-V, --version -
Prints out the versions of DejaGnu, Expect and Tcl.
-
-x, --xml -
Generate XML output. The output file is named after the tool with an .xml extension.
-
-D[number] -
Activate the Tcl debugger.
numbercan be either 1 or 0. If it is 1, then the Expect shell will break when it starts to run. The interrupt key will cause DejaGnu to drop to the debugger prompt. If it is 0, DejaGnu starts as usual, but Control-C drops to the debugger prompt.
- Any file name on the command line is assumed to be a subset of the
-
test names to run. Usually these are the names of the test scripts (eg. foo.exp).
Makefile-style variables are used to specify tool names and their flags; these and other configuration dependent values are saved in the file site.exp, created during configuration.
Exit status:
0
|
if all tests passed including expected failures and unsupported tests, |
|---|---|
1
|
if any test failed, passed unexpectedly, or was unresolved, |
2
|
if Expect encountered any error in the test scripts. |
Releases
19 releases since Debian 1.1 (Buzz); the text changed 8 times.
--log_dialog since Debian 9 (Stretch);
--xml since Debian 4.0 (Etch);
-a since Debian 9 (Stretch);
-x since Debian 4.0 (Etch).
--status until Debian 8 (Jessie).