Skip to content

Commit edcca78

Browse files
joyeecheungMylesBorins
authored andcommitted
build: add rule to clean addon tests build
Add a `test-addons-clean` to the Makefile to clean up files generated during testing addons. PR-URL: #11519 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent bfa3989 commit edcca78

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

Makefile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ test-npm-publish: $(NODE_EXE)
259259
test-addons: test-build
260260
$(PYTHON) tools/test.py --mode=release addons
261261

262+
test-addons-clean:
263+
$(RM) -rf test/addons/??_*/
264+
$(RM) -rf test/addons/*/build
265+
$(RM) test/addons/.buildstamp test/addons/.docbuildstamp
266+
262267
test-timers:
263268
$(MAKE) --directory=tools faketime
264269
$(PYTHON) tools/test.py --mode=release timers
@@ -766,9 +771,11 @@ endif
766771

767772
.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean \
768773
check uninstall install install-includes install-bin all staticlib \
769-
dynamiclib test test-all test-addons build-addons website-upload pkg \
770-
blog blogclean tar binary release-only bench-http-simple bench-idle \
771-
bench-all bench bench-misc bench-array bench-buffer bench-net \
772-
bench-http bench-fs bench-tls cctest run-ci test-v8 test-v8-intl \
773-
test-v8-benchmarks test-v8-all v8 lint-ci bench-ci jslint-ci doc-only \
774-
$(TARBALL)-headers test-ci test-ci-native test-ci-js build-ci
774+
dynamiclib test test-all test-addons test-addons-clean build-addons \
775+
website-upload pkg blog blogclean tar binary release-only \
776+
bench-http-simple bench-idle bench-all bench bench-misc bench-array \
777+
bench-buffer bench-net bench-http bench-fs bench-tls cctest run-ci \
778+
test-v8 test-v8-intl test-v8-benchmarks test-v8-all v8 lint-ci \
779+
bench-ci jslint-ci doc-only $(TARBALL)-headers test-ci test-ci-native \
780+
test-ci-js build-ci
781+

0 commit comments

Comments
 (0)