forked from youki-dev/youki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (34 loc) · 1.22 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
ROOT = $(shell git rev-parse --show-toplevel)
# builds
build: youki-release
youki: youki-dev # helper
youki-dev:
./scripts/build.sh -o $(ROOT) -c youki
youki-release:
./scripts/build.sh -o $(ROOT) -r -c youki
runtimetest:
./scripts/build.sh -o $(ROOT) -r -c runtimetest
rust-oci-tests-bin:
./scripts/build.sh -o $(ROOT) -r -c integration-test
all: youki-release rust-oci-tests-bin runtimetest
# Tests
unittest:
cd ./crates && LD_LIBRARY_PATH=${HOME}/.wasmedge/lib cargo test --all --all-targets --all-features
featuretest:
./scripts/features_test.sh
oci-tests: youki-release
./scripts/oci_integration_tests.sh $(ROOT)
rust-oci-tests: youki-release runtimetest rust-oci-tests-bin
./scripts/rust_integration_tests.sh $(ROOT)/youki
validate-rust-oci-runc: runtimetest rust-oci-tests-bin
./scripts/rust_integration_tests.sh runc
containerd-test: youki-dev
VAGRANT_VAGRANTFILE=Vagrantfile.containerd2youki vagrant up
VAGRANT_VAGRANTFILE=Vagrantfile.containerd2youki vagrant provision --provision-with test
test-oci: oci-tests rust-oci-tests
test-all: unittest featuretest oci-tests containerd-test # currently not doing rust-oci here
# Misc
lint:
cargo clippy --all-targets --all-features
clean:
./scripts/clean.sh $(ROOT)