# cargo install cargo-watch
watch:
	cargo watch -c -x check -x 'test -- --nocapture'

clippy-watch:
	cargo watch -c -x clippy

inotifytest:
	inotifytest sh -c 'reset; cargo build && RUST_BACKTRACE=1 cargo test -- --nocapture'

debug-tests:
	cargo test --no-run
	gdb --args $$(cargo test 3>&1 1>&2 2>&3 3>&- | grep Running | awk '{print $$2}') --test-threads=1
