From 99d18f4a8b9ab4fc85e823bddb6ed046e36bf4dc Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Thu, 10 Jan 2008 20:50:02 +0100 Subject: [PATCH] * tests/output-order.test: New test, for the stable output fix. * tests/Makefile.am: Update. --- ChangeLog | 6 +++++ tests/Makefile.am | 1 + tests/Makefile.in | 1 + tests/output-order.test | 52 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100755 tests/output-order.test diff --git a/ChangeLog b/ChangeLog index 766941a30..eef7e2f85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-11 Bruno Haible + Ralf Wildenhues + + * tests/output-order.test: New test, for the stable output fix. + * tests/Makefile.am: Update. + 2008-01-08 Ralf Wildenhues * Makefile.am (dist-hook): New, ensure world-executable tests. diff --git a/tests/Makefile.am b/tests/Makefile.am index 80d3d712a..db40acc9f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -421,6 +421,7 @@ output10.test \ output11.test \ output12.test \ output13.test \ +output-order.test \ overrid.test \ parse.test \ percent.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index dc18babb5..ceff3f404 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -570,6 +570,7 @@ output10.test \ output11.test \ output12.test \ output13.test \ +output-order.test \ overrid.test \ parse.test \ percent.test \ diff --git a/tests/output-order.test b/tests/output-order.test new file mode 100755 index 000000000..e55ef362b --- /dev/null +++ b/tests/output-order.test @@ -0,0 +1,52 @@ +#! /bin/sh +# Copyright (C) 2008 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 +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Test that `automake -a' output order is stable. +# From report by Bruno Haible. + +. ./defs || exit 1 + +set -e + +cat >>configure.in <<'END' +AC_OUTPUT +END + +: >Makefile.am +: >AUTHORS +: >ChangeLog +: >NEWS +: >README + +cat >.autom4te.cfg <<'END' +begin-language: "Autoconf" +args: --no-cache +end-language: "Autoconf" +begin-language: "Autoconf-without-aclocal-m4" +args: --no-cache +end-language: "Autoconf-without-aclocal-m4" +END + +$ACLOCAL +$AUTOCONF +rm -f missing install-sh +$AUTOMAKE --add-missing --copy 2>stderr +cat stderr >&2 + +for i in 1 2 3 4 5 6; do + rm -f missing install-sh INSTALL COPYING + $AUTOMAKE --add-missing --copy 2>&1 >/dev/null | diff - stderr +done -- 2.47.2