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/>.
18 # - TODO and SKIP directives are case-insensitive
19 # - TODO and SKIP directives can be followed optionally by a colon ":"
20 # and by an optional explanation.
21 # - our driver isn't fooled into recognizing TODO and SKIP directives
23 # - the reasons for TODO and SKIP, if present, are nicely printed in
24 # the testsuite progress output
30 # ----------------------------------------------------- #
31 # Check all possible combinations of: #
32 # - uppercase/lowercase #
33 # - with/without colon character ":" #
34 # - with/without explanatory message #
35 # in TODO and SKIP directives. #
36 # ----------------------------------------------------- #
38 # There are 2 * 2^6 + 2 * 2^6 = 256 tests.
39 echo 1.
.256 > all.
test
41 # These nested loops are clearer without indentation.
47 for ex
in '' ':' ' foo' ': foo'; do
48 echo "not ok # $c1$c2$c3$c4$ex"
49 echo "not ok# $c1$c2$c3$c4$ex"
50 done; done; done; done; done >> all.
test
56 for ex
in '' ':' ' foo' ': foo'; do
57 echo "ok # $c1$c2$c3$c4$ex"
58 echo "ok# $c1$c2$c3$c4$ex"
59 done; done; done; done; done >> all.
test
61 cat all.
test # For debugging.
63 $MAKE check
>stdout ||
{ cat stdout
; exit 1; }
66 count_test_results total
=256 pass
=0 fail
=0 xpass
=0 xfail
=128 skip
=128 error
=0
68 # -------------------------------------------------------- #
69 # TODO ans SKIP directives aren't recognized spuriously. #
70 # -------------------------------------------------------- #
72 cat > all.
test <<'END'
85 $MAKE check
>stdout ||
{ cat stdout
; exit 1; }
88 count_test_results total
=9 pass
=9 fail
=0 xpass
=0 xfail
=0 skip
=0 error
=0