f96541e9a9
run-make tests are not special but can be blessed like other tests, like this: ./x.py test --bless tests/run-make/unknown-mod-stdin
15 lines
448 B
Makefile
15 lines
448 B
Makefile
# ignore-windows
|
|
|
|
include ../tools.mk
|
|
|
|
all:
|
|
echo 'mod unknown;' | $(RUSTC) --crate-type rlib - >$(TMPDIR)/unknown-mod.stdout 2>$(TMPDIR)/unknown-mod.stderr || echo "failed successfully"
|
|
|
|
ifdef RUSTC_BLESS_TEST
|
|
cp "$(TMPDIR)"/unknown-mod.stdout unknown-mod.stdout
|
|
cp "$(TMPDIR)"/unknown-mod.stderr unknown-mod.stderr
|
|
else
|
|
$(DIFF) unknown-mod.stdout "$(TMPDIR)"/unknown-mod.stdout
|
|
$(DIFF) unknown-mod.stderr "$(TMPDIR)"/unknown-mod.stderr
|
|
endif
|