2019-09-09 13:46:53 +00:00
|
|
|
# cargo install cargo-watch
|
|
|
|
watch:
|
2020-06-16 15:46:55 +00:00
|
|
|
cargo watch -c -x 'test --all-targets -- --nocapture'
|
|
|
|
|
2020-06-17 00:33:25 +00:00
|
|
|
bench: benches/testdata.bin
|
2020-06-16 15:46:55 +00:00
|
|
|
cargo bench --benches
|
2019-09-09 13:46:53 +00:00
|
|
|
|
2020-06-17 00:33:25 +00:00
|
|
|
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'
|
2020-05-27 07:04:55 +00:00
|
|
|
|
|
|
|
debug-tests:
|
2020-06-15 07:57:56 +00:00
|
|
|
cargo test --all-targets --no-run
|
2020-05-27 07:04:55 +00:00
|
|
|
gdb --args $$(cargo test 3>&1 1>&2 2>&3 3>&- | grep Running | awk '{print $$2}') --test-threads=1
|