aboutsummaryrefslogtreecommitdiff
path: root/runtest.exp
AgeCommit message (Collapse)AuthorFilesLines
2023-11-07Fix tests that attempt to determine if target_alias has been setJacob Bachmeyer1-2/+8
The problem with using [info exists target_alias] is that target_alias is unconditionally initialized to the empty string and therefore always exists.
2023-04-20Fix handling of lists given as command-line parametersJacob Bachmeyer1-2/+2
2022-01-21Reset error and warning counters before running each test fileJacob Bachmeyer1-2/+4
2021-07-09Adjust conditional for broken legacy caseJacob Bachmeyer1-1/+1
DejaGnu has always required testsuites to be rooted in a directory named exactly "testsuite" but older versions happened to work even if this requirement was violated. Special handling for this broken case was included, but the conditional to invoke this handling was too narrow and missed several cases in the GNU Automake testsuite.
2021-06-16Merge fixes from 1.6.3 release branchJacob Bachmeyer1-6/+45
Conflicts: ChangeLog configure configure.ac doc/version.texi runtest.exp
2021-05-22Update version numbers for 1.6.3 release candidate 5Jacob Bachmeyer1-1/+1
2021-05-04Tighten regexp pattern used for validating output of config.guessJacob Bachmeyer1-1/+1
2021-04-28Update version numbers for 1.6.3 release candidate 4Jacob Bachmeyer1-1/+1
2021-04-16Allow environment to specify a shell for running config.guessJacob Bachmeyer1-6/+45
2021-04-08Update version numbers for 1.6.3 release candidate 3Jacob Bachmeyer1-1/+1
2021-03-30Update version numbers for 1.6.3 release candidate 2Jacob Bachmeyer1-1/+1
2021-03-22Update version numbers for 1.6.3 release branchJacob Bachmeyer1-1/+1
2021-03-22Update version numbers for continued developmentJacob Bachmeyer1-1/+1
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.