fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
578 B20 linesraw
1# ignore-cross-compile
2include ../tools.mk
3
4# Tests behavior of rustdoc --runtool
5
6MY_SRC_DIR := ${CURDIR}
7
8all: with_test_run_directory
9
10# Behavior with --runtool with relative paths and --test-run-directory.
11with_test_run_directory:
12	mkdir -p $(TMPDIR)/rundir
13	mkdir -p $(TMPDIR)/runtool
14	$(RUSTC) --crate-type rlib t.rs
15	$(RUSTC) runtool.rs -o $(TMPDIR)/runtool/runtool
16	( cd $(TMPDIR); \
17		$(RUSTDOC) -Zunstable-options --test --test-run-directory rundir \
18			--runtool runtool/runtool --extern t=libt.rlib $(MY_SRC_DIR)/t.rs \
19	)
20	rm -rf $(TMPDIR)/rundir $(TMPDIR)/runtool