20 lines
540 B
Makefile
20 lines
540 B
Makefile
# cargo install cargo-watch
|
|
watch:
|
|
cargo watch -c -x 'test --all-targets -- --nocapture'
|
|
|
|
bench: benches/testdata.bin
|
|
cargo bench --benches
|
|
|
|
benches/testdata.bin: benches/testdata.bin.gz
|
|
gzip -dc $< > $@
|
|
|
|
clippy-watch:
|
|
cargo watch -c -x 'clippy --all-targets'
|
|
|
|
inotifytest:
|
|
inotifytest sh -c 'reset; cargo build --all-targets && RUST_BACKTRACE=1 cargo test --all-targets -- --nocapture'
|
|
|
|
debug-tests:
|
|
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
|