docs: deprecate .log -> .html conversion by parallel-tests
[automake.git] / tests / depcomp8b.test
blobd36e75462cd298d289b624ff0c82ec6514afcfbb
1 #! /bin/sh
2 # Copyright (C) 2010, 2011 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test for regressions in computation of names of .Plo files for
18 # automatic dependency tracking.
19 # Keep this in sync with sister test `depcomp8a.test', which checks the
20 # same thing for non-libtool objects.
22 required=libtoolize
23 . ./defs || Exit 1
25 set -e
27 cat >> configure.in << 'END'
28 AC_PROG_CC
29 AC_PROG_LIBTOOL
30 AC_OUTPUT
31 END
33 cat > Makefile.am << 'END'
34 lib_LTLIBRARIES = libzardoz.la
35 libzardoz_la_SOURCES = foo.c sub/bar.c
36 END
38 mkdir sub
39 echo 'extern int foo = 0;' > foo.c
40 echo 'extern int bar = 0;' > sub/bar.c
42 libtoolize
44 $ACLOCAL
45 $AUTOMAKE -a
46 grep include Makefile.in # for debugging
47 grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
48 grep 'include.*\./\$(DEPDIR)/bar\.P' Makefile.in
49 grep 'include.*/\./\$(DEPDIR)' Makefile.in && Exit 1
51 $AUTOCONF
52 # Don't reject slower dependency extractors, for better coverage.
53 ./configure --enable-dependency-tracking
54 $MAKE
55 DISTCHECK_CONFIGURE_FLAGS='--enable-dependency-tracking' $MAKE distcheck
57 # Try again with subdir-objects option.
59 echo AM_PROG_CC_C_O >> configure.in
60 echo AUTOMAKE_OPTIONS = subdir-objects >> Makefile.am
62 $ACLOCAL
63 $AUTOMAKE -a
64 grep include Makefile.in # for debugging
65 grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
66 grep 'include.*[^a-zA-Z0-9_/]sub/\$(DEPDIR)/bar\.P' Makefile.in
67 $EGREP 'include.*/(\.|sub)/\$\(DEPDIR\)' Makefile.in && Exit 1
69 $AUTOCONF
70 # Don't reject slower dependency extractors, for better coverage.
71 ./configure --enable-dependency-tracking
72 $MAKE
73 DISTCHECK_CONFIGURE_FLAGS='--enable-dependency-tracking' $MAKE distcheck