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 the global testsuite log file referenced in the testsuite
18 # summary and in the global testsuite log itself is correct.
22 mv configure.ac configure.stub
30 cat configure.stub
- > configure.ac
<<'END'
34 cat > Makefile.am
<< 'END'
35 TEST_SUITE_LOG
= my_test_suite.log
48 $MAKE check
>stdout
&& { cat stdout
; exit 1; }
50 grep '^See \./my_test_suite\.log$' stdout
53 TEST_SUITE_LOG
=bar
/bar.log
$MAKE -e check
>stdout
&& { cat stdout
; exit 1; }
55 grep '^See \./bar/bar\.log$' stdout
59 echo SUBDIRS
= sub
> Makefile.am
61 echo TESTS
= fail
> sub
/Makefile.am
64 cat configure.stub
- > configure.ac
<<'END'
65 AC_CONFIG_FILES([sub/Makefile])
74 $MAKE check
>stdout
&& { cat stdout
; exit 1; }
76 grep '^See sub/test-suite\.log$' stdout
78 $MAKE check
>stdout
&& { cat stdout
; exit 1; }
80 grep '^See sub/test-suite\.log$' stdout
83 TEST_SUITE_LOG
=foo.log
$MAKE -e check
>stdout
&& { cat stdout
; exit 1; }
85 grep '^See sub/foo\.log$' stdout