2 # Copyright (C) 2011-2018 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 ${red}See ./test-suite.log${std}
50 ${red}Please report to bug-automake@gnu.org${std}
67 ${brg}# TOTAL: 1${std}
79 ${brg}# TOTAL: 1${std}
89 do_check xfail.t
<<END
91 ${brg}# TOTAL: 1${std}
94 ${lgn}# XFAIL: 1${std}
101 do_check fail.t
<<END
103 ${brg}# TOTAL: 1${std}
107 ${red}# FAIL: 1${std}
113 do_check xpass.t
<<END
115 ${brg}# TOTAL: 1${std}
120 ${red}# XPASS: 1${std}
125 do_check error.t
<<END
127 ${brg}# TOTAL: 1${std}
133 ${mgn}# ERROR: 1${std}
137 do_check pass.t xfail.t skip.t
<<END
139 ${brg}# TOTAL: 3${std}
140 ${grn}# PASS: 1${std}
141 ${blu}# SKIP: 1${std}
142 ${lgn}# XFAIL: 1${std}
149 do_check pass.t fail.t skip.t
<<END
151 ${brg}# TOTAL: 3${std}
152 ${grn}# PASS: 1${std}
153 ${blu}# SKIP: 1${std}
155 ${red}# FAIL: 1${std}
161 do_check pass.t xfail.t xpass.t
<<END
163 ${brg}# TOTAL: 3${std}
164 ${grn}# PASS: 1${std}
166 ${lgn}# XFAIL: 1${std}
168 ${red}# XPASS: 1${std}
173 do_check skip.t xfail.t error.t
<<END
175 ${brg}# TOTAL: 3${std}
177 ${blu}# SKIP: 1${std}
178 ${lgn}# XFAIL: 1${std}
181 ${mgn}# ERROR: 1${std}
185 do_check pass.t skip.t xfail.t fail.t xpass.t error.t
<<END
187 ${brg}# TOTAL: 6${std}
188 ${grn}# PASS: 1${std}
189 ${blu}# SKIP: 1${std}
190 ${lgn}# XFAIL: 1${std}
191 ${red}# FAIL: 1${std}
192 ${red}# XPASS: 1${std}
193 ${mgn}# ERROR: 1${std}