]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/am/dejagnu.am (check-DEJAGNU): Fail when at least one test
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 20 Apr 2006 16:24:15 +0000 (16:24 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 20 Apr 2006 16:24:15 +0000 (16:24 +0000)
failed, instead of when the last one failed (PR automake/488).
Report from Paul Lunau.
* tests/dejagnu4.test: Update to expose this.
* THANKS: Update.

ChangeLog
THANKS
lib/am/dejagnu.am
tests/dejagnu4.test

index d9cd6c5f75752093d6f20e452d52ce3ce2a1f899..bc74f94e8f164b67b9a7daec43f6fc9ae12c172a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-04-20  Paul Lunau  <temp@lunau.me.uk>  (tiny change)
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/am/dejagnu.am (check-DEJAGNU): Fail when at least one test
+       failed, instead of when the last one failed (PR automake/488).
+       Report from Paul Lunau.
+       * tests/dejagnu4.test: Update to expose this.
+       * THANKS: Update.
+
 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * lib/am/check.am (check-TESTS): Match XFAIL_TESTS delimited by
diff --git a/THANKS b/THANKS
index 22c92bec3a53a5ecd665ad01f498143b9a35e9b4..e6a4f7743073276f282782aff40829d24611d650 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -206,6 +206,7 @@ Paul Berrevoets             paul@swi.com
 Paul D. Smith          psmith@BayNetworks.COM
 Paul Eggert            eggert@twinsun.com
 Paul Jarc              prj@po.cwru.edu
+Paul Lunau             temp@lunau.me.uk
 Paul Martinolich       martinol@datasync.com
 Paul Thomas            PTHOMAS@novell.com
 Pavel Roskin           pavel_roskin@geocities.com
index 501b4082b91200542afae2a778b49e25de4c355c..699640551f726fbc59b3ea687f0de799f513ff1b 100644 (file)
@@ -1,5 +1,5 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2003
+## Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2003, 2006
 ## Free Software Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
@@ -58,11 +58,13 @@ check-DEJAGNU: site.exp
 ## If runtest can't be found, print a warning but don't die.  It is
 ## pointless to cause a failure if the tests cannot be run at all.
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
-         l='$(DEJATOOL)'; for tool in $$l; do \
-           $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \
+         exit_status=0; l='$(DEJATOOL)'; for tool in $$l; do \
+           if $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \
+           then :; else exit_status=1; fi; \
          done; \
        else echo "WARNING: could not find \`runtest'" 1>&2; :;\
-       fi
+       fi; \
+       exit $$exit_status
 
 
 ## ------------------- ##
index 6f06d3d245c079fbfe4f1d1c9db3c2470723668e..c2163a616ddb183268a71ba315240e0c0032fe23 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2003  Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -19,6 +19,7 @@
 # Boston, MA 02110-1301, USA.
 
 # Check that the DejaGnu rules work for a simple program and test case.
+# Also check PR 488: Failure of the first of several tools tested.
 
 required=runtest
 . ./defs || exit 1
@@ -86,3 +87,11 @@ test -f spanner.log
 test -f spanner.sum
 
 $MAKE distcheck
+
+# Test for PR 488.
+sed 's/E\(verything\)/Not e\1/' hammer > thammer
+mv thammer hammer
+chmod +x hammer
+
+$MAKE check && exit 1
+: