1
0
mirror of https://github.com/containers/youki synced 2024-11-23 09:21:57 +01:00
youki/Makefile

55 lines
1.3 KiB
Makefile
Raw Normal View History

ROOT = $(shell git rev-parse --show-toplevel)
2022-11-29 12:40:26 +01:00
# builds
2022-11-29 12:40:26 +01:00
build: youki-release
2022-11-29 12:40:26 +01:00
youki: youki-dev # helper
2022-11-29 12:40:26 +01:00
youki-dev:
./scripts/build.sh -o $(ROOT) -c youki
2022-11-29 12:40:26 +01:00
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:
2022-12-13 09:39:50 +01:00
cd ./crates && LD_LIBRARY_PATH=${HOME}/.wasmedge/lib cargo test --all --all-targets --all-features
2022-11-29 12:40:26 +01:00
featuretest:
./scripts/features_test.sh
2022-11-29 12:40:26 +01:00
oci-tests: youki-release
./scripts/oci_integration_tests.sh $(ROOT)
2022-11-29 12:40:26 +01:00
rust-oci-tests: youki-release runtimetest rust-oci-tests-bin
./scripts/rust_integration_tests.sh $(ROOT)/youki
2022-11-29 12:40:26 +01:00
validate-rust-oci-runc: runtimetest rust-oci-tests-bin
2022-03-28 16:03:54 +02:00
./scripts/rust_integration_tests.sh runc
2022-11-29 12:40:26 +01:00
containerd-test: youki-dev
2022-11-22 10:44:26 +01:00
VAGRANT_VAGRANTFILE=Vagrantfile.containerd2youki vagrant up
VAGRANT_VAGRANTFILE=Vagrantfile.containerd2youki vagrant provision --provision-with test
2022-11-29 12:40:26 +01:00
test-oci: oci-tests rust-oci-tests
test-all: unittest featuretest oci-tests containerd-test # currently not doing rust-oci here
# Misc
2022-11-29 12:40:26 +01:00
lint:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
2022-11-29 12:40:26 +01:00
clean:
./scripts/clean.sh $(ROOT)