Hi,
This gives us a convenient clean "subtarget" to rm the .test_done
cookie. From discussions with other porters it seems that I'm not the
only one interested.
The use cases are regress tests that fail but don't exit with a proper
exit code, and tests that are skipped because some patching is needed.
You don't want to run a plain ''make clean test'' especially for big
ports, and manually going to the build directory to remove .test_done is
a bit cumbersome.
Ok?
Index: bsd.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.1252
diff -u -p -r1.1252 bsd.port.mk
--- bsd.port.mk 7 Dec 2013 15:41:47 -0000 1.1252
+++ bsd.port.mk 8 Dec 2013 11:48:15 -0000
@@ -255,7 +255,7 @@ _clean += -f
.endif
# check that clean is clean
_okay_words = depends work fake -f flavors dist install sub packages package \
- bulk force plist build all
+ bulk force plist build all test
.for _w in ${_clean}
. if !${_okay_words:M${_w}}
ERRORS += "Fatal: unknown clean command: ${_w}\n(not in ${_okay_words})"
@@ -2940,6 +2940,9 @@ _internal-clean:
rm -f ${_d}/${_p}
. endfor
. endfor
+.endif
+.if ${_clean:Mtest}
+ rm -f ${_TEST_COOKIE}
.endif
# This target generates an index entry suitable for aggregation into