2 # Copyright (C) 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)
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 # Check regression of parallel-tests:
18 # - `test-driver' script not correctly distributed when TESTS is
19 # defined in a subdir Makefile
24 cat >> configure.
in << 'END'
25 AC_CONFIG_FILES
([tests
/Makefile
])
29 rm -f depcomp
# It's unneeded.
33 cat > Makefile.am
<< 'END'
37 ls -l $
(distdir
) $
(distdir
)/* ;: For debugging.
38 test -f $
(distdir
)/test-driver
42 cat > tests
/Makefile.am
<< 'END'
45 echo ' ' $
(DIST_COMMON
) ' ' |
grep '[ /]test-driver '
50 cat > tests
/foo.
test << 'END'
54 chmod a
+x
tests
/foo.
test
61 cd tests
; $MAKE test-sub
; cd ..
;
64 # Try again, with a `config_auxdir' != `.' this time.
69 mv missing install-sh test-driver build-aux
72 sed 's|test-driver|build-aux/test-driver|' $d/Makefile.am
> $d/t
73 mv -f $d/t
$d/Makefile.am
74 cat $d/Makefile.am
# For debugging.
77 # Extra newline possibly required by OpenBSD 3.9 sed, see the autoconf
80 AC_CONFIG_AUX_DIR([build-aux])
83 cat configure.
in # For debugging.
85 touch aclocal.
m4 # To avoid useless remakes.
90 cd tests
; $MAKE test-sub
; cd ..
;