* doc/runtest.1: Document it.
* doc/user.xml: Likewise.
* doc/dejagnu.texi: Regenerate.
Signed-off-by: Ben Elliston <bje@gnu.org>
+2015-05-15 Filipe Brandenburger <filbranden@google.com>
+
+ * runtest.exp (runtest): Introduce new --log_dialog option.
+ * doc/runtest.1: Document it.
+ * doc/user.xml: Likewise.
+ * doc/dejagnu.texi: Regenerate.
+
2015-05-14 Steve Ellcey <sellcey@imgtec.com>
* baseboards/multi-sim.exp (get_library_dirlist): New.
log @file{dbg.log} always appears (when requested) in
the local directory.
+@item @code{--log_dialog}
+Emit Expect output to stdout.
+The @emph{expect} output is usually only written to
+@file{tool.log}. By enabling this option, they are also
+be printed to the stdout of the @emph{runtest}
+invocation.
+
@item @code{--reboot [name]}
Reboot the target board when
@emph{runtest} initializes. Usually, when running tests
.BI --outdir \ DIRECTORY
The name of a DIRECTORY for test log output.
.TP
+.B --log_dialog
+Emit Expect output to stdout.
+.TP
.B --reboot
Reboot the target board when \fBruntest\fR initializes
(if supported).
</varlistentry>
<varlistentry>
+ <term><option>--log_dialog</option></term>
+ <listitem><para>Emit Expect output to stdout.
+ The <emphasis>expect</emphasis> output is usually only written to
+ <filename>tool.log</filename>. By enabling this option, they are also
+ be printed to the stdout of the <emphasis>runtest</emphasis>
+ invocation.</para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>--reboot [name]</option></term>
<listitem><para>Reboot the target board when
<emphasis>runtest</emphasis> initializes. Usually, when running tests
if {![info exists verbose]} {
set verbose 0
}
+if {![info exists log_dialog]} {
+ set log_dialog 0
+}
#
# verbose [-n] [-log] [--] message [level]
send_user "\t--ignore \[name(s)\]\tThe names of specific tests to ignore\n"
send_user "\t--objdir \[name\]\t\tThe test suite binary directory\n"
send_user "\t--outdir \[name\]\t\tThe directory to put logs in\n"
+ send_user "\t--log_dialog\t\t\Emit Expect output on stdout\n"
send_user "\t--reboot \[name\]\t\tReboot the target (if supported)\n"
send_user "\t--srcdir \[name\]\t\tThe test suite source code directory\n"
send_user "\t--strace \[number\]\tSet expect tracing ON\n"
continue
}
+ "--log_dialog*" {
+ incr log_dialog
+ continue
+ }
+
"*.exp" { # specify test names to run
set all_runtests($option) ""
verbose "Running only tests $option"
#
# initialize a few Tcl variables to something other than their default
#
-if { $verbose > 2 } {
+if { $verbose > 2 || $log_dialog } {
log_user 1
} else {
log_user 0