forked from bytecodealliance/lucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (49 loc) · 1.17 KB
/
Makefile
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
54
55
56
57
58
59
export GUEST_MODULE_PREFIX:=$(abspath .)
.PHONY: build-dev
build-dev:
@echo Creating a DEBUG build
cargo build --all
make -C lucet-builtins
.PHONY: build
build:
@echo Creating a RELEASE build
cargo build --all --release --bins --lib
make -C lucet-builtins
.PHONY: install
install: build
@helpers/install.sh
.PHONY: test
test: indent-check
cargo test --no-fail-fast \
-p lucet-runtime-internals \
-p lucet-runtime \
-p lucet-module-data \
-p lucetc \
-p lucet-idl \
-p lucet-wasi-sdk \
-p lucet-wasi \
-p lucet-benchmarks
# run a single seed through the fuzzer to stave off bitrot
cargo run -p lucet-wasi-fuzz -- test-seed 410757864950
.PHONY: fuzz
fuzz:
cargo run --release -p lucet-wasi-fuzz -- fuzz --num-tests=1000
.PHONY: bench
bench:
cargo bench -p lucet-benchmarks
make -C benchmarks/shootout clean
make -C benchmarks/shootout bench
.PHONY: audit
audit:
cargo audit
.PHONY: clean
clean:
make -C benchmarks/shootout clean
make -C lucet-builtins clean
cargo clean
.PHONY: indent
indent:
helpers/indent.sh
.PHONY: indent-check
indent-check:
helpers/indent.sh check