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
main
Mike Gerwitz 2023-08-09 11:59:12 -04:00
parent 6c2bfa936a
commit e46a6f65ce
1 changed files with 7 additions and 0 deletions

View File

@ -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