buildsys: make check should test test.pl output

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-05-02 09:35:22 +02:00
parent 4b3ab550d2
commit 8d93a3de61

View File

@ -28,6 +28,10 @@ builddeps: $(foreach c,$(CRATES), $c-builddeps)
.PHONY: check
check:
cargo test
cargo build
perl test.pl >out.test
if diff -up out.test test.pl.expected; then rm out.test; \
else echo "Test output mismatch between out.test and test.pl.expected"; fi
# Prints a diff between the current code and the one rustfmt would produce
.PHONY: fmt