-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJustfile
48 lines (36 loc) · 941 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
export MIRIFLAGS := "-Zmiri-symbolic-alignment-check -Zmiri-permissive-provenance -Zmiri-backtrace=full"
export RUST_BACKTRACE := "full"
# Show this menu
@help:
just --list --unsorted
# Run tests with miri
miri *args='':
cargo +nightly miri test --features "full" {{args}}
# Run rust tests first and zemu_test afterwards
tests: build-elfs
cargo test
just miri
make zemu_test
# Run zemu tests specified by the given filter
ztest filter="":
cd zemu && yarn test -t {{filter}}
# Start debugging with zemu according to debug.mjs
debug:
make zemu_debug
alias l := lint
# Format, then run clippy and fix warnings
lint:
cargo fmt
cargo clippy --fix --allow-dirty --allow-staged --all
# Build all the elfs of the app
build-elfs:
make
alias m := make
make *cmd='':
make {{cmd}}
try:
cd zemu && yarn try
alias c := cargo
cargo *cmd='':
cargo {{cmd}}
insta: (cargo "insta test --review")