2 Oct 2006 20:06
Adding a "make regress" target
Alan Barrett <apb <at> cequrux.com>
2006-10-02 18:06:41 GMT
2006-10-02 18:06:41 GMT
Does it make sense to add a "regress" target to src/foo/bar/Makefile
that runs the regression tests from src/regress/foo/bar? Perhaps
it could be generalised to some magic in share/mk/*, but the
non-generalised version looks like this:
Index: src/bin/ps/Makefile
--- Makefile 19 Jun 2002 08:11:55 -0000 1.28
+++ Makefile 2 Oct 2006 18:01:15 -0000
<at> <at> -8,4 +8,9 <at> <at>
CWARNFLAGS+= -Wno-format-y2k
+TEST_PS?= ${.OBJDIR}/ps
+regress:
+ cd ${.CURDIR}/../../regress/bin/ps \
+ && TEST_PS=${TEST_PS:Q} ${MAKE} regress
+
.include <bsd.prog.mk>
--apb (Alan Barrett)
RSS Feed