summaryrefslogtreecommitdiffstats
path: root/tests/run-make/exit-code/Makefile
blob: 6458b71688fff01462744b76cb62d58d0315ceaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# ignore-cross-compile
include ../tools.mk

all:
	$(RUSTC) success.rs; [ $$? -eq 0 ]
	$(RUSTC) --invalid-arg-foo; [ $$? -eq 1 ]
	$(RUSTC) compile-error.rs; [ $$? -eq 1 ]
	$(RUSTC) -Ztreat-err-as-bug compile-error.rs; [ $$? -eq 101 ]
	$(RUSTDOC) -o $(TMPDIR)/exit-code success.rs; [ $$? -eq 0 ]
	$(RUSTDOC) --invalid-arg-foo; [ $$? -eq 1 ]
	$(RUSTDOC) compile-error.rs; [ $$? -eq 1 ]
	$(RUSTDOC) lint-failure.rs; [ $$? -eq 1 ]