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 coloring of the testsuite summary.
24 . testsuite-summary-checks.sh
39 ${grn}Testsuite summary for GNU AutoFoo 7.1${std}
42 success_footer
=${grn}${br}${std}
46 ${red}Testsuite summary for GNU AutoFoo 7.1${std}
51 ${red}See ./test-suite.log${std}
52 ${red}Please report to bug-automake@gnu.org${std}
69 ${brg}# TOTAL: 1${std}
81 ${brg}# TOTAL: 1${std}
91 do_check xfail.t
<<END
93 ${brg}# TOTAL: 1${std}
96 ${lgn}# XFAIL: 1${std}
103 do_check fail.t
<<END
105 ${brg}# TOTAL: 1${std}
109 ${red}# FAIL: 1${std}
115 do_check xpass.t
<<END
117 ${brg}# TOTAL: 1${std}
122 ${red}# XPASS: 1${std}
127 do_check error.t
<<END
129 ${brg}# TOTAL: 1${std}
135 ${mgn}# ERROR: 1${std}
139 do_check pass.t xfail.t skip.t
<<END
141 ${brg}# TOTAL: 3${std}
142 ${grn}# PASS: 1${std}
143 ${blu}# SKIP: 1${std}
144 ${lgn}# XFAIL: 1${std}
151 do_check pass.t fail.t skip.t
<<END
153 ${brg}# TOTAL: 3${std}
154 ${grn}# PASS: 1${std}
155 ${blu}# SKIP: 1${std}
157 ${red}# FAIL: 1${std}
163 do_check pass.t xfail.t xpass.t
<<END
165 ${brg}# TOTAL: 3${std}
166 ${grn}# PASS: 1${std}
168 ${lgn}# XFAIL: 1${std}
170 ${red}# XPASS: 1${std}
175 do_check skip.t xfail.t error.t
<<END
177 ${brg}# TOTAL: 3${std}
179 ${blu}# SKIP: 1${std}
180 ${lgn}# XFAIL: 1${std}
183 ${mgn}# ERROR: 1${std}
187 do_check pass.t skip.t xfail.t fail.t xpass.t error.t
<<END
189 ${brg}# TOTAL: 6${std}
190 ${grn}# PASS: 1${std}
191 ${blu}# SKIP: 1${std}
192 ${lgn}# XFAIL: 1${std}
193 ${red}# FAIL: 1${std}
194 ${red}# XPASS: 1${std}
195 ${mgn}# ERROR: 1${std}