preserves/implementations/rust/Makefile

20 lines
540 B
Makefile
Raw Normal View History

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