Mercurial > jwe > octave
annotate test/show-failures.awk @ 31161:6f4c8063b4c2 stable
GitHub-CI: Remove macos-10.15 runners from build matrix.
* .github/workflow/make.yaml (macos): GitHub-hosted runners for macos-10.15 are
being deprecated. Remove them from build matrix. See also:
https://github.com/actions/virtual-environments/issues/5583
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 27 Jul 2022 18:30:15 +0200 |
parents | 796f54d4ddbf |
children |
rev | line source |
---|---|
23285
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
1 #! /usr/bin/awk -f |
29362
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
2 |
27928
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
3 ######################################################################## |
29362
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
4 ## |
30569
796f54d4ddbf
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
29363
diff
changeset
|
5 ## Copyright (C) 2016-2022 The Octave Project Developers |
29362
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
6 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
7 ## See the file COPYRIGHT.md in the top-level directory of this |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
8 ## distribution or <https://octave.org/copyright/>. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
9 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
10 ## This file is part of Octave. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
11 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
12 ## Octave is free software: you can redistribute it and/or modify it |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
13 ## under the terms of the GNU General Public License as published by the |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
14 ## Free Software Foundation, either version 3 of the License, or (at |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
15 ## your option) any later version. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
16 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
17 ## Octave is distributed in the hope that it will be useful, but WITHOUT |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
18 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
19 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
20 ## for more details. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
21 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
22 ## You should have received a copy of the GNU General Public License |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
23 ## along with Octave; see the file COPYING. If not, see |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
24 ## <https://www.gnu.org/licenses/>. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
27928
diff
changeset
|
25 ## |
27928
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27924
diff
changeset
|
26 ######################################################################## |
23285
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
27 |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
28 BEGIN { |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
29 buf = ""; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
30 limit_output = 0; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
31 line = 0; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
32 line_limit = 32; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
33 } |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
34 ## Make the decision to print or not when we get to the next file |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
35 /^>>>>> |^Files with no tests:/ { |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
36 print buf; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
37 |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
38 buf = ""; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
39 line = 0; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
40 limit_output = 0; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
41 } |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
42 ## The first line of the output from a failing test |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
43 /^\*\*\*\*\* / { |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
44 line = 0; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
45 limit_output = 0; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
46 } |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
47 /^!!!!! known (bug|failure)|^----- skipped test/ { |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
48 limit_output = 1; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
49 } |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
50 ## Accumulate all lines that display the test code and up to line_limit |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
51 ## lines of output from failed test. |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
52 { |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
53 if (buf == "") |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
54 { |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
55 buf = $0; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
56 } |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
57 else |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
58 { |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
59 if (limit_output) |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
60 { |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
61 if (line < line_limit) |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
62 buf = buf "\n" $0; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
63 else if (line == line_limit) |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
64 buf = buf "\n[skipping remaining output]"; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
65 |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
66 line++; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
67 } |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
68 else |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
69 buf = buf "\n" $0; |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
70 } |
feaf0b0e0b1f
test: filter fntests.log when running make check with V=1
Mike Miller <mtmiller@octave.org>
parents:
diff
changeset
|
71 } |