2 # Copyright (C) 2011-2024 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 <https://www.gnu.org/licenses/>.
17 # Check that we can override the "Testsuite summary" header line,
22 use_colors
=no
; use_vpath
=no
23 . testsuite-summary-checks.sh
27 # Cut down from do_check in ax/testsuite-summary-checks.sh
28 # so that we can pass a make variable setting in $1.
33 run_make
-O -e IGNORE check
"$1"
34 test $am_make_rc -eq 0 ||
exit 1
35 $PERL "$am_testaux_srcdir"/extract-testsuite-summary.pl stdout
>summary.got \
36 || fatal_
"cannot extract testsuite summary"
40 $compare summary.exp summary.got ||
exit 1
43 # We don't actually run any tests, only interested in the header line.
58 Testsuite summary for GNU AutoFoo 7.1
61 do_header_check
'junkvar=junkval' <<END
67 # Elide the "for $(PACKAGE_STRING)".
73 do_header_check
'AM_TESTSUITE_SUMMARY_HEADER=""' <<END
82 Testsuite summary for GNU AutoFoo 7.1 (hi)
85 do_header_check
'AM_TESTSUITE_SUMMARY_HEADER=" for $(PACKAGE_STRING) (hi)"' <<END