@@ -66,16 +66,32 @@ endif
66
66
# Main test targets
67
67
# #####################################################################
68
68
69
+ .PHONY : cleantmptestlogs cleantestlibs
70
+
69
71
cleantmptestlogs :
70
72
$(Q ) rm -f tmp/* .log
71
73
72
- check : cleantmptestlogs tidy all check-stage2
74
+ cleantestlibs :
75
+ $(Q ) find $(CFG_HOST_TRIPLE ) /test \
76
+ -name '*.[odasS]' -o \
77
+ -name '*.so' -o \
78
+ -name '*.dylib' -o \
79
+ -name '*.dll' -o \
80
+ -name '*.def' -o \
81
+ -name '*.bc' -o \
82
+ -name '*.dSYM' -o \
83
+ -name '*.out' -o \
84
+ -name '*.err' \
85
+ | xargs rm -f
86
+
87
+ check : cleantestlibs cleantmptestlogs tidy all check-stage2
73
88
$(Q )$(S ) src/etc/check-summary.py tmp/* .log
74
89
75
- check-full : cleantmptestlogs tidy all check-stage1 check-stage2 check-stage3
90
+ check-full : cleantestlibs cleantmptestlogs tidy \
91
+ all check-stage1 check-stage2 check-stage3
76
92
$(Q)$(S)src/etc/check-summary.py tmp/*.log
77
93
78
- check-test : cleantmptestlogs all check-stage2-rfail
94
+ check-test : cleantestlibs cleantmptestlogs all check-stage2-rfail
79
95
$(Q )$(S ) src/etc/check-summary.py tmp/* .log
80
96
81
97
# Run the tidy script in multiple parts to avoid huge 'echo' commands
@@ -166,16 +182,16 @@ define TEST_STAGEN
166
182
167
183
check-stage$(1 ) -T-$(2 ) -H-$(3 ) : tidy \
168
184
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustc \
169
- check-stage$(1 ) -T-$(2 ) -H-$(3 ) -core \
185
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -core \
170
186
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -std \
171
187
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rpass \
172
188
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rfail \
173
189
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -cfail \
174
190
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -bench \
175
- check-stage$(1 ) -T-$(2 ) -H-$(3 ) -pretty \
176
- check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustdoc \
177
- check-stage$(1 ) -T-$(2 ) -H-$(3 ) -doc-tutorial \
178
- check-stage$(1 ) -T-$(2 ) -H-$(3 ) -doc-ref
191
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -pretty \
192
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rustdoc \
193
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -doc-tutorial \
194
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -doc-ref
179
195
180
196
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -core: \
181
197
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -core-dummy
0 commit comments