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 # Check test counts in the testsuite summary.
21 use_colors=no; use_vpath=no
22 . testsuite-summary-checks.sh
28 Testsuite summary for GNU AutoFoo 7.1
36 Please report to bug-automake@gnu.org
77 # Some simpler checks, with low or moderate number of tests.
79 do_check skip.t skip2.t skip3.t xfail.t xfail2.t <<END
91 do_check pass.t pass2.t xfail.t xpass.t error.t error2.t <<END
111 pass=$(seq_ 1 $pass_count | sed 's/.*/pass-&.t/')
112 skip=$(seq_ 1 $skip_count | sed 's/.*/skip-&.t/')
113 xfail=$(seq_ 1 $xfail_count | sed 's/.*/xfail-&.t/')
114 fail=$(seq_ 1 $fail_count | sed 's/.*/fail-&.t/')
115 xpass=$(seq_ 1 $xpass_count | sed 's/.*/xpass-&.t/')
116 error=$(seq_ 1 $error_count | sed 's/.*/error-&.t/')
118 do_check $pass $skip $xfail $fail $xpass $error <<END
120 # TOTAL: $tests_count
123 # XFAIL: $xfail_count
125 # XPASS: $xpass_count
126 # ERROR: $error_count
130 # Mild stress test with a lot of test scripts.
140 pass=$(seq_ 1 $pass_count | sed 's/.*/pass-&.t/')
141 skip=$(seq_ 1 $skip_count | sed 's/.*/skip-&.t/')
142 xfail=$(seq_ 1 $xfail_count | sed 's/.*/xfail-&.t/')
143 fail=$(seq_ 1 $fail_count | sed 's/.*/fail-&.t/')
144 xpass=$(seq_ 1 $xpass_count | sed 's/.*/xpass-&.t/')
145 error=$(seq_ 1 $error_count | sed 's/.*/error-&.t/')
147 do_check $pass $skip $xfail $fail $xpass $error <<END
149 # TOTAL: $tests_count
152 # XFAIL: $xfail_count
154 # XPASS: $xpass_count
155 # ERROR: $error_count