Ben Elliston
12028b93c5
* lib/framework.exp (isremote): New.
* doc/dejagnu.texi (isremote procedure): Document it.
* NEWS: Mention isremote.
7 years ago
Ben Elliston
14f40e5a6b
* lib/framework.exp (istarget, ishost, istarget): Set the argument
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.
7 years ago
Jacob Bachmeyer
0745c8becc
* lib/framework.exp: Clean up whitespace.
Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago
Ben Elliston
389f380926
* doc/dejagnu.texi (getdirs procedure): Improve documentation
including documenting the -all option.
(find procedure): Fix a typo.
* lib/utils.exp (getdirs): Improve comments.
8 years ago
Jacob Bachmeyer
4c3512a558
* lib/ssh.exp: Clean up whitespace.
* lib/remote.exp: Clean up whitespace.
(remote_expect): Change literal tab to "\t" in regexp.
Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago
Jacob Bachmeyer
a971c21286
* lib/framework.exp (record_test): Really fix message formatting.
Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago
Jacob Bachmeyer
118f2e24f8
* lib/framework.exp (record_test): Fix message formatting.
Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago
Richard Biener
b4e61f85ae
* lib/remote.exp (close_wait_program): Use separate kill command
for each pid.
Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago
Ben Elliston
ba3c2f39d5
* lib/framework.exp (open_logs): Set XML version to 1.1.
(xml_tag): Skip valid whitespace chars (0x9, 0xA, 0xD). Include
missing 'x' in escape sequence.
9 years ago
Ben Elliston
a5d5bd4f3a
Revert these changes:
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.
9 years ago
Ben Elliston
e301ae8ebd
Fix another bug reported by Andrey ``Bass'' Shcheglov.
* lib/framework.exp (xml_tag): Escape all of the non-printable control
characters (ASCII codes 1 to 31 inclusive).
9 years ago
Ben Elliston
96eda3cf61
Fix another bug reported by Andrey ``Bass'' Shcheglov.
* lib/framework.exp (xml_tag): New proc.
(log_summary): Use it.
(record_test): Likewise.
9 years ago
Ben Elliston
3073ac1d0b
Fix bug reported by Andrey ``Bass'' Shcheglov.
* 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.
9 years ago
Ben Elliston
50ea9cf48d
* lib/framework.exp: Fix spelling mistake in a comment.
9 years ago
Ben Elliston
616b897343
* lib/target.exp (push_target): Remove unnecessary global command.
* testsuite/runtest.all/target.test: Overhaul tests.
9 years ago
Thomas Preud'homme
f3817d617e
* lib/remote.exp (remote_download): Add logging message when
source and destination file differ in name.
Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago
Bernhard Reutner-Fischer
4ca812c8f4
* configure.ac, dejagnu.h, runtest, runtest.exp,
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>
10 years ago
Bernhard Reutner-Fischer
eea1fb7501
* baseboards/aarch64-sim.exp, baseboards/am33_2.0-libremote.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/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>
10 years ago
Jim Wilson
6feec7cd05
* baseboards/aarch64-sim.exp: New file.
* 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>
10 years ago
Ben Elliston
c7185dfb66
* lib/utils.exp (unsetenv): Remove proc.
* doc/dejagnu.texi: Update documentation.
* NEWS: Update.
10 years ago
Ben Elliston
d7837b1ffb
* lib/remote.exp: Load ssh.exp lib.
10 years ago
Ben Elliston
880852b40a
* lib/rsh.exp (rsh_open): Fix description comment.
10 years ago
Ben Elliston
8cda35c115
* lib/ssh.exp (ssh_exec): Handle regexp return status.
10 years ago
Ben Elliston
da57e729a1
* lib/rsh.exp (rsh_exec): Improve verbose message.
* lib/ssh.exp (ssh_exec): Likewise.
10 years ago
Ben Elliston
3a14bb89c2
* lib/rsh.exp (rsh_exec): Improve verbose message.
* lib/ssh.exp (ssh_exec): Likewise.
* config/adb.exp: Likewise.
10 years ago
Christophe Lyon
0fbf12645b
* lib/rsh.exp (rsh_exec): Handle regexp return status.
Signed-off-by: Ben Elliston <bje@gnu.org>
10 years ago
Ben Elliston
a5fe563337
* lib/remote.exp (remote_exec): Join cd $remotedir and $program on
the command line with ';' and not &&.
10 years ago
Yvan Roux
284773caf2
* lib/remote.exp (remnote_download): Create a remote directory if
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>
10 years ago
Ben Elliston
20217bbefe
* lib/targetdb.exp (set_board_info): Improve comment.
(add_board_info): Likewise.
10 years ago
Rob Savoye
933a74f397
* lib/ssh.exp: New.
* NEWS: Update.
Signed-off-by: Ben Elliston <bje@gnu.org>
10 years ago
Ben Elliston
6e9e1d44d6
* baseboards/mcore-moto-sim.exp, lib/dejagnu.exp, lib/dg.exp,
lib/dmucs.exp, lib/framework.exp, lib/remote.exp, lib/target.exp,
runtest.exp: Fix spelling errors in comments.
10 years ago
Ben Elliston
e7205c4b6e
* lib/remote.exp (remote_expect): Use perror not send_user.
10 years ago
Ben Elliston
5ee75eaae7
* lib/remote.exp (remote_expect): Fix spelling error.
10 years ago
Ben Elliston
85e2832654
More fixes identified by the Frink static analyser:
(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 '-'.
10 years ago
Dominik Vogt
569f8718b5
* dg.exp (dg-do): Do not change the previously selected action if
a de-selected dg-do is encountered.
Signed-off-by: Ben Elliston <bje@gnu.org>
10 years ago
Ben Elliston
3e509af89e
This proc is never used. --xml sets $xml, and that's it.
* lib/framework.exp (check_xml): Remove unused proc.
10 years ago
Rob Savoye
b733213d02
* lib/dmucs.exp: New.
Signed-off-by: Ben Elliston <bje@gnu.org>
10 years ago
Rob Savoye
d8cd1783d8
* lib/libgloss.exp (find_g++): Look for xgcc++ to use the freshly
built compiler, then look in the path.
Signed-off-by: Ben Elliston <bje@gnu.org>
10 years ago
Ben Elliston
329a811efc
* lib/utils.exp (which): Don't exclude symbolic links--Debian's
/bin/which doesn't. Modern systems rely too heavily on symbolic
links (eg. alternatives).
10 years ago
Ben Elliston
aa17137860
* lib/rlogin.exp (rlogin_open): Return -1 if unable to spawn
rlogin. Identified by Frink.
10 years ago
Ben Elliston
883ffd3e6d
* runtest.exp: Fixes identified by the Frink static analyser:
(1) use -- in switch commands for safety,
(2) remove unreachable return commands after error commands,
(3) replace abbreviated "info proc" with "info procs",
(4) use -- in unset commands for safety where the variable name
is itself a variable.
* lib/dg.exp: Likewise.
* lib/debugger.exp: Likewise.
* lib/framework.exp: Likewise.
* lib/remote.exp: Likewise.
* lib/target.exp: Likewise.
* lib/targetdb.exp: Likewise.
* lib/telnet.exp: Likewise.
* lib/utils.exp: Likewise.
10 years ago
Ben Elliston
b853fcac56
* lib/framework.exp (exp_continue): Remove old compatibility
wrapper. Expect deprecated 'continue -expect' in August 1997.
10 years ago
Ben Elliston
513ba97be0
* lib/utils.exp (which): Reimplement to more closely mimic the
behaviour of the UNIX which utility.
* testsuite/runtest.all/utils.test: Test proc which.
10 years ago
Ben Elliston
8d2062e95e
* lib/remote.exp (standard_wait): Append any trailing characters
to $output that may be still in $expect_out(buffer) when eof is
matched. Remove arbitrary limitation in the ".+" matching case,
similar to the change to local_exec on 2016-02-17.
10 years ago
Ben Elliston
77221613b5
* lib/target.exp (only--Ls): Change '???' comment to a note. This
isn't a serious shortcoming, but the comment should be retained.
10 years ago
Ben Elliston
44540535ee
* runtest.exp: Whitespace, comment and typo fixes.
* lib/dejagnu.exp: Likewise.
* lib/remote.exp: Likewise.
* lib/utils.exp: Likewise.
10 years ago
Ben Elliston
4db4a9d481
* lib/dg.exp (dg-get-options): Clean up regular expression and
remove FIXME comment about it.
10 years ago
Ben Elliston
77c5f5d7b2
* lib/dg.exp (dg-runtest): Improve arg naming to remove a FIXME.
10 years ago
Ben Elliston
e7aa8a8f38
* lib/dg.exp: Remove commented-out calls to send_user.
10 years ago
Ben Elliston
1992ceaf6d
* lib/dg.exp (dg-test): There is no need to call unresolved to
clear errcnt. Instead, pass 0 as argument 2 to perror.
* runtest.exp (runtest): Likewise.
10 years ago