2 # Copyright (C) 2011-2012 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 that auxiliary script 'test-driver' doesn't get needlessly
18 # installed or referenced if it's not used, i.e., if the user has
19 # defined his own '*LOG_DRIVER' variables.
24 cat >> configure.ac <<'END'
26 AC_CONFIG_FILES([sub1/Makefile sub2/Makefile])
27 AC_SUBST([X_LOG_DRIVER], [none])
33 cat > Makefile.am <<'END'
40 cat > sub1/Makefile.am <<'END'
41 TEST_EXTENSIONS = .x .sh .pl
42 SH_LOG_DRIVER = dummy1
43 PL_LOG_DRIVER = dummy2
47 cat > sub2/Makefile.am <<'END'
48 TEST_EXTENSIONS = .bar
51 TESTS = 1 2.bar 3.test 4.t 5.tt $(check_PROGRAMS)
52 check_PROGRAMS = p1 p2$(EXEEXT) p3.bar p4.suf
57 for opts in '' '--add-missing' '-a -c'; do
59 $FGREP test-driver Makefile.in sub[12]/Makefile.in && Exit 1
60 find . | $FGREP test-driver && Exit 1
61 : For shells with busted 'set -e'.