-
Notifications
You must be signed in to change notification settings - Fork 11
/
justfile
28 lines (23 loc) · 1006 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set shell := ["sh", "-O", "globstar", "-uc"]
codecoverage:
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' \
cargo test -p astarpa2
grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage
rm *.profraw **/*.profraw
open target/coverage/html/index.html
vis:
cargo run -r --example aligners_vis --features sdl
fig name args='':
rm -f imgs/astarpa2-paper/{{name}}/*png
cargo run --example fig-{{name}}-2 --features sdl,example{{args}}
mogrify -format png imgs/astarpa2-paper/{{name}}/**/*bmp
rm imgs/astarpa2-paper/{{name}}/**/*bmp
feh imgs/astarpa2-paper/{{name}}/**/*png &
fig-intro: (fig "intro")
fig-prepruning: (fig "prepruning")
fig-doubling: (fig "doubling" ",small_blocks")
fig-simd: (fig "simd")
fig-trace: (fig "trace" ",small_blocks")
fig-ranges: (fig "ranges" ",small_blocks")
fuzz:
cargo run -r --example fuzz --features sdl