1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00
youki/Makefile
2022-11-30 12:13:03 +05:30

54 lines
1.2 KiB
Makefile

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 && cargo test --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)