aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2018-12-08 * NEWS: Document 'testsuite' command.Jacob Bachmeyer1-0/+64
* 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 * lib/tip.exp (tip_open): Put braces around if expression.Ben Elliston1-1/+1
2018-12-08 * runtest.exp, lib/utils.exp, lib/targetdb.exp, lib/target.exp,Ben Elliston6-55/+55
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 Elliston10-116/+116
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 Bachmeyer2-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 Elliston5-17/+14
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 Elliston6-18/+18
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 * lib/telnet.exp (telnet_open): Remove connectmode global.Ben Elliston1-1/+0
* doc/dejagnu.texi (Procedures For Remote Communication): Remove mention of connectmode.
2018-12-05 * lib/utils.exp (grep): Handle -n.Ben Elliston1-13/+16
* doc/dejagnu.texi (grep procedure): Document it. * testsuite/runtest.all/utils.test: Add a test case. * NEWS: Add an item.
2018-12-04 * lib/debugger.exp (dumprocs): Fix proc comment.Ben Elliston1-1/+1
2018-12-04 * lib/utils.exp (relative_filename): New proc.Jacob Bachmeyer1-0/+38
* 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-03 * lib/framework.exp (isremote): Add verbose message.Ben Elliston1-0/+1
2018-12-02 * lib/framework.exp (isremote): Pass $board to is_remote.Ben Elliston1-1/+1
2018-11-30 * lib/utils.exp (grep): Remove reference to "NULL" in comment.Ben Elliston1-1/+1
* testsuite/lib/util-defs.exp (util_start): Likewise.
2018-11-30 * runtest.exp: Use isremote.Ben Elliston3-39/+39
* 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-30 * lib/framework.exp (isremote): New.Ben Elliston1-0/+6
* doc/dejagnu.texi (isremote procedure): Document it. * NEWS: Mention isremote.
2018-11-30 * lib/framework.exp (istarget, ishost, istarget): Set the argumentBen Elliston1-3/+3
default value to the empty string. * doc/dejagnu.texi (find procedure): Remove reference to "NULL". (getenv procedure): Re-word this node. (isbuild procedure): Update. (ishost procedure): Likewise. (istarget procedure): Likewise. * testsuite/runtest.all/config.test: Add test cases.
2018-11-25 * lib/framework.exp: Clean up whitespace.Jacob Bachmeyer1-4/+4
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-11-23 * doc/dejagnu.texi (getdirs procedure): Improve documentationBen Elliston1-5/+3
including documenting the -all option. (find procedure): Fix a typo. * lib/utils.exp (getdirs): Improve comments.
2018-11-11 * lib/ssh.exp: Clean up whitespace.Jacob Bachmeyer2-20/+20
* lib/remote.exp: Clean up whitespace. (remote_expect): Change literal tab to "\t" in regexp. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-10-29 * lib/framework.exp (record_test): Really fix message formatting.Jacob Bachmeyer1-1/+1
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-10-28 * lib/framework.exp (record_test): Fix message formatting.Jacob Bachmeyer1-1/+1
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-07-06 * lib/remote.exp (close_wait_program): Use separate kill commandRichard Biener1-8/+17
for each pid. Signed-off-by: Ben Elliston <bje@gnu.org>
2017-09-13 * lib/framework.exp (open_logs): Set XML version to 1.1.Ben Elliston1-2/+6
(xml_tag): Skip valid whitespace chars (0x9, 0xA, 0xD). Include missing 'x' in escape sequence.
2017-08-29 Revert these changes:Ben Elliston1-0/+8
2016-04-25 Ben Elliston <bje@gnu.org> * testsuite/runtest.all/utils.test: Remove unsetenv test. 2016-04-24 Ben Elliston <bje@gnu.org> * lib/utils.exp (unsetenv): Remove proc. * doc/dejagnu.texi: Update documentation. * NEWS: Update.
2017-08-19Fix another bug reported by Andrey ``Bass'' Shcheglov.Ben Elliston1-0/+6
* lib/framework.exp (xml_tag): Escape all of the non-printable control characters (ASCII codes 1 to 31 inclusive).
2017-08-15Fix another bug reported by Andrey ``Bass'' Shcheglov.Ben Elliston1-9/+15
* lib/framework.exp (xml_tag): New proc. (log_summary): Use it. (record_test): Likewise.
2017-08-15Fix bug reported by Andrey ``Bass'' Shcheglov.Ben Elliston1-5/+1
* 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-07-30* lib/framework.exp: Fix spelling mistake in a comment.Ben Elliston1-1/+1
2017-06-04 * lib/target.exp (push_target): Remove unnecessary global command.Ben Elliston1-3/+1
* testsuite/runtest.all/target.test: Overhaul tests.
2017-03-11 * lib/remote.exp (remote_download): Add logging message whenThomas Preud'homme1-0/+1
source and destination file differ in name. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-06-22 * configure.ac, dejagnu.h, runtest, runtest.exp,Bernhard Reutner-Fischer14-14/+14
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-Fischer16-34/+16
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-04 * baseboards/aarch64-sim.exp: New file.Jim Wilson1-0/+3
* Makefile.am (baseboard_DATA): Add aarch64-sim.exp. * Makefile.in: Regenerate. * lib/libgloss.exp (libgloss_link_flags): Map aarch64* to aarch64. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-04-24 * lib/utils.exp (unsetenv): Remove proc.Ben Elliston1-8/+0
* doc/dejagnu.texi: Update documentation. * NEWS: Update.
2016-04-17 * lib/remote.exp: Load ssh.exp lib.Ben Elliston1-0/+1
2016-04-17 * lib/rsh.exp (rsh_open): Fix description comment.Ben Elliston1-1/+1
2016-04-15 * lib/ssh.exp (ssh_exec): Handle regexp return status.Ben Elliston1-1/+3
2016-04-13 * lib/rsh.exp (rsh_exec): Improve verbose message.Ben Elliston2-2/+2
* lib/ssh.exp (ssh_exec): Likewise.
2016-04-13 * lib/rsh.exp (rsh_exec): Improve verbose message.Ben Elliston2-2/+2
* lib/ssh.exp (ssh_exec): Likewise. * config/adb.exp: Likewise.
2016-04-13 * lib/rsh.exp (rsh_exec): Handle regexp return status.Christophe Lyon1-1/+3
Signed-off-by: Ben Elliston <bje@gnu.org>
2016-04-07 * lib/remote.exp (remote_exec): Join cd $remotedir and $program onBen Elliston1-1/+5
the command line with ';' and not &&.
2016-04-06 * lib/remote.exp (remnote_download): Create a remote directory ifYvan Roux1-1/+19
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-04-04 * lib/targetdb.exp (set_board_info): Improve comment.Ben Elliston1-4/+2
(add_board_info): Likewise.
2016-03-31 * lib/ssh.exp: New.Rob Savoye1-0/+242
* NEWS: Update. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-30 * baseboards/mcore-moto-sim.exp, lib/dejagnu.exp, lib/dg.exp,Ben Elliston6-10/+10
lib/dmucs.exp, lib/framework.exp, lib/remote.exp, lib/target.exp, runtest.exp: Fix spelling errors in comments.
2016-03-30 * lib/remote.exp (remote_expect): Use perror not send_user.Ben Elliston1-1/+1
2016-03-29 * lib/remote.exp (remote_expect): Fix spelling error.Ben Elliston1-2/+4
2016-03-29More fixes identified by the Frink static analyser:Ben Elliston1-2/+2
(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 * dg.exp (dg-do): Do not change the previously selected action ifDominik Vogt1-1/+4
a de-selected dg-do is encountered. Signed-off-by: Ben Elliston <bje@gnu.org>