From 8d93a3de6191ea99807f726351b15ed3c6238f12 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 2 May 2023 09:35:22 +0200 Subject: [PATCH] buildsys: make check should test test.pl output Signed-off-by: Wolfgang Bumiller --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 54bde5f..0aca19d 100644 --- a/Makefile +++ b/Makefile @@ -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