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)
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 # Check coloring of the testsuite summary.
21 use_colors
=yes; use_vpath
=no
22 . testsuite-summary-checks.sh
37 ${grn}Testsuite summary for GNU AutoFoo 7.1${std}
40 success_footer
=${grn}${br}${std}
44 ${red}Testsuite summary for GNU AutoFoo 7.1${std}
49 $failure_footer_text_colorized
66 ${brg}# TOTAL: 1${std}
78 ${brg}# TOTAL: 1${std}
88 do_check xfail.t
<<END
90 ${brg}# TOTAL: 1${std}
93 ${lgn}# XFAIL: 1${std}
100 do_check fail.t
<<END
102 ${brg}# TOTAL: 1${std}
106 ${red}# FAIL: 1${std}
112 do_check xpass.t
<<END
114 ${brg}# TOTAL: 1${std}
119 ${red}# XPASS: 1${std}
124 do_check error.t
<<END
126 ${brg}# TOTAL: 1${std}
132 ${mgn}# ERROR: 1${std}
136 do_check pass.t xfail.t skip.t
<<END
138 ${brg}# TOTAL: 3${std}
139 ${grn}# PASS: 1${std}
140 ${blu}# SKIP: 1${std}
141 ${lgn}# XFAIL: 1${std}
148 do_check pass.t fail.t skip.t
<<END
150 ${brg}# TOTAL: 3${std}
151 ${grn}# PASS: 1${std}
152 ${blu}# SKIP: 1${std}
154 ${red}# FAIL: 1${std}
160 do_check pass.t xfail.t xpass.t
<<END
162 ${brg}# TOTAL: 3${std}
163 ${grn}# PASS: 1${std}
165 ${lgn}# XFAIL: 1${std}
167 ${red}# XPASS: 1${std}
172 do_check skip.t xfail.t error.t
<<END
174 ${brg}# TOTAL: 3${std}
176 ${blu}# SKIP: 1${std}
177 ${lgn}# XFAIL: 1${std}
180 ${mgn}# ERROR: 1${std}
184 do_check pass.t skip.t xfail.t fail.t xpass.t error.t
<<END
186 ${brg}# TOTAL: 6${std}
187 ${grn}# PASS: 1${std}
188 ${blu}# SKIP: 1${std}
189 ${lgn}# XFAIL: 1${std}
190 ${red}# FAIL: 1${std}
191 ${red}# XPASS: 1${std}
192 ${mgn}# ERROR: 1${std}