+2004-11-21 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * 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 <adl@gnu.org>
* aclocal.in (%file_seen): Rename as ...
## 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 </dev/null \
&& test -n "`cat c$${pid}_.out`" \
&& test -z "`cat c$${pid}_.err`"; then :; \
else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
## 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 </dev/null \
&& test -n "`cat c$${pid}_.out`" \
&& test -z "`cat c$${pid}_.err`"; then :; \
else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
#! /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.
#
echo "Which version? Which usage?"
EOF
+# Not only does this script not support --help/--version, but
+# it will also hang when run without input.
cat >sub/scriptnok.sh <<EOF
#!/bin/sh
-:
+cat
EOF
chmod +x sub/scriptok.sh