preserves/implementations/rust/preserves/Makefile

26 lines
654 B
Makefile
Raw Normal View History

TESTARGS=--lib --bins --examples --tests
# cargo install cargo-watch
watch:
cargo watch -c -x 'test $(TESTARGS) -- --nocapture'
2020-06-16 15:46:55 +00:00
2021-06-30 13:05:44 +00:00
test:
cargo test $(TESTARGS) -- --nocapture
bench: benches/testdata.bin
2020-06-16 15:46:55 +00:00
cargo bench --benches
2020-06-17 00:42:44 +00:00
.INTERMEDIATE: benches/testdata.bin
benches/testdata.bin: benches/testdata.bin.gz
gzip -dc $< > $@
2019-10-20 12:57:10 +00:00
clippy-watch:
cargo watch -c -x 'clippy $(TESTARGS)'
2019-10-20 12:57:10 +00:00
2019-06-29 22:02:27 +00:00
inotifytest:
inotifytest sh -c 'reset; cargo build $(TESTARGS) && RUST_BACKTRACE=1 cargo test $(TESTARGS) -- --nocapture'
debug-tests:
cargo test $(TESTARGS) --no-run
gdb --args $$(cargo test 3>&1 1>&2 2>&3 3>&- | grep Running | awk '{print $$2}') --test-threads=1