blob: a0bc8cf6688bcce2c5f561c58c728ef754c93fb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-include ../tools.mk
# Test expected libtest's JSON output
OUTPUT_FILE := $(TMPDIR)/libtest-json-output.json
all:
$(RUSTC) --test f.rs
RUST_BACKTRACE=0 $(call RUN,f) -Z unstable-options --test-threads=1 --format=json > $(OUTPUT_FILE) || true
cat $(OUTPUT_FILE) | "$(PYTHON)" validate_json.py
# Compare to output file
diff output.json $(OUTPUT_FILE)
|