+2010-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ Enable `errexit' shell flag in some test scripts.
+ * tests/subcond.test: Enabled `errexit' shell flag, and related
+ minor changes.
+ * tests/subst.test: Likewise.
+ * tests/vars.test: Likewise.
+ * tests/version4.test: Likewise.
+ * tests/vpath.test: Likewise.
+ * tests/vtexi2.test: Likewise.
+ * tests/werror.test: Likewise.
+ * tests/whoami.test: Likewise.
+ * tests/tags.test: Likewise, and avoid to crate an useless dummy
+ header file.
+ * tests/acsilent.test: Likewise, and don't use an easily-avoided
+ command substitution.
+ * tests/unused.test: Likewise, and don't use an easily-avoided
+ command substitution.
+ * tests/version.test: Likewise, and avoid deprecated constructs
+ in the generated `configure.in'.
+ * tests/version2.test: Likewise, and avoid deprecated constructs
+ in the generated `configure.in'.
+
2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Prefer AUTOMAKE_fails over `$AUTOMAKE | grep' in tests.
#! /bin/sh
-# Copyright (C) 1996, 2001, 2002, 2008 Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 2008, 2010 Free Software Foundation,
+# Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat >configure.in <<EOF
AC_INIT
AM_INIT_GUILE_MODULE
AC_SUBST(module)])
END
-$ACLOCAL > output 2>&1 || { cat output; Exit 1; }
-test -z "`cat output`"
+$ACLOCAL >output 2>&1 || { cat output; Exit 1; }
+cat output
+test ! -s output
#! /bin/sh
-# Copyright (C) 2001, 2002, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2006, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# It is ok to have a conditional SUBDIRS when using gettext.
+
required=gettext
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AM_GNU_GETTEXT
AM_CONDITIONAL(MAUDE, true)
endif
END
-$ACLOCAL || Exit 1
+$ACLOCAL
# Gettext wants config.guess etc.
$AUTOMAKE --add-missing
#! /bin/sh
-# Copyright (C) 1996, 2001, 2002, 2007 Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 2007, 2010 Free Software Foundation,
+# Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
dnl This test used to have the following lines, which cannot have
dnl worked sensibly with Autoconf for years, however:
: > Makefile.am
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
grep '^\$1' Makefile.in && Exit 1
-Exit 0
+
+:
#! /bin/sh
-# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat > Makefile.am << 'END'
noinst_HEADERS = iguana.h
END
-: > iguana.h
-
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
grep '^ID:' Makefile.in
#! /bin/sh
-# Copyright (C) 1998, 2002, 2003, 2008 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2002, 2003, 2008, 2010 Free Software Foundation,
+# Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test for failing check for unused macros. From Johan Danielsson.
+
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
MACRO_1
MACRO_1_2
AC_DEFUN([MACRO_1_2_3], echo 123)
END
-$ACLOCAL 2> stderr || { cat stderr >&2; Exit 1; }
-test -z "`cat stderr`"
+$ACLOCAL 2>stderr || { cat stderr >&2; Exit 1; }
+cat stderr >&2
+test ! -s stderr
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat > Makefile.am << 'END'
MY_FLAGS_1=-DABC=345
MY_FLAGS_2= -DABC=345
MY_FLAGS_4 = -DABC=345
END
-$ACLOCAL || Exit 1
+$ACLOCAL
$AUTOMAKE
#! /bin/sh
-# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE([sh-utils], [1.12o])
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
END
: > Makefile.am
: > ChangeLog
: > THANKS
-$ACLOCAL || Exit 1
+$ACLOCAL
$AUTOMAKE --gnits
#! /bin/sh
-# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1997, 2001, 2002, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat > configure.in << 'END'
AC_INIT
-AM_INIT_AUTOMAKE([sh-utils], 1.12o, no)
-AC_OUTPUT(Makefile)
+AM_INIT_AUTOMAKE([sh-utils], [1.12o], [no])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
END
: > Makefile.am
: > ChangeLog
: > THANKS
-$ACLOCAL || Exit 1
+$ACLOCAL
$AUTOMAKE --gnits
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = 1.4-p3
END
-$ACLOCAL || Exit 1
+$ACLOCAL
$AUTOMAKE
#! /bin/sh
-# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat > Makefile.am << 'END'
VPATH = zardoz
END
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
grep 'VPATH.*@srcdir@' Makefile.in && Exit 1
Exit 0
#! /bin/sh
-# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 2001, 2002, 2010 Free Software Foundation,
+# Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
cat > Makefile.am << 'END'
info_TEXINFOS = zardoz.texi
END
: > mdate-sh
: > texinfo.tex
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
grep '^zardoz\.dvi:' Makefile.in
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. ./defs || Exit 1
+set -e
+
: > Makefile.am
rm -f install-sh depcomp missing mkinstalldirs
-$ACLOCAL || Exit 1
+$ACLOCAL
$AUTOMAKE --Werror --add-missing
#! /bin/sh
-# Copyright (C) 1998, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2002, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Test to make sure aclocal doesn't barf on "WHO_AM_I=...". Report
# from Johan Danielsson (and a very nice bug report, too, I might
# add).
+
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
WHO_AM_I=17
END