-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 839 Bytes
/
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
.DEFAULT_GOAL := test
build-debug:
cargo build
TESTS += build-debug
build-release:
cargo build --release
TESTS += build-release
build-examples:
cargo build --examples
TESTS += build-examples
clippy:
cargo clippy --workspace
TESTS += clippy
clippy-examples:
cargo clippy --examples
TESTS += clippy-examples
clippy-tests:
cargo clippy --tests
TESTS += clippy-tests
run-tests:
cargo test --workspace -- --nocapture
TESTS += run-tests
doc:
cargo doc --workspace
TESTS += doc
# Obtain the generated DTB templates
DTBS = testdata/device-trees
$(DTBS):
git clone -b main https://jpbrucker.net/git/vmm-dtbs $@
test-dtbs: build-examples $(DTBS)
@# Parse DTBs, check that the output is stable
target/debug/examples/dtb $(DTBS)/kvmtool-3.18.dtb
target/debug/examples/dtb $(DTBS)/qemu-9.1.dtb
TESTS += test-dtbs
test: $(TESTS)