aboutsummaryrefslogtreecommitdiff
path: root/config
AgeCommit message (Collapse)AuthorFilesLines
2023-12-13Harmonise test execution reporting across protocolsMaciej W. Rozycki4-1/+8
Report both the full command and the timeout value consistently across various communication protocols, and always always output the report to the log file, so that procedures do not have to be locally overridden to extract this data where needed to reproduce an issue by hand. * baseboards/qemu.exp (qemu_load): Add execution reporting. * config/gdb-comm.exp (gdb_comm_load): Likewise. * config/gdb_stub.exp (gdb_stub_load): Likewise. * config/sim.exp (sim_load): Likewise. * config/unix.exp (unix_load): Report full command in addition to timeout value.
2023-12-12Use `test_timeout' consistently across protocolsMaciej W. Rozycki4-5/+15
The `test_timeout' global parameter was added with commit 73db65f53795, however for the `unix' protocol only and then only in the local case. Update the remote case of the `unix' protocol, other protocols that use various timeout sources, and the `qemu' board to take any `test_timeout' setting into account as appropriate. Amend the manual accordingly. * baseboards/qemu.exp (qemu_load): Respect global `test_timeout' setting. * config/gdb-comm.exp (gdb_comm_load): Likewise. * config/gdb_stub.exp (gdb_stub_load): Likewise. * config/sim.exp (sim_load): Likewise. * config/unix.exp (unix_load): Likewise, in the remote case. * doc/dejagnu.texi (Local configuration file): Update accordingly.
2023-12-12Set `testcase_timeout' earlier on in `gdb_comm_load'Maciej W. Rozycki1-6/+7
Move the setting of `testcase_timeout' earlier on in `gdb_comm_load'. It will be needed for reporting later on. No semantics change. * config/gdb-comm.exp (gdb_comm_load): Set `testcase_timeout' earlier on.
2023-12-12Do not set `test_timeout' in `unix_load'Maciej W. Rozycki1-4/+5
The `test_timeout' global parameter is expected to be optionally set by a board description file and then taken into account by `unix_load' to override the default of 300. However not only the procedure checks for the override but it sets the global parameter to the default as well if not present. This might make a minuscule TCL interpreter execution time reduction, but seems rather awkward from the programming style's point of view, and may cause undesired effects if the parameter is referred elsewhere. Remove the setting of the global parameter then, while retaining its semantics. * config/unix.exp (unix_load): Don't ever set `test_timeout', just use it locally.
2020-06-15Support using QEMU in local/remote testing using default "unix" boardMaxim Kuvyrkov1-0/+13
If the board file defines "exec_shell", prepend it before the local or remote command.
2018-12-12 * config/gdb-comm.exp, config/gdb_stub.exp, config/vxworks.exp,Ben Elliston3-19/+19
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-09 * baseboards/basic-sid.exp, baseboards/basic-sim.exp,Ben Elliston6-12/+12
baseboards/i386-sid.exp, baseboards/mt-sid.exp, baseboards/sh-sid.exp, config/adb.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sim.exp, config/unix.exp, config/vxworks.exp, lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rsh.exp, lib/target.exp, lib/tip.exp, lib/utils.exp, testsuite/lib/libsup.exp, testsuite/runtest.all/options.exp,: Remove unnecessary braces around variable expansions.
2018-12-09 * config/gdb-comm.exp: Remove unnecessary quotes.Ben Elliston5-29/+29
* config/gdb_stub.exp: Likewise. * config/vxworks.exp: Likewise. * config/unix.exp: Likewise. * config/sim.exp: Likewise.
2018-12-08 * config/vxworks.exp (${board}_init): Use 'ne' instead of !=.Ben Elliston1-1/+1
2018-12-08 * runtest.exp, lib/utils.exp, lib/targetdb.exp, lib/target.exp,Ben Elliston4-6/+6
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 Elliston6-24/+24
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 * runtest.exp: Replace [string match] commands involving literalBen Elliston1-1/+1
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-1/+1
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-11-30 * runtest.exp: Use isremote.Ben Elliston4-8/+8
* 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-25 * config/gdb-comm.exp: Clean up whitespace.Ben Elliston5-65/+65
* config/gdb_stub.exp: Likewise. * config/sid.exp: Likewise. * config/sim.exp: Likewise. * config/unix.exp: Likewise.
2016-06-22 * configure.ac, dejagnu.h, runtest, runtest.exp,Bernhard Reutner-Fischer8-8/+8
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-Fischer7-14/+7
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-06-21 * config/adb.exp (adb_exec) Improve verbose message.Bernhard Reutner-Fischer1-1/+1
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-04-13 * lib/rsh.exp (rsh_exec): Improve verbose message.Ben Elliston1-1/+1
* lib/ssh.exp (ssh_exec): Likewise. * config/adb.exp: Likewise.
2016-04-06 * lib/remote.exp (remnote_download): Create a remote directory ifYvan Roux1-1/+2
needed and use it. (remote_exec): Execute program inside remotedir when it exists. (standard_load): Set remotedir board field if not present. * config/unix.exp (unix_load): Handle remotedir in board field. (remotedir): Set board info field. * doc/dejagnu.texi (Board File Values): Document remotedir. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-29More fixes identified by the Frink static analyser:Ben Elliston2-6/+6
(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-23 * Makefile.am (config_DATA): Update.Ben Elliston33-2316/+0
(baseboard_DATA): Likewise. * Makefile.in: Regenerate. * NEWS: Update. Remove the following old config files: * arc.exp, arm-ice.exp, base-config.exp, base68k.exp, bug.exp, cfdbug.exp, cygmon.exp, d10v.exp, ddb-ether.exp, ddb.exp, dos.exp, dve.exp, h8300.exp, i386-bozo.exp, i960.exp, m32r-stub.exp, m32r.exp, m68hc11.exp, m68k-emc.exp, mips-idt.exp, mn10200-eval.exp, mn10300-eval.exp, netware.exp, powerpc-bug.exp, proelf.exp, rom68k.exp, sh.exp, slite.exp, sparclet.exp, tic80.exp, vr4100.exp, vr4300.exp, vr5000.exp: Remove. Remove the following old baseboard files: * arc-sim.exp, arm-ice.exp, arm-sim.exp, cf.exp, cygmon.exp, d10v-sim.exp, d10v.exp, danlite-elf.exp, dos.exp, fr30-cygmon.exp, fr30-elf.exp, frv-elf.exp, frv-tiger.exp, frv-tomcat.exp, h8300-sim.exp, h8300.exp, i386-bozo.exp, i960-cyclone.exp, i960-sim.exp, m32r-elf.exp, m32r-linux-sim.exp, m32r-sid.exp, m32r-sim.exp, m68hc11-sim.exp, m68k-emc.exp, mips-idt.exp, mips64-sim.exp, mips64vr4100-sim.exp, mn10200-cygmon.exp, mn10300-cygmon.exp, msparc-cygmon.exp, op50n.exp, powerpc-bug.exp, powerpc-bug1.exp, rom68k-idp.exp, sh-hms.exp, sparclet-aout.exp, sparclite-coff.exp, sparclite-cygmon.exp, strongarm-cygmon.exp, tic80-sim.exp, tx39-dve.exp, usparc-cygmon.exp, vr4100-ddb.exp, vr4300-ddb.exp, vr4300.exp, vr5000-ddb.exp, x86-cygmon.exp, xscale-cygmon.exp: Remove.
2016-03-22 * config/aarch64-fv8.exp: Add support for testing armv8 using theRob Savoye1-0/+55
ARM Foundation Model. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-21 * baseboards/mcore-moto-sim.exp: Remove old FIXME comment.Ben Elliston1-3/+0
* baseboards/mmixware-sim.exp: Likewise. * config/sim.exp: Likewise. * runtest.exp: Likewise.
2016-03-20 * baseboards/i960-sim.exp: Remove stale ??? comment.Ben Elliston1-3/+0
* config/vxworks.exp: Likewise.
2015-11-20 * config/unix.exp: Add ability to set test timeout from site.exp.Brooks Moses1-1/+7
* doc/user.xml: Document new test_timeout variable in site.exp. * doc/dejagnu.texi: Regenerate. Signed-off-by: Ben Elliston <bje@gnu.org>
2014-02-24 * config/sim.exp (sim_exec): New.Steve Ellcey1-0/+10
(sim_file): New. Signed-off-by: Ben Elliston <bje@gnu.org>
2014-02-15Revert "config/sim.exp (sim_exec): New."Ben Elliston1-4/+0
Signed-off-by: Ben Elliston <bje@gnu.org>
2014-02-15 * config/sim.exp (sim_exec): New.Steve Ellcey1-0/+4
Signed-off-by: Ben Elliston <bje@gnu.org>
2013-11-19Improve ADB support for AndroidAlexander Ivchenko1-2/+4
2013-02-16config/adb.exp: Add adb_file so we can remotely delete test case to save on ↵Rob Savoye1-9/+14
limited disk space. Don't remove the file after executing it, leave that for the test driver instead.
2013-02-15remove test case after execution to save on disk space.Rob Savoye1-0/+13
2013-02-11tweak serial config for Android.Rob Savoye1-7/+15
2013-02-11new support for remote testing on Android.Rob Savoye1-0/+161
2011-04-12 * config/vxworks.exp (vxworks_file): Use "file delete", not "execBen Elliston2-3/+2
rm", for better portability. * config/netware.exp (${board}_load): Likewise. * lib/dg.exp (dg-test): Likewise. * lib/framework.exp (open_logs): Likewise. * lib/remote.exp (standard_file): Likewise. * runtest.exp: Likewise. * testsuite/runtest.all/options.exp: Likewise.
2011-03-03Upgrade to GPL version 3.Ben Elliston40-40/+40
2010-01-21 * config/gdb-comm.exp (gdb_comm_load): Set breakpoints after load.Ben Elliston1-10/+10
2010-01-01update copyright date for 2010.Rob Savoye40-80/+80
2009-06-102009-06-10 Maciej W. Rozycki <macro@codesourcery.com>Ben Elliston1-0/+4
* config/gdb-comm.exp (gdb_comm_add_breakpoint): Handle pending breakpoints.
2006-06-02 * config/sim.exp (sim_upload): Match up argument names.Ben Elliston1-2/+2
2006-06-02 * config/dos.exp (dos_open): Only run global board_info once atBen Elliston1-7/+6
the beginning of the proc; remove duplicates. (dos_load): Use file join to separate path components. (dos_copy_upload): Likewise. * lib/remote.exp (call_remote): Use error, not "blooie" to trigger an error.
2006-05-23 * config/gdb-comm.exp (gdb_comm_load): Brace some expressions.Ben Elliston3-4/+9
* config/i960.exp (i960_spawn): Initialise status. * config/netware.exp (${board}_init): Brace some if expressions. * lib/dg.exp (dg-test): Brace some expressions. * lib/framework.exp (clone_output, log_and_exit, log_summary, record_test, pass, fail): Likewise. * lib/libgloss.exp (get_multilibs): Likewise. * lib/remote.exp (standard_transmit, unix_clean_filename, remote_load, check_for_board_status, remote_expect): Likewise. * lib/rsh.exp (rsh_exec): Likewise.
2006-05-22 * baseboards/cris-sim.exp: Use switch, not case.Ben Elliston1-1/+1
* baseboards/h8300.exp: Likewise. * config/base68k.exp (base68k_ld): Brace an if expression.
2006-05-22 * runtest.exp, baseboards/basic-sim.exp, baseboards/cf.exp,Ben Elliston16-124/+124
baseboards/cris-sim.exp, baseboards/i960-cyclone.exp, baseboards/mcore-moto-sim.exp, baseboards/mips64vr4100-sim.exp, baseboards/mmixware-sim.exp, baseboards/op50n.exp, baseboards/rom68k-idp.exp, baseboards/sparclite-sim-le.exp, baseboards/usparc-cygmon.exp, config/base-config.exp, config/base68k.exp, config/ddb-ether.exp, config/ddb.exp, config/dos.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/i386-bozo.exp, config/i960.exp, config/m68k-emc.exp, config/netware.exp, config/sid.exp, config/sim.exp, config/tic80.exp, config/unix.exp, config/vxworks.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/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp: Put braces around if expressions throughout.
2006-01-01 * config/default.exp, config/unix.exp, config/vxworks.exp,Ben Elliston3-4/+4
lib/debugger.exp, lib/dejagnu.exp, lib/framework.exp, lib/libgloss.exp, lib/remote.exp, testsuite/lib/util-defs.exp: Formatting fixes. * dejagnu.h, testsuite/config/default.exp, testsuite/lib/libsup.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: Update copyright notice and FSF office address. Remove bug reporting address, as it is now maintained centrally in the README file.
2005-06-24 * Update the FSF's physical address throughout.Ben Elliston40-40/+40
2004-08-14 * config/sim.exp (sim_download, sim_upload): New procs.Ben Elliston1-0/+8
2004-02-07 * Makefile.am (pkgdata_SCRIPTS): Remove lib/mondfe, lib/xsh.exp.Ben Elliston2-204/+0
(config_SCRIPTS): Remove udi.exp, vrtx.exp. (baseboard_SCRIPTS): Remove a29k-udi.exp. * Makefile.in: Regenerate. * baseboards/a29k-udi.exp: Remove. * baseboards/dos.exp: Update comments. * config/udi.exp: Remove. * config/vrtx.exp: Remove. * doc/overview.sgml: Update. Don't mention mondfe and xsh support. * doc/ref.sgml: Likewise. * doc/user.sgml: Likewise. * lib/mondfe.exp: Remove. * lib/xsh.exp: Likewise. * lib/remote.exp: Don't load mondfe.exp or xsh.exp. * packaging/pkg/prototype: Update. * NEWS: Update.
2004-01-30* Merge dejagnu_1_4_branch up to dejagnu-1_4_4 tag.Ben Elliston1-1/+0
2003-08-232003-08-23 Corinna Vinschen <vinschen@redhat.com>Ben Elliston1-0/+3
* config/sid.exp: Add gdb settings to use no hardware watchpoints.