]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: create gdb.sum/gdb.log summary after using check-all-boards
authorAndrew Burgess <aburgess@redhat.com>
Mon, 23 Jun 2025 15:32:28 +0000 (16:32 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Sat, 5 Jul 2025 10:20:45 +0000 (11:20 +0100)
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>
gdb/testsuite/Makefile.in

index 4a6665d4483c1f8b5726722ef90ef9d558c59610..fa2d9eb8c0ebb4fce01422c814f3207a417d80f1 100644 (file)
@@ -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:;