Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make: sort files in coverage report alphabetically



details:   https://anonhg.NetBSD.org/src/rev/258cd80dfc87
branches:  trunk
changeset: 376469:258cd80dfc87
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Jun 19 20:14:45 2023 +0000

description:
make: sort files in coverage report alphabetically

diffstat:

 usr.bin/make/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 6eed0f5e7745 -r 258cd80dfc87 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Mon Jun 19 20:07:35 2023 +0000
+++ b/usr.bin/make/Makefile     Mon Jun 19 20:14:45 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.124 2023/06/03 09:09:17 lukem Exp $
+#      $NetBSD: Makefile,v 1.125 2023/06/19 20:14:45 rillig Exp $
 #      @(#)Makefile    5.2 (Berkeley) 12/28/90
 
 PROG=  make
@@ -143,7 +143,8 @@ report-coverage: .PHONY
        @echo 'covered  uncovered  file'
        @${GCOV} ${GCOV_OPTS} *.gcda \
        | perl -ne ${GCOV_PERL:Q} \
-       | sort -nr
+       | sort -r -k4 \
+       | sort -nr -k1
        @sed -i 's,^\([^:]*\): *[0-9]*:,\1: ,' *.gcov
 .endif
 



Home | Main Index | Thread Index | Old Index