doc: typos in test file.
[automake.git] / t / test-missing2.sh
blobadba8b56ba85f48bdc775092314327a029bc26d4
1 #! /bin/sh
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)
7 # any later version.
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 # parallel-tests:
18 # - non-existent scripts listed in TESTS get diagnosed, even when
19 # all the $(TEST_LOGS) have a dummy dependency.
20 # See also related test 'test-missing.sh'.
22 . test-init.sh
24 cat >> configure.ac << 'END'
25 AC_OUTPUT
26 END
28 cat > Makefile.am << 'END'
29 TESTS = foobar1.test foobar2.test
30 $(TEST_LOGS):
31 END
33 $ACLOCAL
34 $AUTOCONF
35 $AUTOMAKE -a
37 ./configure
39 $MAKE foobar1.log foobar2.log || exit 99
40 test ! -e foobar1.log || exit 99
41 test ! -e foobar1.trs || exit 99
42 test ! -e foobar2.log || exit 99
43 test ! -e foobar2.trs || exit 99
45 run_make -e FAIL -M check
46 grep 'test-suite\.log.*foobar1\.log' output
47 grep 'test-suite\.log.*foobar1\.trs' output
48 grep 'test-suite\.log.*foobar2\.log' output
49 grep 'test-suite\.log.*foobar2\.trs' output
50 test ! -e test-suite.log