Hi,

When debugging tests, it is useful to see the target name and which
output belongs to it.  A lot of my tests have echo lines, but I
think this is better done in the framework.  Then all tests behave
simmilar.  I would remove the echos from the Makefiles afterwards.

ok?

bluhm

Index: share/mk/bsd.regress.mk
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/share/mk/bsd.regress.mk,v
retrieving revision 1.21
diff -u -p -r1.21 bsd.regress.mk
--- share/mk/bsd.regress.mk     17 Jun 2019 17:20:24 -0000      1.21
+++ share/mk/bsd.regress.mk     16 Dec 2020 15:33:04 -0000
@@ -84,6 +84,7 @@ regress: .SILENT
        rm -f ${REGRESS_SETUP_ONCE:S/^/stamp-/}
 .endif
 .for RT in ${REGRESS_TARGETS}
+       echo '==== ${RT} ===='
 .  if ${REGRESS_SKIP_TARGETS:M${RT}}
        echo -n "SKIP " ${_REGRESS_OUT}
        echo SKIPPED
@@ -106,9 +107,12 @@ regress: .SILENT
        fi
 .  endif
        echo ${_REGRESS_NAME}/${RT:S/^run-regress-//} ${_REGRESS_OUT}
+       echo
 .endfor
 .for RT in ${REGRESS_CLEANUP}
+       echo '==== ${RT} ===='
        ${MAKE} -C ${.CURDIR} ${RT}
+       echo
 .endfor
        rm -f ${REGRESS_SETUP_ONCE:S/^/stamp-/}
 

Reply via email to