From e46a6f65ce3cc57d45e9d88257449e170fd31e15 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 9 Aug 2023 11:59:12 -0400 Subject: [PATCH] tamer: Makefile.am: check-cargo-partial: New target For running individual test cases without having to break the abstraction of the Makefile and run `cargo test` directory. DEV-13163 --- tamer/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tamer/Makefile.am b/tamer/Makefile.am index ce3bdd34..be459f97 100644 --- a/tamer/Makefile.am +++ b/tamer/Makefile.am @@ -62,6 +62,13 @@ check-am: check-lint check-fmt check-cargo check-docgen check-system check-cargo: RUSTFLAGS="$(RUSTFLAGS)" @CARGO@ +@RUST_TC@ @CARGO_FLAGS@ test --quiet @FEATURES@ +# This is its _own_ target distinct from `check-cargo` because `TEST` can +# otherwise allow for filtering out failing tests and have a successful +# build. +check-cargo-partial: + @test -n "$(TEST)" || { echo 'usage: make check-partial TEST=name::of::test' >&2; exit 1; } + RUSTFLAGS="$(RUSTFLAGS)" @CARGO@ +@RUST_TC@ @CARGO_FLAGS@ test --quiet @FEATURES@ -- $(TEST) + .PHONY: check-docgen check-docgen: build-aux/asg-ontviz >/dev/null