Commit aa7710cb by Andrew Burgess Committed by Andrew Burgess

contrib: Add KPASS support to dg-extract-results.{sh,py}

Extend dg-extract-results.sh and dg-extract-results.py to support the
KPASS test result status.  This is required by GDB which uses a copy
of the dg-extract-results.{sh,py} scripts that it tries to keep in
sync with GCC.

ChangeLog:

        * contrib/dg-extract-results.sh: Add support for KPASS.
        * contrib/dg-extract-results.py: Likewise.

From-SVN: r277260
parent 30c0d1e3
2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
* contrib/dg-extract-results.sh: Add support for KPASS.
* contrib/dg-extract-results.py: Likewise.
2019-10-17 Jason Merrill <jason@redhat.com> 2019-10-17 Jason Merrill <jason@redhat.com>
* .gitattributes: Avoid {} in filename pattern. * .gitattributes: Avoid {} in filename pattern.
......
...@@ -117,7 +117,7 @@ class Prog: ...@@ -117,7 +117,7 @@ class Prog:
self.tool_re = re.compile (r'^\t\t=== (.*) tests ===$') self.tool_re = re.compile (r'^\t\t=== (.*) tests ===$')
self.result_re = re.compile (r'^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED' self.result_re = re.compile (r'^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED'
r'|WARNING|ERROR|UNSUPPORTED|UNTESTED' r'|WARNING|ERROR|UNSUPPORTED|UNTESTED'
r'|KFAIL):\s*(.+)') r'|KFAIL|KPASS):\s*(.+)')
self.completed_re = re.compile (r'.* completed at (.*)') self.completed_re = re.compile (r'.* completed at (.*)')
# Pieces of text to write at the head of the output. # Pieces of text to write at the head of the output.
# start_line is a pair in which the first element is a datetime # start_line is a pair in which the first element is a datetime
......
...@@ -326,7 +326,7 @@ BEGIN { ...@@ -326,7 +326,7 @@ BEGIN {
} }
} }
/^\t\t=== .* ===$/ { curvar = ""; next } /^\t\t=== .* ===$/ { curvar = ""; next }
/^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED|WARNING|ERROR|UNSUPPORTED|UNTESTED|KFAIL):/ { /^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED|WARNING|ERROR|UNSUPPORTED|UNTESTED|KFAIL|KPASS):/ {
testname=\$2 testname=\$2
# Ugly hack for gfortran.dg/dg.exp # Ugly hack for gfortran.dg/dg.exp
if ("$TOOL" == "gfortran" && testname ~ /^gfortran.dg\/g77\//) if ("$TOOL" == "gfortran" && testname ~ /^gfortran.dg\/g77\//)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment