diff options
author | Andrew Burgess <aburgess@redhat.com> | 2025-06-23 16:32:28 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2025-07-05 11:20:45 +0100 |
commit | 1fe6ffd81e76a2799add18d9e1d5208a90c21ece (patch) | |
tree | 7b46e15b33fdf34199dfa2ae6c7c3126cf5222d5 | |
parent | a42172797ce96b4f01628d27003bba0ee56a17d9 (diff) | |
download | binutils-1fe6ffd81e76a2799add18d9e1d5208a90c21ece.zip binutils-1fe6ffd81e76a2799add18d9e1d5208a90c21ece.tar.gz binutils-1fe6ffd81e76a2799add18d9e1d5208a90c21ece.tar.bz2 |
gdb: create gdb.sum/gdb.log summary after using check-all-boards
Use the contrib/dg-extract-results.sh script to create a gdb.sum and
gdb.log summary after running the check-all-boards make target.
Having the results from all the boards merged into a single file
isn't (maybe) the most useful, but it isn't a bad thing. However, the
great thing about merge the results is that the totals are also
merged.
The 'check-all-boards' recipe can then extract these totals, just as
we do for the normal 'check' recipe, this makes is much easier to
spot if there are any unexpected failures when using
'check-all-boards'.
Reviewed-By: Keith Seitz <keiths@redhat.com>
-rw-r--r-- | gdb/testsuite/Makefile.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in index 4a6665d..fa2d9eb 100644 --- a/gdb/testsuite/Makefile.in +++ b/gdb/testsuite/Makefile.in @@ -386,7 +386,17 @@ check-all-boards: all $(abs_builddir)/site.exp ${abs_srcdir}/make-check-all.sh --keep-results \ --host-user "$(GDB_HOST_USERNAME)" \ --target-user "$(GDB_TARGET_USERNAME)" \ - "$(TESTS)" + "$(TESTS)" \ + result=$$?; \ + if test -d check-all; then \ + $(SHELL) $(srcdir)/../../contrib/dg-extract-results.sh \ + `find check-all -name gdb.sum -print` > check-all/gdb.sum; \ + $(SHELL) $(srcdir)/../../contrib/dg-extract-results.sh -L \ + `find check-all -name gdb.log -print` > check-all/gdb.log; \ + sed -n '/=== gdb Summary ===/,$$ p' check-all/gdb.sum; \ + fi; \ + exit $$result + force:; |