diff --git a/implementations/rust/Makefile b/implementations/rust/Makefile index 4b61f80..e57dad7 100644 --- a/implementations/rust/Makefile +++ b/implementations/rust/Makefile @@ -1,6 +1,8 @@ +TESTARGS=--lib --bins --examples --tests + # cargo install cargo-watch watch: - cargo watch -c -x 'test --all-targets -- --nocapture' + cargo watch -c -x 'test $(TESTARGS) -- --nocapture' bench: benches/testdata.bin cargo bench --benches @@ -10,11 +12,11 @@ benches/testdata.bin: benches/testdata.bin.gz gzip -dc $< > $@ clippy-watch: - cargo watch -c -x 'clippy --all-targets' + cargo watch -c -x 'clippy $(TESTARGS)' inotifytest: - inotifytest sh -c 'reset; cargo build --all-targets && RUST_BACKTRACE=1 cargo test --all-targets -- --nocapture' + inotifytest sh -c 'reset; cargo build $(TESTARGS) && RUST_BACKTRACE=1 cargo test $(TESTARGS) -- --nocapture' debug-tests: - cargo test --all-targets --no-run + cargo test $(TESTARGS) --no-run gdb --args $$(cargo test 3>&1 1>&2 2>&3 3>&- | grep Running | awk '{print $$2}') --test-threads=1