From: Stefano Lattarini Date: Fri, 9 Mar 2012 20:35:04 +0000 (+0100) Subject: coverage: expose automake bug#10975 X-Git-Tag: v1.11.3b~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=370e5775c20872a8f2b5c1e520b31dc1544b9cd8;p=thirdparty%2Fautomake.git coverage: expose automake bug#10975 * tests/dist-pr10975.test: New test. * tests/list-of-tests.mk: Add it. * tests/Makefile.am (XFAIL_TESTS): Likewise. --- diff --git a/tests/Makefile.am b/tests/Makefile.am index d909942db..b8ede3086 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -23,6 +23,7 @@ auxdir2.test \ cond17.test \ dist-auxfile.test \ dist-auxfile-2.test \ +dist-pr109765.test \ gcj6.test \ java-nobase.test \ objext-pr10128.test \ diff --git a/tests/dist-pr109765.test b/tests/dist-pr109765.test new file mode 100755 index 000000000..d656d56f9 --- /dev/null +++ b/tests/dist-pr109765.test @@ -0,0 +1,44 @@ +#! /bin/sh +# Copyright (C) 2012 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 2, 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 . + +# Expose automake bug#10975: when several "dist-*" targets are invoked +# on the make command line, the first one ends up removing the distdir, +# so that the latter ones fail. + +required=bzip2 +. ./defs || Exit 1 + +set -e + +echo AC_OUTPUT >> configure.in +: > Makefile.am + +$ACLOCAL || fatal_ "aclocal failed" +$AUTOCONF || fatal_ "autoconf failed" +$AUTOMAKE || fatal_ "automake failed" + +./configure +$MAKE dist-gzip dist-bzip2 + +gzip -dc $distdir.tar.gz | tar tf - > one || { cat one; Exit 1; } +cat one +bzip2 -dc $distdir.tar.gz | tar tf - > two || { cat two; Exit 1; } +cat two + +$FGREP "$distdir/Makefile.am" one +diff one two + +: diff --git a/tests/list-of-tests.mk b/tests/list-of-tests.mk index 420b56bf8..023bf3bc6 100644 --- a/tests/list-of-tests.mk +++ b/tests/list-of-tests.mk @@ -332,6 +332,7 @@ dist-included-parent-dir.test \ dist-missing-am.test \ dist-missing-included-m4.test \ dist-missing-m4.test \ +dist-pr109765.test \ distcleancheck.test \ distcom2.test \ distcom3.test \