1 .\" Copyright (C) 1993, 1995, 2001, 2002, 2003, 2004, 2005, 2008,
2 .\" 2009, 2012, 2015, 2016, 2017, 2018, 2020
3 .\" Free Software Foundation, Inc.
4 .\" You may distribute this file under the terms of the GNU Free
5 .\" Documentation License.
6 .TH runtest 1 "2018-12-01"
8 runtest \- DejaGnu test driver
14 is a framework for testing programs using Expect.
16 is the driver program for
18 It controls what tests to run and how to run them.
22 Output all test results. By default, only unexpected results are
26 The configuration TRIPLET for the build system.
31 internal debugging output. The output is logged to a file called
34 .BI --directory \ DIRECTORY
35 Run only tests in the specified DIRECTORY.
37 .BI --global_init \ NAME
38 The NAME to use for the global init file in libdir.
39 The default is \fBsite.exp\fR if this option is not given.
42 Prints a usage message and then exits.
45 The configuration TRIPLET for the host system.
47 .BI --host_board \ NAME
48 The host board definition to use.
50 .BI --ignore \ test1.exp\ test2.exp\ ...
51 Do not run the specified tests.
53 .BI --local_init \ NAME
54 The NAME to use for the testsuite local init file in both the current
56 The default is \fBsite.exp\fR if this option is not given.
59 Emit Expect output to standard output.
61 .BI --mail \ \'name1\ name2\ ...\'
62 Electronic mail addresses to receive test results.
65 \fIPATH\fR is a directory containing compiled test code.
67 .BI --outdir \ DIRECTORY
68 The name of a DIRECTORY for test log output.
71 Reboot the target board when \fBruntest\fR initializes
75 \fIPATH\fR is a directory containing test directories.
80 internal tracing to \fIN\fR levels deep. The output is logged to a
81 file called \fBdbg.log\fR.
83 .BI --target \ TRIPLET
84 The configuration TRIPLET for the target.
86 .BI --target_board \ NAME
87 A list of target board NAMEs to run tests on.
90 Specify the tool to be tested. \fITOOLNAME\fR controls the test suite
91 applied, and the associated initialization module.
93 .BI --tool_exec \ PATH
94 Specify the PATH to the executable to test.
96 .BI --tool_opts \ OPTIONS
97 Additional OPTIONS to pass to the tool.
100 Turns on more debugging output from test cases and DejaGnu utility code.
101 Use more than once to increase output further.
104 Prints out the versions of DejaGnu, Expect and Tcl.
107 Generate XML output. The output file is named after the tool with
111 Activate the Tcl debugger. \fBnumber\fR can be either 1 or 0. If it
112 is 1, then the Expect shell will break when it starts to run. The
113 interrupt key will cause DejaGnu to drop to the debugger prompt. If it
114 is 0, DejaGnu starts as usual, but Control-C drops to the debugger
117 Any file name on the command line is assumed to be a subset of the
118 test names to run. Usually these are the names of the test scripts
121 Makefile-style variables are used to specify tool names and their
122 flags; these and other configuration dependent values are saved in the
123 file \fBsite.exp\fR, created during configuration.
127 if all tests passed including expected failures and unsupported tests,
130 if any test failed, passed unexpectedly, or was unresolved,
133 if Expect encountered any error in the test scripts.
135 Rob Savoye (rob@welcomehome.org)
137 Report bugs to <bug\-dejagnu@gnu.org>.
139 Copyright \(co 2005\-2016, 2018, 2020 Free Software Foundation, Inc.
141 This is free software. You may redistribute copies of it under the terms of
142 the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
143 There is NO WARRANTY, to the extent permitted by law.
145 The full documentation for
147 is maintained as a Texinfo manual. If the
149 program is properly installed at your site, the command
153 should give you access to the complete manual.