2023-03-28 09:38:16 +00:00
|
|
|
# Some common commands for working on this stuff
|
|
|
|
|
2023-04-01 05:14:15 +00:00
|
|
|
# Run All Tests
|
|
|
|
rat:
|
2023-03-28 12:35:18 +00:00
|
|
|
cargo test --doc && cargo nextest run
|
2023-03-28 09:38:16 +00:00
|
|
|
|
2023-04-01 05:14:15 +00:00
|
|
|
test:
|
|
|
|
cargo nextest run
|
|
|
|
|
2023-03-30 04:46:20 +00:00
|
|
|
chirp:
|
2023-03-30 13:27:06 +00:00
|
|
|
cargo run --bin chirp-minifb -- tests/chip8-test-suite/bin/chip8-test-suite.ch8
|
2023-04-01 05:14:15 +00:00
|
|
|
# Run at 2100000 instructions per frame, and output per-frame runtime statistics
|
|
|
|
bench:
|
|
|
|
cargo run --bin chirp-minifb --release -- chip-8/1dcell.ch8 -xP -s10 -S2100000
|
2023-03-30 04:46:20 +00:00
|
|
|
|
|
|
|
cover:
|
|
|
|
cargo llvm-cov --open --doctests
|
|
|
|
|
2023-03-28 09:38:16 +00:00
|
|
|
tokei:
|
|
|
|
tokei --exclude tests/chip8-test-suite
|
2023-03-30 04:46:20 +00:00
|
|
|
|