-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJustfile
53 lines (40 loc) · 1.27 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
miri_base := "\
-Zmiri-strict-provenance \
-Zmiri-symbolic-alignment-check \
"
miri_isolation := miri_base + " -Zmiri-isolation-error=warn-nobacktrace"
export MIRIFLAGS := miri_base + miri_isolation
@_default:
{{just_executable()}} --list
# Run tests with miri nextest
@miri *args='':
cargo +nightly miri nextest run {{args}}
# Run miri without isolation, for bolero tests
@miri-no-isolation *args='':
MIRIFLAGS="{{miri_base}} -Zmiri-disable-isolation" \
cargo +nightly miri nextest run {{args}}
# Run tests with nextest
@test *args='':
cargo +nightly nextest run {{args}}
# Run clippy on all targets
@clippy:
cargo clippy --all-targets
@doc *args='':
cargo +nightly doc --no-deps {{args}}
kani_flags := "\
RUSTC_WRAPPER= cargo kani --tests --enable-unstable \
"
# Run the Kani model tests
@kani *args='':
# {{kani_flags}} {{args}}
RUSTC_WRAPPER= cargo bolero test --engine=kani {{args}}
# Visualize failing Kani model tests
@kani_v *args='':
# {{kani_flags}} {{args}} --concrete-playback=print
{{kani_flags}} --visualize --harness={{args}}
# Run bolero fuzz tests
@fuzz *args='':
cargo bolero test {{args}}
# Run bolero for AFL fuzz tests
@fuzz-afl *args='':
AFL_SKIP_CPUFREQ= cargo bolero test --sanitizer=NONE --engine=afl {{args}}