2 # Copyright (C) 2011-2013 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/>.
18 # - option '--diagnostic-string' to customize the string introducing
25 cat >> configure.ac <<END
29 cat > Makefile.am << 'END'
30 my_log_driver = $(srcdir)/tap-driver
38 # Quoting our comments below is an hack required to keep
39 # comments near the things they refer to.
46 '## A non-alphabetic character' \
48 '## Some metacharacters (we need to repeat the "$" for make)' \
50 '## A whitespace character' \
52 '## A tab character' \
54 '## A string with more whitespace' \
55 " ${tab}a b${tab} c" \
56 '## Note the we do not have the empty string here. We prefer to' \
57 '## leave its behaviour in this context undefined for the moment.'
59 case $string in '##'*) continue;; esac
61 unindent >> Makefile.am << END
62 TEST_EXTENSIONS += .t$i
64 T${i}_LOG_COMPILER = \$(my_log_compiler)
65 T${i}_LOG_DRIVER = \$(my_log_driver)
66 AM_T${i}_LOG_DRIVER_FLAGS = \
68 --diagnostic-string '$string'
70 unindent > foo$i.t$i <<END
75 echo "AM_T${i}_LOG_DRIVER_FLAGS = --no-comments" >> later.mk
85 count_test_results total=$i pass=$i fail=0 xpass=0 xfail=0 skip=0 error=0
87 cat later.mk >> Makefile
89 $FGREP 'blah blah' stdout && exit 1