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/>.
17 # TAP result lines whose description is a number.
23 # Some random numbers to be used as test names. The definitions below are
24 # selected so that $x<n> != <n> for every n >= 1. We can't use positional
25 # parameters for this unfortunately, since Solaris 10 /bin/sh doesn't allow
26 # the dereferencing of parameters from ${10} onwards.
27 x1=5 x2=7 x3=45 x4=11 x5=7 x6=3 x7=6 x8=9 x9=1000 x10=1
44 PASS: all.test 1 ${x1}
45 PASS: all.test 2 - ${x2}
46 FAIL: all.test 3 ${x3}
47 FAIL: all.test 4 - ${x4}
48 SKIP: all.test 5 ${x5} # SKIP
49 SKIP: all.test 6 - ${x6} # SKIP
50 XFAIL: all.test 7 ${x7} # TODO
51 XFAIL: all.test 8 - ${x8} # TODO
52 XPASS: all.test 9 ${x9} # TODO
53 XPASS: all.test 10 - ${x10} # TODO
56 run_make -O -e FAIL check
57 count_test_results total=10 pass=2 fail=2 xpass=2 xfail=2 skip=2 error=0
59 $FGREP ': all.test' stdout > got