platform/upstream/dejagnu.git
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.

8 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.

8 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.

8 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.

8 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>
8 years ago * doc/dejagnu.texi: Regenerate.
Ben Elliston [Tue, 10 Nov 2015 20:58:02 +0000 (07:58 +1100)]
* doc/dejagnu.texi: Regenerate.

8 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>.

8 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>
8 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>
9 years agoRevert the following change which causes breakage reported here:
Ben Elliston [Sun, 29 Mar 2015 23:04:48 +0000 (10:04 +1100)]
Revert the following change which causes breakage reported here:
https://lists.gnu.org/archive/html/dejagnu/2015-03/msg00003.html

2011-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>

* runtest.exp (runtest): Call reset_vars at initialisation so that
perror does not affect test results in other test scripts.

9 years ago * lib/target.exp (default_target_compile): Prepend multilib_flags,
H.J. Lu [Thu, 26 Feb 2015 06:53:48 +0000 (17:53 +1100)]
* lib/target.exp (default_target_compile): Prepend multilib_flags,
instead of appending it.

Some GCC testcases need explicit GCC options to properly run. For
example gcc.target/i386/pr32219-1.c has -fpie specified explicitly:

/* { dg-options "-O2 -fpie" } */

But with multlib, eg:
make check-gcc RUNTESTFLAGS="--target_board='unix{-fpic}'"

-fpic is appended to the command line options, which overrides the command
line options specified by dg-options.  multlib flags should be placed at
the beginning of the command line options, not at the end.  This patch
updates default_target_compile to prepend multilib_flags, instead of
appending it.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * lib/framework.exp (log_and_exit): Set tool to "testrun" if
Stephen Tridgell [Wed, 18 Feb 2015 02:07:30 +0000 (13:07 +1100)]
* lib/framework.exp (log_and_exit): Set tool to "testrun" if
unset.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * doc/runtest.1: Fix a spelling error.
Ben Elliston [Wed, 4 Feb 2015 13:01:01 +0000 (00:01 +1100)]
* doc/runtest.1: Fix a spelling error.

9 years ago * config.guess: Update to version 2015-01-01.
Ben Elliston [Wed, 4 Feb 2015 12:57:43 +0000 (23:57 +1100)]
* config.guess: Update to version 2015-01-01.
* config.sub: Likewise.

9 years ago * Makefile.am (baseboard_DATA): Add baseboards/visium-sim.exp.
Eric Botcazou [Wed, 21 Jan 2015 19:41:32 +0000 (06:41 +1100)]
* Makefile.am (baseboard_DATA): Add baseboards/visium-sim.exp.
* Makefile.in: Regenerate.
* baseboards/visium-sim.exp: New file.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * lib/dejagnu.exp (host_execute): Remove stray leading hyphen.
Ben Elliston [Mon, 24 Nov 2014 22:35:07 +0000 (09:35 +1100)]
* lib/dejagnu.exp (host_execute): Remove stray leading hyphen.
Reported by David Malcolm.

9 years ago * Makefile.in: Regenerate.
Ben Elliston [Tue, 28 Oct 2014 01:03:43 +0000 (12:03 +1100)]
* Makefile.in: Regenerate.

9 years ago * example: Remove stale examples.
Ben Elliston [Tue, 28 Oct 2014 01:00:55 +0000 (12:00 +1100)]
* example: Remove stale examples.

9 years ago * dejagnu.h (pass): Make function static as well as inline.
Steve Ellcey [Thu, 23 Oct 2014 23:37:51 +0000 (10:37 +1100)]
* dejagnu.h (pass): Make function static as well as inline.
(xpass): Ditto.
(fail): Ditto.
(xfail): Ditto.
(untested): Ditto.
(unresolved): Ditto.
(note): Ditto.
(totals): Ditto.

Signed-off-by: Ben Elliston <bje@gnu.org>
9 years ago * runtest.exp: Only match $directory, not *${directory}* when the
Ben Elliston [Tue, 14 Oct 2014 09:50:49 +0000 (20:50 +1100)]
* runtest.exp: Only match $directory, not *${directory}* when the
user passes the --directory option. Reported by Sergey Alyoshin.

9 years ago* lib/dejagnu.exp (host_execute): Remove buffer_full check. This is not
Ben Elliston [Tue, 14 Oct 2014 02:22:23 +0000 (13:22 +1100)]
* lib/dejagnu.exp (host_execute): Remove buffer_full check. This is not
  the right command keyword -- it is full_buffer. Reported by David
  Malcolm <dmalcolm@redhat.com>.

10 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/dejagnu
Ben Elliston [Tue, 15 Jul 2014 12:56:46 +0000 (22:56 +1000)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/dejagnu

Conflicts:
ChangeLog

10 years ago * lib/targetdb.exp (add_board_info): New procedure.
Maciej W. Rozycki [Tue, 15 Jul 2014 12:54:05 +0000 (22:54 +1000)]
* lib/targetdb.exp (add_board_info): New procedure.
* doc/ref.xml (Add_board_info Procedure): New section.
(Set_board_info Procedure): Add description.
(Unset_board_info Procedure): Likewise.
* doc/user.xml (Board Config File Values): Add `add_board_info'
reference.  Reorder `gdb_init_command' table rows and remove a
duplicate entry, reusing it for `gdb_init_commands'.

Signed-off-by: Ben Elliston <bje@gnu.org>
10 years agoFix bug were none of the relative paths were actually being used for file lookup.
Rob Savoye [Wed, 25 Jun 2014 22:33:08 +0000 (16:33 -0600)]
Fix bug were none of the relative paths were actually being used for file lookup.

10 years ago * depcomp, install-sh, missing: Update to latest versions.
Ben Elliston [Fri, 6 Jun 2014 04:09:11 +0000 (14:09 +1000)]
* depcomp, install-sh, missing: Update to latest versions.
* mkinstalldirs: Remove.
* Makefile.in: Regenerate.

10 years ago * Makefile.in: Regenerate with Automake 1.14.1.
Ben Elliston [Wed, 4 Jun 2014 10:10:36 +0000 (20:10 +1000)]
* Makefile.in: Regenerate with Automake 1.14.1.
* compile: Add missing file.

10 years ago * config.guess: Update to version 2014-03-23.
Ben Elliston [Wed, 4 Jun 2014 07:26:45 +0000 (17:26 +1000)]
* config.guess: Update to version 2014-03-23.
* config.sub: Likewise.

10 years ago * aclocal.m4: Regenerate with Automake 1.14.1.
Ben Elliston [Wed, 4 Jun 2014 07:10:42 +0000 (17:10 +1000)]
* aclocal.m4: Regenerate with Automake 1.14.1.
* configure: Regenerate with Autoconf 2.69.

10 years ago * baseboards/multi-sim.exp (rpath_flags): Add libatomic.so check.
Steve Ellcey [Fri, 14 Mar 2014 22:38:11 +0000 (09:38 +1100)]
* baseboards/multi-sim.exp (rpath_flags): Add libatomic.so check.

Signed-off-by: Ben Elliston <bje@gnu.org>
10 years ago * config/sim.exp (sim_exec): New.
Steve Ellcey [Mon, 24 Feb 2014 01:15:14 +0000 (12:15 +1100)]
* config/sim.exp (sim_exec): New.
(sim_file): New.

Signed-off-by: Ben Elliston <bje@gnu.org>
10 years agoRevert "config/sim.exp (sim_exec): New."
Ben Elliston [Sat, 15 Feb 2014 10:17:04 +0000 (21:17 +1100)]
Revert "config/sim.exp (sim_exec): New."

Signed-off-by: Ben Elliston <bje@gnu.org>
10 years ago * config/sim.exp (sim_exec): New.
Steve Ellcey [Fri, 14 Feb 2014 23:24:50 +0000 (10:24 +1100)]
* config/sim.exp (sim_exec): New.

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