@@ -171,6 +171,7 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
171
171
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -rpass-full-exec \
172
172
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -crates-exec \
173
173
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -bench-exec \
174
+ check-stage$(1 ) -T-$(2 ) -H-$(3 ) -debuginfo-exec \
174
175
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -doc-exec \
175
176
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -pretty-exec
176
177
@@ -335,6 +336,10 @@ CTEST_BUILD_BASE_debuginfo = debug-info
335
336
CTEST_MODE_debuginfo = debug-info
336
337
CTEST_RUNTOOL_debuginfo = $(CTEST_RUNTOOL )
337
338
339
+ ifeq ($(CFG_GDB ) ,)
340
+ CTEST_DISABLE_debuginfo = "no gdb found"
341
+ endif
342
+
338
343
define DEF_CTEST_VARS
339
344
340
345
# All the per-stage build rules you might want to call from the
@@ -357,7 +362,7 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
357
362
--rustc-path $$(HBIN$(1 ) _H_$(3 ) ) /rustc$$(X ) \
358
363
--aux-base $$(S ) src/test/auxiliary/ \
359
364
--stage-id stage$(1 ) -$(2 ) \
360
- --rustcflags "$$(CFG_RUSTC_FLAGS ) --target=$(2 ) " \
365
+ --rustcflags "$$(CFG_RUSTC_FLAGS ) --target=$(2 ) " \
361
366
$$(CTEST_TESTARGS )
362
367
363
368
CTEST_DEPS_rpass_$(1 ) -T-$(2 ) -H-$(3 ) = $$(RPASS_TESTS )
@@ -386,6 +391,8 @@ CTEST_ARGS$(1)-T-$(2)-H-$(3)-$(4) := \
386
391
387
392
check-stage$(1 ) -T-$(2 ) -H-$(3 ) -$(4 ) -exec: $$(call TEST_OK_FILE,$(1 ) ,$(2 ) ,$(3 ) ,$(4 ) )
388
393
394
+ ifeq ($$(CTEST_DISABLE_$(4 ) ) ,)
395
+
389
396
$$(call TEST_OK_FILE,$(1 ) ,$(2 ) ,$(3 ) ,$(4 ) ) : \
390
397
$$(TEST_SREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
391
398
$$(CTEST_DEPS_$(4)_$(1)-T-$(2)-H-$(3))
@@ -395,6 +402,17 @@ $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
395
402
--logfile $$(call TEST_LOG_FILE,$(1),$(2),$(3),$(4)) \
396
403
&& touch $$@
397
404
405
+ else
406
+
407
+ $$(call TEST_OK_FILE,$(1 ) ,$(2 ) ,$(3 ) ,$(4 ) ) : \
408
+ $$(TEST_SREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
409
+ $$(CTEST_DEPS_$(4)_$(1)-T-$(2)-H-$(3))
410
+ @$$(call E, run $(4): $$<)
411
+ @$$(call E, warning: tests disabled: $$(CTEST_DISABLE_$(4)))
412
+ touch $$@
413
+
414
+ endif
415
+
398
416
endef
399
417
400
418
CTEST_NAMES = rpass rpass-full rfail cfail bench perf debuginfo
0 commit comments