Clean up artifacts in test subdir. Should close #2066.
This commit is contained in:
parent
74b0f5dcc7
commit
4baf2ceae1
31
mk/clean.mk
31
mk/clean.mk
|
@ -23,31 +23,21 @@ clean: clean-misc $(CLEAN_STAGE_RULES)
|
||||||
|
|
||||||
clean-misc:
|
clean-misc:
|
||||||
@$(call E, cleaning)
|
@$(call E, cleaning)
|
||||||
|
$(Q)find rustllvm rt $(CFG_HOST_TRIPLE)/test \
|
||||||
|
-name '*.[odasS]' -o \
|
||||||
|
-name '*.so' -o \
|
||||||
|
-name '*.dylib' -o \
|
||||||
|
-name '*.dll' -o \
|
||||||
|
-name '*.def' -o \
|
||||||
|
-name '*.bc' -o \
|
||||||
|
-name '*.dSYM' \
|
||||||
|
| xargs rm -f
|
||||||
$(Q)rm -f $(RUNTIME_OBJS) $(RUNTIME_DEF)
|
$(Q)rm -f $(RUNTIME_OBJS) $(RUNTIME_DEF)
|
||||||
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
|
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
|
||||||
$(Q)rm -f $(ML_DEPFILES) $(C_DEPFILES) $(CRATE_DEPFILES)
|
|
||||||
$(Q)rm -f $(ML_DEPFILES:%.d=%.d.tmp)
|
|
||||||
$(Q)rm -f $(C_DEPFILES:%.d=%.d.tmp)
|
|
||||||
$(Q)rm -f $(CRATE_DEPFILES:%.d=%.d.tmp)
|
|
||||||
$(Q)rm -Rf $(DOCS)
|
$(Q)rm -Rf $(DOCS)
|
||||||
$(Q)rm -Rf $(GENERATED)
|
$(Q)rm -Rf $(GENERATED)
|
||||||
$(Q)rm -f tmp/*.log
|
$(Q)rm -f tmp/*.log tmp/*.rc tmp/*.rs
|
||||||
$(Q)rm -f rustllvm/$(CFG_RUSTLLVM) rustllvm/rustllvmbits.a
|
|
||||||
$(Q)rm -f rt/$(CFG_RUNTIME)
|
|
||||||
$(Q)find rustllvm rt -name '*.[odasS]' -delete
|
|
||||||
$(Q)find rustllvm rt -name '*.so' -delete
|
|
||||||
$(Q)find rustllvm rt -name '*.dylib' -delete
|
|
||||||
$(Q)find rustllvm rt -name '*.dll' -delete
|
|
||||||
$(Q)find rustllvm rt -name '*.def' -delete
|
|
||||||
$(Q)rm -Rf $(wildcard rt/*/libuv/Default)
|
|
||||||
$(Q)rm -f test/run_pass_stage2.rc test/run_pass_stage2_driver.rs
|
|
||||||
$(Q)rm -Rf $(PKG_NAME)-*.tar.gz dist
|
$(Q)rm -Rf $(PKG_NAME)-*.tar.gz dist
|
||||||
$(Q)rm -Rf $(foreach ext,out out.tmp \
|
|
||||||
stage0$(X) stage1$(X) stage2$(X) \
|
|
||||||
bc o s so dll exe dSYM, \
|
|
||||||
$(wildcard test/*.$(ext) \
|
|
||||||
test/*/*.$(ext) \
|
|
||||||
test/bench/*/*.$(ext)))
|
|
||||||
$(Q)rm -Rf $(foreach ext, \
|
$(Q)rm -Rf $(foreach ext, \
|
||||||
html aux cp fn ky log pdf pg toc tp vr cps, \
|
html aux cp fn ky log pdf pg toc tp vr cps, \
|
||||||
$(wildcard doc/*.$(ext) \
|
$(wildcard doc/*.$(ext) \
|
||||||
|
@ -57,7 +47,6 @@ clean-misc:
|
||||||
$(Q)rm -Rf doc/version.md
|
$(Q)rm -Rf doc/version.md
|
||||||
$(Q)rm -Rf $(foreach sub, index styles files search javascript, \
|
$(Q)rm -Rf $(foreach sub, index styles files search javascript, \
|
||||||
$(wildcard doc/*/$(sub)))
|
$(wildcard doc/*/$(sub)))
|
||||||
$(Q)rm -rf libuv
|
|
||||||
|
|
||||||
define CLEAN_HOST_STAGE_N
|
define CLEAN_HOST_STAGE_N
|
||||||
|
|
||||||
|
|
32
mk/tests.mk
32
mk/tests.mk
|
@ -66,16 +66,32 @@ endif
|
||||||
# Main test targets
|
# Main test targets
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
.PHONY: cleantmptestlogs cleantestlibs
|
||||||
|
|
||||||
cleantmptestlogs:
|
cleantmptestlogs:
|
||||||
$(Q)rm -f tmp/*.log
|
$(Q)rm -f tmp/*.log
|
||||||
|
|
||||||
check: cleantmptestlogs tidy all check-stage2
|
cleantestlibs:
|
||||||
|
$(Q)find $(CFG_HOST_TRIPLE)/test \
|
||||||
|
-name '*.[odasS]' -o \
|
||||||
|
-name '*.so' -o \
|
||||||
|
-name '*.dylib' -o \
|
||||||
|
-name '*.dll' -o \
|
||||||
|
-name '*.def' -o \
|
||||||
|
-name '*.bc' -o \
|
||||||
|
-name '*.dSYM' -o \
|
||||||
|
-name '*.out' -o \
|
||||||
|
-name '*.err' \
|
||||||
|
| xargs rm -f
|
||||||
|
|
||||||
|
check: cleantestlibs cleantmptestlogs tidy all check-stage2
|
||||||
$(Q)$(S)src/etc/check-summary.py tmp/*.log
|
$(Q)$(S)src/etc/check-summary.py tmp/*.log
|
||||||
|
|
||||||
check-full: cleantmptestlogs tidy all check-stage1 check-stage2 check-stage3
|
check-full: cleantestlibs cleantmptestlogs tidy \
|
||||||
|
all check-stage1 check-stage2 check-stage3
|
||||||
$(Q)$(S)src/etc/check-summary.py tmp/*.log
|
$(Q)$(S)src/etc/check-summary.py tmp/*.log
|
||||||
|
|
||||||
check-test: cleantmptestlogs all check-stage2-rfail
|
check-test: cleantestlibs cleantmptestlogs all check-stage2-rfail
|
||||||
$(Q)$(S)src/etc/check-summary.py tmp/*.log
|
$(Q)$(S)src/etc/check-summary.py tmp/*.log
|
||||||
|
|
||||||
# Run the tidy script in multiple parts to avoid huge 'echo' commands
|
# Run the tidy script in multiple parts to avoid huge 'echo' commands
|
||||||
|
@ -166,16 +182,16 @@ define TEST_STAGEN
|
||||||
|
|
||||||
check-stage$(1)-T-$(2)-H-$(3): tidy \
|
check-stage$(1)-T-$(2)-H-$(3): tidy \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-rustc \
|
check-stage$(1)-T-$(2)-H-$(3)-rustc \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-core \
|
check-stage$(1)-T-$(2)-H-$(3)-core \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-std \
|
check-stage$(1)-T-$(2)-H-$(3)-std \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-rpass \
|
check-stage$(1)-T-$(2)-H-$(3)-rpass \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-rfail \
|
check-stage$(1)-T-$(2)-H-$(3)-rfail \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-cfail \
|
check-stage$(1)-T-$(2)-H-$(3)-cfail \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-bench \
|
check-stage$(1)-T-$(2)-H-$(3)-bench \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-pretty \
|
check-stage$(1)-T-$(2)-H-$(3)-pretty \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-rustdoc \
|
check-stage$(1)-T-$(2)-H-$(3)-rustdoc \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-doc-tutorial \
|
check-stage$(1)-T-$(2)-H-$(3)-doc-tutorial \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-doc-ref
|
check-stage$(1)-T-$(2)-H-$(3)-doc-ref
|
||||||
|
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-core: \
|
check-stage$(1)-T-$(2)-H-$(3)-core: \
|
||||||
check-stage$(1)-T-$(2)-H-$(3)-core-dummy
|
check-stage$(1)-T-$(2)-H-$(3)-core-dummy
|
||||||
|
|
Loading…
Reference in New Issue