platform/upstream/dejagnu.git
8 years ago * dg.exp (dg-do): Do not change the previously selected action if
Dominik Vogt [Mon, 28 Mar 2016 06:31:07 +0000 (17:31 +1100)]
* 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>
8 years agoThis proc is never used. --xml sets $xml, and that's it.
Ben Elliston [Mon, 28 Mar 2016 06:01:13 +0000 (17:01 +1100)]
This proc is never used. --xml sets $xml, and that's it.

* lib/framework.exp (check_xml): Remove unused proc.

8 years ago * lib/dmucs.exp: New.
Rob Savoye [Mon, 28 Mar 2016 03:15:01 +0000 (14:15 +1100)]
* lib/dmucs.exp: New.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * lib/libgloss.exp (find_g++): Look for xgcc++ to use the freshly
Rob Savoye [Mon, 28 Mar 2016 03:03:39 +0000 (14:03 +1100)]
* 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>
8 years ago * lib/utils.exp (which): Don't exclude symbolic links--Debian's
Ben Elliston [Mon, 28 Mar 2016 02:37:59 +0000 (13:37 +1100)]
* 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).

8 years ago * baseboards/multi-sim.exp: Indent properly.
Ben Elliston [Mon, 28 Mar 2016 01:11:57 +0000 (12:11 +1100)]
* baseboards/multi-sim.exp: Indent properly.

8 years ago * lib/rlogin.exp (rlogin_open): Return -1 if unable to spawn
Ben Elliston [Mon, 28 Mar 2016 00:57:36 +0000 (11:57 +1100)]
* lib/rlogin.exp (rlogin_open): Return -1 if unable to spawn
rlogin. Identified by Frink.

8 years ago * runtest.exp: Use 'array exists' for testing array existence
Ben Elliston [Mon, 28 Mar 2016 00:53:58 +0000 (11:53 +1100)]
* runtest.exp: Use 'array exists' for testing array existence
rather than 'info exists'.

8 years ago * runtest.exp: Fixes identified by the Frink static analyser:
Ben Elliston [Mon, 28 Mar 2016 00:51:41 +0000 (11:51 +1100)]
* 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.

8 years ago * Makefile.am: Remove references to Docbook and friends.
Ben Elliston [Sun, 27 Mar 2016 19:51:33 +0000 (06:51 +1100)]
* Makefile.am: Remove references to Docbook and friends.
* configure.ac: Likewise.
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/dejagnu.xml: Remove.
* doc/legal.xml: Likewise.
* doc/ref.xml: Likewise.
* doc/user.xml: Likewise.

8 years ago * lib/framework.exp (exp_continue): Remove old compatibility
Ben Elliston [Sun, 27 Mar 2016 19:39:34 +0000 (06:39 +1100)]
* lib/framework.exp (exp_continue): Remove old compatibility
wrapper. Expect deprecated 'continue -expect' in August 1997.

8 years ago * NEWS: Update.
Ben Elliston [Sun, 27 Mar 2016 19:07:51 +0000 (06:07 +1100)]
* NEWS: Update.

8 years ago * lib/utils.exp (which): Reimplement to more closely mimic the
Ben Elliston [Mon, 21 Mar 2016 23:44:20 +0000 (10:44 +1100)]
* lib/utils.exp (which): Reimplement to more closely mimic the
behaviour of the UNIX which utility.
* testsuite/runtest.all/utils.test: Test proc which.

8 years ago * lib/remote.exp (standard_wait): Append any trailing characters
Ben Elliston [Sat, 26 Mar 2016 14:31:10 +0000 (01:31 +1100)]
* 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.

8 years ago * Makefile.am (baseboard_DATA): Remove cygwin.exp, mcore-elf.exp,
Ben Elliston [Tue, 22 Mar 2016 22:54:20 +0000 (09:54 +1100)]
* Makefile.am (baseboard_DATA): Remove cygwin.exp, mcore-elf.exp,
mcore-pe.exp, vx4300.exp, vx68k.exp, vx960.exp, vxsparc.exp.
* Makefile.in: Regenerate.
* baseboards/cygwin.exp, baseboards/mcore-elf.exp,
baseboards/mcore-pe.exp, baseboards/vx4300.exp,
baseboards/vx68k.exp, baseboards/vx960.exp,
baseboards/vxsparc.exp: Remove.

8 years ago * baseboards/README: Remove mention of devo.
Ben Elliston [Tue, 22 Mar 2016 22:46:54 +0000 (09:46 +1100)]
* baseboards/README: Remove mention of devo.
* baseboards/iq2000-sim.exp: Likewise.
* baseboards/moxie-sim.exp: Likewise.

8 years ago * Makefile.am (baseboard_DATA): Add arm-ice.exp, arm-sim.exp.
Ben Elliston [Tue, 22 Mar 2016 21:16:15 +0000 (08:16 +1100)]
* Makefile.am (baseboard_DATA): Add arm-ice.exp, arm-sim.exp.
* Makefile.in: Regenerate.
* baseboards/arm-ice.exp: Reinstate.
* baseboards/arm-sim.exp: Likewise.

8 years ago * Makefile.am (config_DATA): Update.
Ben Elliston [Tue, 22 Mar 2016 20:31:43 +0000 (07:31 +1100)]
* Makefile.am (config_DATA): Update.
(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.

8 years ago * lib/target.exp (only--Ls): Change '???' comment to a note. This
Ben Elliston [Tue, 22 Mar 2016 09:30:13 +0000 (20:30 +1100)]
* lib/target.exp (only--Ls): Change '???' comment to a note. This
isn't a serious shortcoming, but the comment should be retained.

8 years ago * baseboards/generic-sim.exp: If DEJAGNU_SIM_SPECFILE exists in
Rob Savoye [Tue, 22 Mar 2016 06:55:32 +0000 (17:55 +1100)]
* baseboards/generic-sim.exp: If DEJAGNU_SIM_SPECFILE exists in
the environment, use that as the spec file for bare metal testing.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * Makefile.am (config_DATA): Add config/aarch64-fv8.exp.
Ben Elliston [Tue, 22 Mar 2016 01:43:37 +0000 (12:43 +1100)]
* Makefile.am (config_DATA): Add config/aarch64-fv8.exp.
* Makefile.in: Regenerate.

8 years ago * config/aarch64-fv8.exp: Add support for testing armv8 using the
Rob Savoye [Mon, 21 Mar 2016 23:50:19 +0000 (10:50 +1100)]
* config/aarch64-fv8.exp: Add support for testing armv8 using the
ARM Foundation Model.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * runtest.exp: Whitespace, comment and typo fixes.
Ben Elliston [Mon, 21 Mar 2016 07:03:24 +0000 (18:03 +1100)]
* runtest.exp: Whitespace, comment and typo fixes.
* lib/dejagnu.exp: Likewise.
* lib/remote.exp: Likewise.
* lib/utils.exp: Likewise.

8 years ago * baseboards/mcore-moto-sim.exp: Remove old FIXME comment.
Ben Elliston [Mon, 21 Mar 2016 00:32:31 +0000 (11:32 +1100)]
* baseboards/mcore-moto-sim.exp: Remove old FIXME comment.
* baseboards/mmixware-sim.exp: Likewise.
* config/sim.exp: Likewise.
* runtest.exp: Likewise.

8 years ago * lib/dg.exp (dg-get-options): Clean up regular expression and
Ben Elliston [Mon, 21 Mar 2016 00:03:29 +0000 (11:03 +1100)]
* lib/dg.exp (dg-get-options): Clean up regular expression and
remove FIXME comment about it.

8 years ago * baseboards/i960-sim.exp: Remove stale ??? comment.
Ben Elliston [Sun, 20 Mar 2016 09:44:17 +0000 (20:44 +1100)]
* baseboards/i960-sim.exp: Remove stale ??? comment.
* config/vxworks.exp: Likewise.

8 years ago * runtest.exp: Load .dejagnurc last not first.
Ben Elliston [Sun, 20 Mar 2016 09:20:15 +0000 (20:20 +1100)]
* runtest.exp: Load .dejagnurc last not first.
(load_file): Update comment about Tcl 7.5a2.
* doc/user.xml (Customizing DejaGnu): Document new search order
for site.exp files.
* doc/dejagnu.texi: Regenerate.
* NEWS: Update.

8 years ago * lib/dg.exp (dg-runtest): Improve arg naming to remove a FIXME.
Ben Elliston [Sun, 20 Mar 2016 07:25:11 +0000 (18:25 +1100)]
* lib/dg.exp (dg-runtest): Improve arg naming to remove a FIXME.

8 years ago * lib/dg.exp: Remove commented-out calls to send_user.
Ben Elliston [Sun, 20 Mar 2016 06:45:48 +0000 (17:45 +1100)]
* lib/dg.exp: Remove commented-out calls to send_user.

8 years ago * runtest.exp (load_file): Remove old comment.
Ben Elliston [Sun, 20 Mar 2016 06:41:43 +0000 (17:41 +1100)]
* runtest.exp (load_file): Remove old comment.

8 years ago * lib/dg.exp (dg-test): There is no need to call unresolved to
Ben Elliston [Sun, 20 Mar 2016 06:05:32 +0000 (17:05 +1100)]
* 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.

8 years agoThis reverts commit 4d344f712298364c836038b641625b3407db2fc3. The GCC
Ben Elliston [Wed, 16 Mar 2016 06:51:26 +0000 (17:51 +1100)]
This reverts commit 4d344f712298364c836038b641625b3407db2fc3. The GCC
testsuite still uses diff.

2016-03-15  Ben Elliston  <bje@gnu.org>

* lib/utils.exp (diff): Remove proc.
* doc/ref.xml: Update documentation.
* doc/dejagnu.texi: Regenerate.
* NEWS: Update.

8 years ago * testsuite/runtest.all/options.exp: Properly clean up log files
Ben Elliston [Tue, 15 Mar 2016 10:07:42 +0000 (21:07 +1100)]
* testsuite/runtest.all/options.exp: Properly clean up log files
left by the runtest under test.

8 years ago * testsuite/runtest.all/load_lib.exp: Typo fixes.
Ben Elliston [Tue, 15 Mar 2016 09:40:51 +0000 (20:40 +1100)]
* testsuite/runtest.all/load_lib.exp: Typo fixes.

8 years ago * testsuite/runtest.all/options.exp: Add more tests.
Ben Elliston [Tue, 15 Mar 2016 09:39:58 +0000 (20:39 +1100)]
* testsuite/runtest.all/options.exp: Add more tests.

8 years ago * testsuite/libdejagnu/tunit.exp: Clean up.
Ben Elliston [Tue, 15 Mar 2016 07:13:50 +0000 (18:13 +1100)]
* testsuite/libdejagnu/tunit.exp: Clean up.

8 years ago * lib/utils.exp (diff): Remove proc.
Ben Elliston [Mon, 14 Mar 2016 22:26:31 +0000 (09:26 +1100)]
* lib/utils.exp (diff): Remove proc.
* doc/ref.xml: Update documentation.
* doc/dejagnu.texi: Regenerate.
* NEWS: Update.

8 years agoThis reverts commit ef5f4a8c80f8d652e5415d0fdb159dcf51af52d3:
Ben Elliston [Mon, 14 Mar 2016 20:27:54 +0000 (07:27 +1100)]
This reverts commit ef5f4a8c80f8d652e5415d0fdb159dcf51af52d3:

2016-02-14  Steve Ellcey  <sellcey@mips.com>

* baseboards/multi-sim.exp (dynamic_linker_flag): Check
GCC_UNDER_TEST.
* baseboards/multi-sim.exp (rpath_flags): Ditto.

8 years ago * lib/utils.exp: Whitespace fixes.
Ben Elliston [Sun, 13 Mar 2016 09:18:21 +0000 (20:18 +1100)]
* lib/utils.exp: Whitespace fixes.

8 years ago * lib/dg.exp (dg-process-target): Remove old commented code.
Ben Elliston [Sun, 13 Mar 2016 04:42:28 +0000 (15:42 +1100)]
* lib/dg.exp (dg-process-target): Remove old commented code.
* lib/dg.exp (dg-test): Likewise.

8 years ago * lib/dg.exp: Improve top-of-file documentation.
Ben Elliston [Sun, 13 Mar 2016 00:29:14 +0000 (11:29 +1100)]
* lib/dg.exp: Improve top-of-file documentation.

8 years ago * lib/remote.exp (remote_exec): Restore original timeout value.
Yvan Roux [Fri, 4 Mar 2016 20:58:54 +0000 (07:58 +1100)]
* lib/remote.exp (remote_exec): Restore original timeout value.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * lib/remote.exp (standard_upload): Remove dead code.
Yvan Roux [Thu, 3 Mar 2016 19:23:25 +0000 (06:23 +1100)]
* lib/remote.exp (standard_upload): Remove dead code.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * lib/utils.exp (prune): Restore this proc.
Ben Elliston [Wed, 24 Feb 2016 04:04:57 +0000 (15:04 +1100)]
* lib/utils.exp (prune): Restore this proc.
* doc/ref.xml: Update documentation.
* doc/dejagnu.texi: Regenerate.
* NEWS: Update.

This reverts commit 992fbc3a8f03c3cd5e554eea5361f1a531e9e71f.

8 years ago * lib/libgloss.exp (find_gdc): New proc.
Iain Buclaw [Mon, 22 Feb 2016 20:58:41 +0000 (07:58 +1100)]
* lib/libgloss.exp (find_gdc): New proc.
* lib/target.exp (default_target_compile): Add D support.
* NEWS: Update.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * lib/utils.exp (diff): Replace calls to verbose followed by
Ben Elliston [Sat, 20 Feb 2016 08:04:39 +0000 (19:04 +1100)]
* lib/utils.exp (diff): Replace calls to verbose followed by
send_log with a single call to verbose -log. Remove additional
newlines from the log messages.

8 years ago * lib/utils.exp (getdirs): Ignore .git and .svn directories.
Ben Elliston [Sat, 20 Feb 2016 02:14:04 +0000 (13:14 +1100)]
* lib/utils.exp (getdirs): Ignore .git and .svn directories.

8 years ago * lib/utils.exp: Improve comments.
Ben Elliston [Sat, 20 Feb 2016 01:36:29 +0000 (12:36 +1100)]
* lib/utils.exp: Improve comments.
* NEWS: Update.

8 years ago * lib/utils.exp (prune): Remove proc.
Ben Elliston [Sat, 20 Feb 2016 00:49:15 +0000 (11:49 +1100)]
* lib/utils.exp (prune): Remove proc.
* doc/ref.xml: Update documentation.
* doc/dejagnu.texi: Regenerate.

8 years ago * lib/utils.exp (slay): Remove proc.
Ben Elliston [Sat, 20 Feb 2016 00:47:11 +0000 (11:47 +1100)]
* lib/utils.exp (slay): Remove proc.
* doc/ref.xml: Update documentation.
* doc/dejagnu.texi: Regenerate.

8 years ago * lib/utils.exp (absolute): Remove proc.
Ben Elliston [Sat, 20 Feb 2016 00:44:30 +0000 (11:44 +1100)]
* lib/utils.exp (absolute): Remove proc.
* doc/ref.xml: Update documentation.
* doc/dejagnu.texi: Regenerate.

8 years ago * lib/utils.exp (psource): Remove proc.
Ben Elliston [Sat, 20 Feb 2016 00:41:38 +0000 (11:41 +1100)]
* lib/utils.exp (psource): Remove proc.
* doc/ref.xml: Update documentation.
* doc/dejagnu.texi: Regenerate.

8 years ago * lib/targetdb.exp (board_info): Simplify return logic.
Ben Elliston [Sat, 20 Feb 2016 00:23:09 +0000 (11:23 +1100)]
* lib/targetdb.exp (board_info): Simplify return logic.

8 years agoRequiring Tcl 8.6 is apparently too bleeding edge!
Ben Elliston [Thu, 18 Feb 2016 21:57:44 +0000 (08:57 +1100)]
Requiring Tcl 8.6 is apparently too bleeding edge!

* configure.ac: Require Tcl version 8.5 at a minimum.
* configure: Regenerate.

8 years ago * configure.ac: Require Tcl version 8.6 at a minimum.
Ben Elliston [Wed, 17 Feb 2016 19:58:51 +0000 (06:58 +1100)]
* configure.ac: Require Tcl version 8.6 at a minimum.
* configure: Regenerate.

8 years ago * runtest.exp: Tweak "Test run by .." output.
Ben Elliston [Wed, 17 Feb 2016 04:40:15 +0000 (15:40 +1100)]
* runtest.exp: Tweak "Test run by .." output.

8 years ago * lib/target.exp (default_target_compile): Do not pass -log to
Ben Elliston [Tue, 16 Feb 2016 17:33:44 +0000 (04:33 +1100)]
* lib/target.exp (default_target_compile): Do not pass -log to
verbose when outputting the captured compiler/assembler/linker
diagnostic output as it will already be in the .log file courtesy
of Expect.

8 years ago * runtest.exp: Enable --status by default.
Ben Elliston [Tue, 16 Feb 2016 17:28:23 +0000 (04:28 +1100)]
* runtest.exp: Enable --status by default.
(runtest): Set exit status to 2 if there is any error sourcing
the Tcl scripts.
* lib/framework.exp (unknown): Likewise, set exit status to 2.
* doc/runtest.1: Clarify exit status codes.
* NEWS: Update.

8 years ago * lib/remote.exp (local_exec): Call exp_continue until eof is
Ben Elliston [Tue, 16 Feb 2016 17:15:36 +0000 (04:15 +1100)]
* lib/remote.exp (local_exec): Call exp_continue until eof is
matched.

8 years ago * runtest.exp: Use the traditional exit codes when runtest is
Ben Elliston [Tue, 16 Feb 2016 01:31:08 +0000 (12:31 +1100)]
* runtest.exp: Use the traditional exit codes when runtest is
interrupted. This makes it possible to tell if runtest ran to
completion or not. Suggested by Michael Chastain.

8 years ago * TODO: Add ideas produced from Cauldron 2013.
Ben Elliston [Mon, 15 Feb 2016 07:30:41 +0000 (18:30 +1100)]
* TODO: Add ideas produced from Cauldron 2013.

8 years ago * TODO: Update.
Ben Elliston [Mon, 15 Feb 2016 04:00:53 +0000 (15:00 +1100)]
* TODO: Update.

8 years ago * lib/dg.exp (dg-test): Remove comment about proc unresolved not
Ben Elliston [Mon, 15 Feb 2016 03:10:07 +0000 (14:10 +1100)]
* lib/dg.exp (dg-test): Remove comment about proc unresolved not
setting exit_status to 1 -- it does.

8 years ago * runtest.exp: Use the traditional exit codes when runtest is
Ben Elliston [Mon, 15 Feb 2016 02:52:36 +0000 (13:52 +1100)]
* runtest.exp: Use the traditional exit codes when runtest is
interrupted. This makes it possible to tell if runtest ran to
completion or not. Suggested by Michael Chastain.

8 years ago * lib/framework.exp (cleanup): Remove do-nothing proc.
Ben Elliston [Mon, 15 Feb 2016 00:12:17 +0000 (11:12 +1100)]
* lib/framework.exp (cleanup): Remove do-nothing proc.
(log_and_exit): Remove call to cleanup.
* doc/ref.xml: Remove documentation for cleanup.
* doc/dejagnu.texi: Regenerate.

8 years ago Reported by David Malcolm.
Ben Elliston [Mon, 15 Feb 2016 00:05:41 +0000 (11:05 +1100)]
Reported by David Malcolm.
* lib/dejagnu.exp (text): Allow angle brackets in test messages.

8 years ago * config.guess: Update to version 2016-02-11.
Ben Elliston [Sun, 14 Feb 2016 19:47:10 +0000 (06:47 +1100)]
* config.guess: Update to version 2016-02-11.
* config.sub: Update to version 2016-01-01.

8 years ago * lib/remote.exp (remote_exec): Set global timeout for benefit of
Maxim Kuvyrkov [Sun, 14 Feb 2016 12:00:09 +0000 (23:00 +1100)]
* lib/remote.exp (remote_exec): Set global timeout for benefit of
<remote>_exec.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * lib/remote.exp (local_exec): Improve comments.
Ben Elliston [Sun, 14 Feb 2016 11:23:00 +0000 (22:23 +1100)]
* lib/remote.exp (local_exec): Improve comments.

8 years ago * doc/runtest.1: Tweak.
Ben Elliston [Sun, 14 Feb 2016 03:53:59 +0000 (14:53 +1100)]
* doc/runtest.1: Tweak.

8 years ago * baseboards/multi-sim.exp (dynamic_linker_flag): Check
Steve Ellcey [Sun, 14 Feb 2016 02:18:53 +0000 (13:18 +1100)]
* baseboards/multi-sim.exp (dynamic_linker_flag): Check
GCC_UNDER_TEST.
* baseboards/multi-sim.exp (rpath_flags): Ditto.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * lib/remote.exp (standard_file): Reverse return logic for remote
Simon Marchi [Sat, 23 Jan 2016 00:02:59 +0000 (11:02 +1100)]
* lib/remote.exp (standard_file): Reverse return logic for remote
exists case.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * lib/remote.exp (standard_file); Add else clause.
Simon Marchi [Fri, 22 Jan 2016 23:59:51 +0000 (10:59 +1100)]
* lib/remote.exp (standard_file); Add else clause.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago* runtest.exp (runtest): Improve comment about --status.
Ben Elliston [Fri, 15 Jan 2016 20:31:19 +0000 (07:31 +1100)]
* runtest.exp (runtest): Improve comment about --status.

8 years ago * lib/remote.exp (standard_file): The [ operator does not actually
Simon Marchi [Tue, 12 Jan 2016 00:56:51 +0000 (11:56 +1100)]
* lib/remote.exp (standard_file): The [ operator does not actually
output anything. It returns 0 or 1 as its exit code, so "exit `[
-f $file ]`" always expands to "exit " (equivalent to exit 0).
Instead, use test(1) to check for file existence.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * doc/dejagnu.xml: Begin overhauling.
Ben Elliston [Sat, 19 Dec 2015 19:29:04 +0000 (06:29 +1100)]
* doc/dejagnu.xml: Begin overhauling.
* doc/ref.xml: Likewise.
* doc/user.xml: Likewise.
* doc/dejagnu.texi: Regenerate.

8 years ago * doc/runtest.1: Miscellaneous minor improvements.
Ben Elliston [Sat, 19 Dec 2015 19:27:48 +0000 (06:27 +1100)]
* doc/runtest.1: Miscellaneous minor improvements.

8 years ago * Makefile.am (baseboard_DATA): Add missing rx-sim.exp.
Yoshinori Sato [Tue, 8 Dec 2015 19:51:30 +0000 (06:51 +1100)]
* Makefile.am (baseboard_DATA): Add missing rx-sim.exp.
* Makefile.in: Regenerate.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * config/unix.exp: Add ability to set test timeout from site.exp.
Brooks Moses [Thu, 19 Nov 2015 22:21:04 +0000 (09:21 +1100)]
* config/unix.exp: Add ability to set test timeout from site.exp.
* doc/user.xml: Document new test_timeout variable in site.exp.
* doc/dejagnu.texi: Regenerate.

Signed-off-by: Ben Elliston <bje@gnu.org>
8 years ago * testsuite/runtest.all/options.exp: Re-enable --strace 1 test.
Ben Elliston [Mon, 16 Nov 2015 00:15:05 +0000 (11:15 +1100)]
* testsuite/runtest.all/options.exp: Re-enable --strace 1 test.

8 years ago * testsuite/runtest.all/options.exp: Remove some commented code.
Ben Elliston [Mon, 16 Nov 2015 00:10:48 +0000 (11:10 +1100)]
* testsuite/runtest.all/options.exp: Remove some commented code.

8 years ago * runtest.exp: Refer to "DejaGnu version", not "Framework
Ben Elliston [Mon, 16 Nov 2015 00:07:35 +0000 (11:07 +1100)]
* runtest.exp: Refer to "DejaGnu version", not "Framework
version" in --version output.
* testsuite/runtest.all/options.exp: Update test case.

8 years ago * runtest.exp (usage): Improve help text.
Ben Elliston [Sat, 14 Nov 2015 11:30:22 +0000 (22:30 +1100)]
* runtest.exp (usage): Improve help text.

9 years ago * runtest.exp (usage): Sort options in usage.
Ben Elliston [Thu, 12 Nov 2015 10:58:43 +0000 (21:58 +1100)]
* runtest.exp (usage): Sort options in usage.

9 years ago * lib/framework.exp (note): Remove old commented-out code.
Ben Elliston [Wed, 11 Nov 2015 21:31:32 +0000 (08:31 +1100)]
* lib/framework.exp (note): Remove old commented-out code.

9 years ago * doc/user.xml (Summary File): 'untested', not 'runtested'.
Ben Elliston [Wed, 11 Nov 2015 12:22:20 +0000 (23:22 +1100)]
* doc/user.xml (Summary File): 'untested', not 'runtested'.
* doc/dejagnu.texi: Regenerate.

9 years ago * lib/target.exp (default_target_compile): Honor LDFLAGS_FOR_TARGET.
Michael Forney [Wed, 11 Nov 2015 10:14:04 +0000 (21:14 +1100)]
* lib/target.exp (default_target_compile): Honor LDFLAGS_FOR_TARGET.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * doc/dejagnu.texi: Regenerate.
Ben Elliston [Tue, 10 Nov 2015 20:58:02 +0000 (07:58 +1100)]
* doc/dejagnu.texi: Regenerate.

9 years ago * doc/user.xml: Fix runtest output formatting in <programlisting>.
Ben Elliston [Tue, 10 Nov 2015 03:36:32 +0000 (14:36 +1100)]
* doc/user.xml: Fix runtest output formatting in <programlisting>.

9 years ago * doc/dejagnu.xml: Update month and year.
Daniel Thibault [Tue, 10 Nov 2015 03:26:21 +0000 (14:26 +1100)]
* doc/dejagnu.xml: Update month and year.
* doc/user.xml: Lots of editorial fixes from Daniel Thibault
<Daniel.Thibault@drdc-rddc.gc.ca>.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * baseboards/multi-sim.exp (rpath_flags): Add libgomp.so check.
Robert Suchanek [Thu, 10 Sep 2015 03:08:07 +0000 (13:08 +1000)]
* baseboards/multi-sim.exp (rpath_flags): Add libgomp.so check.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * lib/remote.exp (close_wait_program): New procedure.
Pedro Alves [Wed, 29 Jul 2015 21:47:52 +0000 (07:47 +1000)]
* lib/remote.exp (close_wait_program): New procedure.
(local_exec, standard_close): Use it.

The code that tries to make sure that a process dies in
lib/remote.exp:remote_close can kill the wrong process due to PID-reuse
races.  The GDB buildbots show frequent misterious FAILs that turns out
are caused by this.  The problem is this bit here:

   exec sh -c "exec > /dev/null 2>&1 && (kill -2 $pgid || kill -2 $pid)
      && sleep 5 && (kill $pgid || kill $pid) && sleep 5 && (kill -9 $pgid || kill -9 $pid) &"
   ...
   catch "wait -i $shell_id"

When this procedure is called to close the GDB process, GDB exits
promptly, but that whole cascade of kills carries on in the background,
thus potentially killing the unfortunate process that manages to be
spawned by one of the next tests and happens to reuse that $pid. [1]

So to fix this, kill that no-longer-needed pipeline as soon as "wait"
returns.  There are two places in the DejaGnu with a similar pipeline,
so move that to a shared procedure.

[1] GDB'S testsuite spawns thousands of GDB instances and even more
inferior processes, and of those inferiors, some spawn thousands of
short lived threads in quick succession.  Since threads and processes
share the number space in Linux, all that causes PID recycling
frequently.  In addition, GDB's testsuite has a parallel test mode that
runs several tests/DejaGnu instances at the same time, further widening
the race window.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * doc/dejagnu.xml: Fix broken URLs.
Ben Elliston [Sat, 23 May 2015 11:18:11 +0000 (21:18 +1000)]
* doc/dejagnu.xml: Fix broken URLs.
* doc/dejagnu.texi: Regenerate.

9 years ago * doc/user.xml: Fix 'crosscompilation'.
Ben Elliston [Sat, 23 May 2015 10:54:07 +0000 (20:54 +1000)]
* doc/user.xml: Fix 'crosscompilation'.

9 years ago * doc/runtest.1 (log_dialog): Improve documentation.
Ben Elliston [Sat, 23 May 2015 10:52:47 +0000 (20:52 +1000)]
* doc/runtest.1 (log_dialog): Improve documentation.

9 years ago * configure.ac: Enable subdir-objects, require automake 1.14.
Filipe Brandenburger [Sat, 16 May 2015 03:08:31 +0000 (13:08 +1000)]
* configure.ac: Enable subdir-objects, require automake 1.14.
* Makefile.in: Regenerate.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * doc/dejagnu.xml: Fix typos such as stray }'s and @samp{...},
Filipe Brandenburger [Fri, 15 May 2015 10:39:05 +0000 (20:39 +1000)]
* doc/dejagnu.xml: Fix typos such as stray }'s and @samp{...},
possibly introduced in a conversion of .texi to SGML Docbook.
* doc/user.xml: Likewise.
* doc/ref.xml: Likewise.
* doc/dejagnu.texi: Regenerate.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * runtest.exp (runtest): Introduce new --log_dialog option.
Filipe Brandenburger [Fri, 15 May 2015 05:51:49 +0000 (15:51 +1000)]
* runtest.exp (runtest): Introduce new --log_dialog option.
* doc/runtest.1: Document it.
* doc/user.xml: Likewise.
* doc/dejagnu.texi: Regenerate.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * baseboards/multi-sim.exp (get_library_dirlist): New.
Steve Ellcey [Thu, 14 May 2015 06:29:00 +0000 (16:29 +1000)]
* baseboards/multi-sim.exp (get_library_dirlist): New.
(dynamic_linker_flag): Use get_library_dirlist to find dynamic
linker.
(rpath_flags): Use get_library_dirlist to set rpath.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * baseboards/generic-sim.exp: Check $DEJAGNU_SIM_OPTION.
Steve Ellcey [Tue, 12 May 2015 02:20:20 +0000 (12:20 +1000)]
* baseboards/generic-sim.exp: Check $DEJAGNU_SIM_OPTION.

Signed-off-by: Ben Elliston <bje@gnu.org>