diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2017-06-20 16:52:53 +0000 |
---|---|---|
committer | Thomas Preud'homme <thopre01@gcc.gnu.org> | 2017-06-20 16:52:53 +0000 |
commit | afc474f8ca3104009a738e29b03ca129a1eea1ac (patch) | |
tree | 1156f835051731a2a63300d41c5bd48315427ca4 /contrib | |
parent | d276da0cf5bff87311330b395d3918b569bbbcc3 (diff) | |
download | gcc-afc474f8ca3104009a738e29b03ca129a1eea1ac.zip gcc-afc474f8ca3104009a738e29b03ca129a1eea1ac.tar.gz gcc-afc474f8ca3104009a738e29b03ca129a1eea1ac.tar.bz2 |
Support multi-tool sum files in dg-cmp-results.sh
2017-06-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
contrib/
* dg-cmp-results.sh: Keep test result lines rather than throwing
header and summary to support sum files with multiple tools.
From-SVN: r249422
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 5 | ||||
-rwxr-xr-x | contrib/dg-cmp-results.sh | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index e2cbd79..180b6f3 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +2017-06-20 Thomas Preud'homme <thomas.preudhomme@arm.com> + + * dg-cmp-results.sh: Keep test result lines rather than throwing + header and summary to support sum files with multiple tools. + 2017-05-31 Martin Liska <mliska@suse.cz> * filter_params.py: diff --git a/contrib/dg-cmp-results.sh b/contrib/dg-cmp-results.sh index d291769..921e933 100755 --- a/contrib/dg-cmp-results.sh +++ b/contrib/dg-cmp-results.sh @@ -90,8 +90,7 @@ echo "Newer log file: $NFILE" sed $E -e '/^[[:space:]]+===/,$d' $NFILE # Create a temporary file from the old file's interesting section. -sed $E -e "1,/$header/d" \ - -e '/^[[:space:]]+===/,$d' \ +sed $E -e '/^Running target /,/^[[:space:]]+===.*Summary ===/!d' \ -e '/^[A-Z]+:/!d' \ -e '/^(WARNING|ERROR):/d' \ -e 's/\r$//' \ @@ -101,8 +100,7 @@ sed $E -e "1,/$header/d" \ >/tmp/o$$-$OBASE # Create a temporary file from the new file's interesting section. -sed $E -e "1,/$header/d" \ - -e '/^[[:space:]]+===/,$d' \ +sed $E -e '/^Running target /,/^[[:space:]]+===.*Summary ===/!d' \ -e '/^[A-Z]+:/!d' \ -e '/^(WARNING|ERROR):/d' \ -e 's/\r$//' \ |