@@ -56,10 +56,6 @@ ifdef VERBOSE
56
56
CTEST_TESTARGS += --verbose
57
57
endif
58
58
59
- # The test runner that runs the cfail/rfail/rpass and bench tests
60
- COMPILETEST_CRATE := $(S ) src/test/compiletest/compiletest.rc
61
- COMPILETEST_INPUTS := $(wildcard $(S ) src/test/compiletest/* rs)
62
-
63
59
# The standard library test crate
64
60
STDTEST_CRATE := $(S ) src/test/stdtest/stdtest.rc
65
61
STDTEST_INPUTS := $(wildcard $(S ) src/test/stdtest/* rs)
@@ -241,61 +237,55 @@ PRETTY_PRETTY_ARGS$(2) := $$(CTEST_COMMON_ARGS$(2)) \
241
237
--build-base test/pretty/ \
242
238
--mode pretty \
243
239
244
- test/compiletest.stage$(2 )$$(X ) : $$(COMPILETEST_CRATE ) \
245
- $$(COMPILETEST_INPUTS ) \
246
- $$(SREQ$(2 )$$(CFG_HOST_TRIPLE ) )
247
- @$$(call E, compile_and_link: $$@ )
248
- $$(STAGE$(2 ) ) -o $$@ $$<
249
-
250
- test/compile-fail.stage$(2 ) .out.tmp: test/compiletest.stage$(2 )$$(X ) \
240
+ test/compile-fail.stage$(2 ) .out.tmp: $$(HOST_BIN$(2 ) ) /compiletest$$(X ) \
251
241
$$(CFAIL_TESTS )
252
242
@$$(call E, run: $$< )
253
243
$$(Q )$$(call CFG_RUN_CTEST,$(2 ) ,$$< ) $$(CFAIL_ARGS$(2 ) )
254
244
$$(Q ) touch $$@
255
245
256
- test/run-fail.stage$(2 ) .out.tmp: test/compiletest.stage $( 2 ) $$(X ) \
246
+ test/run-fail.stage$(2 ) .out.tmp: $$( HOST_BIN $( 2 ) ) /compiletest $$(X ) \
257
247
$$(RFAIL_TESTS )
258
248
@$$(call E, run: $$< )
259
249
$$(Q )$$(call CFG_RUN_CTEST,$(2 ) ,$$< ) $$(RFAIL_ARGS$(2 ) )
260
250
$$(Q ) touch $$@
261
251
262
- test/run-pass.stage$(2 ) .out.tmp: test/compiletest.stage $( 2 ) $$(X ) \
252
+ test/run-pass.stage$(2 ) .out.tmp: $$( HOST_BIN $( 2 ) ) /compiletest $$(X ) \
263
253
$$(RPASS_TESTS )
264
254
@$$(call E, run: $$< )
265
255
$$(Q )$$(call CFG_RUN_CTEST,$(2 ) ,$$< ) $$(RPASS_ARGS$(2 ) )
266
256
$$(Q ) touch $$@
267
257
268
- test/bench.stage$(2 ) .out.tmp: test/compiletest.stage $( 2 ) $$(X ) \
258
+ test/bench.stage$(2 ) .out.tmp: $$( HOST_BIN $( 2 ) ) /compiletest $$(X ) \
269
259
$$(BENCH_TESTS )
270
260
@$$(call E, run: $$< )
271
261
$$(Q )$$(call CFG_RUN_CTEST,$(2 ) ,$$< ) $$(BENCH_ARGS$(2 ) )
272
262
$$(Q ) touch $$@
273
263
274
- test/perf.stage$(2 ) .out.tmp: test/compiletest.stage $( 2 ) $$(X ) \
264
+ test/perf.stage$(2 ) .out.tmp: $$( HOST_BIN $( 2 ) ) /compiletest $$(X ) \
275
265
$$(BENCH_TESTS )
276
266
@$$(call E, perf: $$< )
277
267
$$(Q )$$(call CFG_RUN_CTEST,$(2 ) ,$$< ) $$(PERF_ARGS$(2 ) )
278
268
$$(Q ) touch $$@
279
269
280
- test/pretty-rpass.stage$(2 ) .out.tmp: test/compiletest.stage $( 2 ) $$(X ) \
270
+ test/pretty-rpass.stage$(2 ) .out.tmp: $$( HOST_BIN $( 2 ) ) /compiletest $$(X ) \
281
271
$$(RPASS_TESTS )
282
272
@$$(call E, run: $$< )
283
273
$$(Q )$$(call CFG_RUN_CTEST,$(2 ) ,$$< ) $$(PRETTY_RPASS_ARGS$(2 ) )
284
274
$$(Q ) touch $$@
285
275
286
- test/pretty-rfail.stage$(2 ) .out.tmp: test/compiletest.stage $( 2 ) $$(X ) \
276
+ test/pretty-rfail.stage$(2 ) .out.tmp: $$( HOST_BIN $( 2 ) ) /compiletest $$(X ) \
287
277
$$(RFAIL_TESTS )
288
278
@$$(call E, run: $$< )
289
279
$$(Q )$$(call CFG_RUN_CTEST,$(2 ) ,$$< ) $$(PRETTY_RFAIL_ARGS$(2 ) )
290
280
$$(Q ) touch $$@
291
281
292
- test/pretty-bench.stage$(2 ) .out.tmp: test/compiletest.stage $( 2 ) $$(X ) \
282
+ test/pretty-bench.stage$(2 ) .out.tmp: $$( HOST_BIN $( 2 ) ) /compiletest $$(X ) \
293
283
$$(BENCH_TESTS )
294
284
@$$(call E, run: $$< )
295
285
$$(Q )$$(call CFG_RUN_CTEST,$(2 ) ,$$< ) $$(PRETTY_BENCH_ARGS$(2 ) )
296
286
$$(Q ) touch $$@
297
287
298
- test/pretty-pretty.stage$(2 ) .out.tmp: test/compiletest.stage $( 2 ) $$(X ) \
288
+ test/pretty-pretty.stage$(2 ) .out.tmp: $$( HOST_BIN $( 2 ) ) /compiletest $$(X ) \
299
289
$$(PRETTY_TESTS )
300
290
@$$(call E, run: $$< )
301
291
$$(Q )$$(call CFG_RUN_CTEST,$(2 ) ,$$< ) $$(PRETTY_PRETTY_ARGS$(2 ) )
0 commit comments