aboutsummaryrefslogtreecommitdiff
path: root/runtest.exp
AgeCommit message (Collapse)AuthorFilesLines
2020-06-26Withdraw proposed --keep_going and --no_keep_going optionsJacob Bachmeyer1-18/+0
2020-06-26Record Tcl errors and dump them again at the end of a runJacob Bachmeyer1-1/+17
2020-06-24Add option to stop immediately at Tcl errors and continue by defaultJacob Bachmeyer1-3/+6
2020-06-18Use consistent behavior for Tcl errors in test scriptsJacob Bachmeyer1-0/+6
2020-06-17Allow testing to continue after an undefined command is calledJacob Bachmeyer1-0/+12
2020-06-02Save and restore variables set by command argumentsJacob Bachmeyer1-4/+50
This commit closes the window during which srcdir was controlled by the testsuite local init file even if specified on the command line. Allowing this override causes problems with Automake when the source directory was set using a relative file name.
2020-06-01Print initial working directory if verbose output is selectedJacob Bachmeyer1-0/+2
2020-06-01Add verbose output for testsuite searchJacob Bachmeyer1-0/+13
2020-05-28Show the user's login name shortly after finding itJacob Bachmeyer1-2/+2
Previously, two procedures were defined between setting logname and reporting its value if verbosity is selected. This does not change program flow, but will make the code easier to examine in the future.
2020-05-28Fix default value of libdir globalJacob Bachmeyer1-1/+4
This was causing testsuite/runtest.main/stats.exp to fail unless the DejaGnu sources were in a directory named dejagnu.
2020-05-15Update Copyright datesRob Savoye1-1/+1
2019-03-08 * runtest.exp (search_and_load_file): Join the directory andAndrew Burgess1-6/+7
filename once using 'file join'. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-16 * runtest.exp: Move processing of -V|--version option to firstJacob Bachmeyer1-8/+8
pass through command line arguments instead of delaying it. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-12 * config/gdb-comm.exp, config/gdb_stub.exp, config/vxworks.exp,Ben Elliston1-8/+9
lib/dg.exp, lib/ftp.exp, lib/kermit.exp, lib/rlogin.exp, lib/telnet.exp, runtest.exp, testsuite/lib/libsup.exp: Simplify some regular expressions in constant strings by placing them inside braces instead of quotes. This allows one level of backslash quoting to be removed.
2018-12-10 * runtest.exp: Remove unnecessary quotes and braces aroundBen Elliston1-85/+86
variable expansions.
2018-12-10 * runtest.exp (setup_target_hook): Use 'ne' and not '!='.Ben Elliston1-2/+2
(iterate_target_variants_two): Likewise. * lib/remote.exp (standard_download): Use 'eq' not '=='. (remote_upload): Likewise. * lib/framework.exp (open_logs): Likewise. (is_remote): Likewise.
2018-12-08 * NEWS: Document 'testsuite' command.Jacob Bachmeyer1-21/+76
* doc/dejagnu.texi (testsuite procedure): Document multiplex entry point and "testsuite file" command. * lib/framework.exp (testsuite): New proc for multiplex commands. (testsuite_file): New proc implementing "testsuite file". * testsuite/runtest.all/testsuite_file.test: New file. * runtest.exp: Expect to find testsuite in ${srcdir}/testsuite, but also search $srcdir itself. (load_lib): Add explicit search for testsuite-local libraries. (load_tool_init): Use $testsuitedir in search. (load_config): Use $testsuitedir instead of $srcdir. (load_tool_target_config): Likewise. Add variable "testsuitedir" for testsuite root directory. Add internal global variables "testbuilddir" and "testdir" for use by "testsuite file". Ensure that $testsuitedir, $testbuilddir, and $objdir also avoid duplicated path delimiters. Add warning if no tests are found and fallback method of searching $srcdir is used. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-08 * runtest.exp, lib/utils.exp, lib/targetdb.exp, lib/target.exp,Ben Elliston1-11/+11
lib/remote.exp, lib/framework.exp, lib/dg.exp, config/vxworks.exp, config/sim.exp, config/gdb_stub.exp, config/aarch64-fv8.exp, baseboards/vr4300-sim.exp, baseboards/vr4111-sim.exp, baseboards/vr4100-sim.exp, baseboards/sh-sid.exp, baseboards/mt-sid.exp, baseboards/mips-sim.exp, baseboards/mips-sim-idt64.exp, baseboards/mips-sim-idt32.exp, baseboards/i386-sid.exp, baseboards/arm-sim.exp, baseboards/arm-ice.exp, baseboards/androideabi.exp, testsuite/runtest.all/utils.test, testsuite/runtest.all/target.test: Replace string literal comparisons using == and != with 'eq' and 'ne'.
2018-12-08 * runtest.exp, lib/utils.exp, lib/target.exp, lib/ssh.exp,Ben Elliston1-39/+39
lib/rsh.exp, lib/rlogin.exp, lib/remote.exp, lib/libgloss.exp, lib/framework.exp, lib/dg.exp, lib/dejagnu.exp, config/vxworks.exp, config/unix.exp, config/sim.exp, config/gdb_stub.exp, config/gdb-comm.exp, config/adb.exp, baseboards/multi-sim.exp, baseboards/cris-sim.exp, baseboards/basic-sim.exp, baseboards/basic-sid.exp, baseboards/androideabi.exp, testsuite/runtest.all/load_lib.exp, testsuite/libdejagnu/tunit.exp: Replace empty string comparisons using == and != with 'eq' and 'ne'.
2018-12-06 * lib/remote.exp (standard_load): Fix typo on empty string.Jacob Bachmeyer1-2/+2
* runtest.exp: Adjust expression to follow GNU conventions. * lib/utils.exp (diff): Fix mistake in replacing [string compare] with "eq" instead of "ne". * testsuite/runtest.all/config.test: Likewise. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-06 * runtest.exp: Replace [string match] commands involving literalBen Elliston1-2/+2
strings and variables known to not be Tcl glob patterns with eq and ne. * config/unix.exp: Likewise. * lib/debugger.exp: Likewise. * lib/dg.exp: Likewise. * lib/framework.exp: Likewise. * lib/remote.exp: Likewise. * lib/utils.exp: Likewise. * baseboards/androideabi.exp: Likewise. * baseboards/multi-sim.exp: Likewise. * testsuite/lib/util-defs.exp: Likewise. * testsuite/runtest.all/config.test: Likewise.
2018-12-06 * runtest.exp: Replace '==' with 'eq' for string compares.Ben Elliston1-5/+5
Likewise, replace '!=' with 'ne'. Replace a few instances of [string length $str] == 0 with $str eq "". * config/gdb-comm.exp: Likewise. * lib/dg.exp: Likewise. * lib/framework.exp: Likewise. * lib/libgloss.exp: Likewise. * lib/remote.exp: Likewise. * lib/target.exp: Likewise. * lib/utils.exp: Likewise.
2018-12-06 * runtest.exp: Replace archaic use of [string match] with "eq".Jacob Bachmeyer1-5/+5
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-05 * runtest.exp (load_config): Remove unused globals.Jacob Bachmeyer1-7/+0
(load_generic_config): Likewise. (load_board_description): Likewise. (load_base_board_description): Likewise. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-04 * lib/utils.exp (relative_filename): New proc.Jacob Bachmeyer1-23/+4
* runtest.exp: Use it. * doc/dejagnu.texi (relative_filename procedure): Document it. * testsuite/runtest.all/utils.test: Add tests for relative_filename. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-02 * runtest.exp (hex): Remove useless test before setting.Jacob Bachmeyer1-6/+2
(decimal): Likewise. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-02 * doc/dejagnu.texi (Invoking runtest): Document new --local_initJacob Bachmeyer1-46/+56
and --global_init command line options. * doc/runtest.1: Likewise. * runtest.exp: Remove useless tests before setting default values for variables: all_flag, binpath, debug, options, outdir, reboot, tracelevel, verbose, log_dialog. They are set before loading any files or parsing the command line. * runtest.exp: Add options --local_init and --global_init for selecting alternate testsuite configuration files. * runtest.exp: Split variable "configfile" into "local_init_file" and "global_init_file" in preparation for adding command-line options to specify these independently. * runtest.exp (load_generic_config): Remove configfile global. (load_board_description): Likewise. (load_base_board_description): Likewise. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-11-30 * runtest.exp: Use isremote.Ben Elliston1-1/+1
* lib/target.exp: Likewise. * lib/remote.exp: Likewise. * lib/libgloss.exp: Likewise. * config/unix.exp: Likewise. * config/sim.exp: Likewise. * config/gdb_stub.exp: Likewise. * config/gdb-comm.exp: Likewise. * baseboards/basic-sim.exp: Likewise. * baseboards/androideabi.exp: Likewise.
2018-11-28 * NEWS: Update.Ben Elliston1-1/+1
* configure.ac: Update version number. * configure: Regenerate. * doc/dejagnu.texi: Update version number. * runtest.exp: Update version number.
2018-11-22 * runtest.exp: Ensure that multipass pass variables are alwaysJacob Bachmeyer1-9/+10
restored. Previously, they were only restored if the "Go digging for tests" branch was taken near the end of runtest.exp. This bug was found while splitting a new variable out of some uses of $srcdir when Emacs paren highlighting did not look right. Sure enough, the per-pass variables are set unconditionally, but are only restored if the "Go digging for tests" branch was taken. This patch moves that loop out of an 'else' block and into the same 'foreach' that contains the loop that sets per-pass variables. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-11-22 * runtest.exp: Raise error if $DEJAGNU is defined but not found.Jacob Bachmeyer1-1/+2
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-11-15 * runtest.exp (load_tool_init): Search for tool init file insteadJacob Bachmeyer1-14/+10
of assuming exactly one location. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-11-15 * runtest.exp (load_lib): Whitespace fix.Ben Elliston1-1/+1
2018-10-31 * runtest.exp (load_tool_init): Add message indicating theJacob Bachmeyer1-0/+2
expected location of the tool init file. Signed-off-by: Ben Elliston <bje@gnu.org>
2017-10-16Roll over to next development version number.Ben Elliston1-1/+1
* NEWS: Start a new section for the next release. * configure.ac (AC_INIT): Update version number. * configure: Regenerate. * runtest.exp (frame_version): Update version number. * doc/dejagnu.texi: Likewise. * doc/runtest.1: Update datestamp.
2017-08-19 * runtest.exp: Fix --directory matching.Tom Tromey1-1/+4
Signed-off-by: Ben Elliston <bje@gnu.org>
2017-08-15Fix bug reported by Andrey ``Bass'' Shcheglov.Ben Elliston1-4/+2
* lib/framework.exp (open_logs): Set .xml filename correctly. * runtest.exp: Remove xml_file_name var. (usage): Update --xml option to not take an argument. (load_tool_init): Likewise. * doc/dejagnu.texi (Invoking runtest): Update documentation. * doc/runtest.1: Likewise.
2017-08-01* runtest.exp (usage): Improve --strace message.Ben Elliston1-1/+1
2017-08-01* runtest.exp (usage): --reboot doesn't take a 'name' parameter.Ben Elliston1-1/+1
2016-09-04 * runtest.exp: Set CCACHE_DISABLE, clear CCACHE_NODISABLE.Jan Kratochvil1-0/+5
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-06-22 * configure.ac, dejagnu.h, runtest, runtest.exp,Bernhard Reutner-Fischer1-1/+1
baseboards/am33_2.0-libremote.exp, baseboards/androideabi.exp, baseboards/arm-ice.exp, baseboards/arm-sid.exp, baseboards/arm-sim.exp, baseboards/basic-sid.exp, baseboards/basic-sim.exp, baseboards/cris-sim.exp, baseboards/d30v-sim.exp, baseboards/fr30-sim.exp, baseboards/frv-sim.exp, baseboards/gdbserver-sample.exp, baseboards/i386-sid.exp, baseboards/iq2000-sim.exp, baseboards/jmr3904-sim.exp, baseboards/linux-gdbserver.exp, baseboards/linux-libremote.exp, baseboards/m68k-sid.exp, baseboards/mcore-moto-sim.exp, baseboards/mcore-sim.exp, baseboards/mips-lnews-sim.exp, baseboards/mips-lsi-sim.exp, baseboards/mips-sim-idt32.exp, baseboards/mips-sim-idt64.exp, baseboards/mips-sim-mti32.exp, baseboards/mips-sim-mti64.exp, baseboards/mips-sim-mti64_64.exp, baseboards/mips-sim-mti64_n32.exp, baseboards/mips-sim-sde32.exp, baseboards/mips-sim-sde64.exp, baseboards/mips-sim.exp, baseboards/mmixware-sim.exp, baseboards/mn10200-sim.exp, baseboards/mn10300-sim.exp, baseboards/moxie-sim.exp, baseboards/mt-sid.exp, baseboards/multi-sim.exp, baseboards/powerpc-sim.exp, baseboards/powerpcle-sim.exp, baseboards/rx-sim.exp, baseboards/sh-sid.exp, baseboards/sh-sim.exp, baseboards/sparc-sim.exp, baseboards/sparc64-sim.exp, baseboards/sparclite-sim-le.exp, baseboards/sparclite-sim.exp, baseboards/tx39-sim.exp, baseboards/unix.exp, baseboards/v850-sim.exp, baseboards/visium-sim.exp, baseboards/vr4100-sim.exp, baseboards/vr4111-sim.exp, baseboards/vr4300-sim.exp, baseboards/xtensa-sim.exp, lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp, lib/ftp.exp, lib/kermit.exp, lib/remote.exp, lib/rlogin.exp, lib/rsh.exp, lib/standard.exp, lib/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp, testsuite/config/default.exp, testsuite/lib/libsup.exp, testsuite/lib/util-defs.exp, testsuite/libdejagnu/tunit.exp, testsuite/libdejagnu/unit.cc, testsuite/runtest.all/libs.exp, testsuite/runtest.all/stats-sub.exp, testsuite/runtest.all/stats.exp, config/adb.exp, config/default.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sid.exp, config/sim.exp, config/unix.exp, config/vxworks.exp: Update copyright date for 2016. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-06-22 * baseboards/aarch64-sim.exp, baseboards/am33_2.0-libremote.exp,Bernhard Reutner-Fischer1-2/+1
baseboards/arm-ice.exp, baseboards/arm-sid.exp, baseboards/arm-sim.exp, baseboards/basic-sid.exp, baseboards/basic-sim.exp, baseboards/cris-sim.exp, baseboards/d30v-sim.exp, baseboards/fr30-sim.exp, baseboards/frv-sim.exp, baseboards/gdbserver-sample.exp, baseboards/generic-sim.exp, baseboards/i386-sid.exp, baseboards/iq2000-sim.exp, baseboards/jmr3904-sim.exp, baseboards/linux-gdbserver.exp, baseboards/linux-libremote.exp, baseboards/m68k-sid.exp, baseboards/mcore-moto-sim.exp, baseboards/mcore-sim.exp, baseboards/mips-lnews-sim.exp, baseboards/mips-lsi-sim.exp, baseboards/mips-sim-idt32.exp, baseboards/mips-sim-idt64.exp, baseboards/mips-sim.exp, baseboards/mmixware-sim.exp, baseboards/mn10200-sim.exp, baseboards/mn10300-sim.exp, baseboards/mt-sid.exp, baseboards/powerpc-sim.exp, baseboards/powerpcle-sim.exp, baseboards/rx-sim.exp, baseboards/sh-sid.exp, baseboards/sh-sim.exp, baseboards/sparc-sim.exp, baseboards/sparc64-sim.exp, baseboards/sparclite-sim-le.exp, baseboards/sparclite-sim.exp, baseboards/tx39-sim.exp, baseboards/unix.exp, baseboards/v850-sim.exp, baseboards/vr4100-sim.exp, baseboards/vr4111-sim.exp, baseboards/vr4300-sim.exp, baseboards/xtensa-sim.exp, lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/ftp.exp, lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rlogin.exp, lib/rsh.exp, lib/standard.exp, lib/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp, testsuite/config/default.exp, testsuite/lib/libsup.exp, testsuite/lib/util-defs.exp, testsuite/libdejagnu/tunit.exp, testsuite/libdejagnu/unit.cc, testsuite/runtest.all/libs.exp, testsuite/runtest.all/options.exp, testsuite/runtest.all/stats-sub.exp, testsuite/runtest.all/stats.exp, config/default.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sid.exp, config/sim.exp, config/unix.exp, config/vxworks.exp, configure.ac, dejagnu.h, runtest, runtest.exp: Use condensed years in copyright statement. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-04-17 * configure.ac (AC_INIT): Update version number.Ben Elliston1-1/+1
* configure: Regenerate. * runtest.exp (frame_version): Update version number. * doc/dejagnu.texi: Likewise.
2016-04-13 * runtest.exp: Improve --version (-v) output.Ben Elliston1-4/+4
* testsuite/runtest.all/options.exp: Update test case.
2016-04-05 * runtest.exp: Remove defunct and undocumented --tool_root option.Ben Elliston1-10/+0
2016-04-03 * runtest.exp: Document the magical handling of -D[01].Ben Elliston1-1/+2
2016-03-30 * baseboards/mcore-moto-sim.exp, lib/dejagnu.exp, lib/dg.exp,Ben Elliston1-3/+3
lib/dmucs.exp, lib/framework.exp, lib/remote.exp, lib/target.exp, runtest.exp: Fix spelling errors in comments.
2016-03-29 * runtest.exp: Only print "searching for <test name>" message atRob Savoye1-1/+1
verbose level >= 2 -- too much noise. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-29More fixes identified by the Frink static analyser:Ben Elliston1-1/+1
(1) use -- in switch commands for safety, (2) add braces around exprs, (3) replace abbreviated "info proc" with "info procs", (4) use -- in regexp commands for safety where the expression is a variable that could begin with '-'.
2016-03-28 * runtest.exp: Use 'array exists' for testing array existenceBen Elliston1-2/+2
rather than 'info exists'.