From: Alexandre Duret-Lutz Date: Sun, 21 Nov 2004 19:54:43 +0000 (+0000) Subject: * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Run programs with X-Git-Tag: Release-1-9b~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8498ea2933e2c572776e5f6f539e9314f534a8d2;p=thirdparty%2Fautomake.git * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Run programs with /dev/null as input, so we do not hang on programs that read their input without supporting --help and --version. * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise for scripts. * tests/gnits2.test: Change scriptnok.sh to cat its input. Report and fix from James Youngman. --- diff --git a/ChangeLog b/ChangeLog index b29cd8b4d..2657567bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-11-21 Alexandre Duret-Lutz + + * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Run programs with + /dev/null as input, so we do not hang on programs that read their + input without supporting --help and --version. + * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise for scripts. + * tests/gnits2.test: Change scriptnok.sh to cat its input. + Report and fix from James Youngman. + 2004-11-17 Alexandre Duret-Lutz * aclocal.in (%file_seen): Rename as ... diff --git a/lib/am/progs.am b/lib/am/progs.am index dc3c9b02e..ea30757d7 100644 --- a/lib/am/progs.am +++ b/lib/am/progs.am @@ -120,7 +120,8 @@ installcheck-%DIR%PROGRAMS: $(%DIR%_PROGRAMS) ## Insert the directory back if nobase_ is used. ?!BASE? f=`echo "$$p" | sed 's|[^/]*$$||'`"$$f"; \ for opt in --help --version; do \ - if "$(DESTDIR)$(%NDIR%dir)/$$f" $$opt > c$${pid}_.out 2> c$${pid}_.err \ + if "$(DESTDIR)$(%NDIR%dir)/$$f" $$opt >c$${pid}_.out \ + 2>c$${pid}_.err &2; bad=1; fi; \ diff --git a/lib/am/scripts.am b/lib/am/scripts.am index 374f990df..91a8aa0c6 100644 --- a/lib/am/scripts.am +++ b/lib/am/scripts.am @@ -110,7 +110,8 @@ installcheck-%DIR%SCRIPTS: $(%DIR%_SCRIPTS) ## Insert the directory back if nobase_ is used. ?!BASE? f=`echo "$$p" | sed 's|[^/]*$$||'`"$$f"; \ for opt in --help --version; do \ - if "$(DESTDIR)$(%NDIR%dir)/$$f" $$opt > c$${pid}_.out 2> c$${pid}_.err \ + if "$(DESTDIR)$(%NDIR%dir)/$$f" $$opt >c$${pid}_.out \ + 2>c$${pid}_.err &2; bad=1; fi; \ diff --git a/tests/gnits2.test b/tests/gnits2.test index 91a2c3d2d..59882015c 100755 --- a/tests/gnits2.test +++ b/tests/gnits2.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2002, 2003 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. # # This file is part of GNU Automake. # @@ -71,9 +71,11 @@ cat >sub/scriptok.sh <sub/scriptnok.sh <