1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-05-06 15:46:17 +02:00

Add makefiles to crates and rust-integration-test

This commit is contained in:
Yashodhan Joshi 2022-01-31 15:08:34 +05:30
parent 11b5d4a5cc
commit 7e3656e875
5 changed files with 41 additions and 1 deletions

1
crates/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*_bin

View File

@ -2,7 +2,11 @@
[workspace]
members = [
"./*"
"./libcgroups",
"./libcontainer",
"./liboci-cli",
"./libseccomp",
"./youki"
]

12
crates/Makefile Normal file
View File

@ -0,0 +1,12 @@
.PHONY : debug release
TGT = x86_64-unknown-linux-gnu
debug:
cargo build && cp ./target/$(TGT)/debug/youki ./youki_bin
release:
cargo build --release && cp ./target/$(TGT)/release/youki ./youki_bin
clean:
rm ./youki_bin

View File

@ -0,0 +1 @@
*_bin

View File

@ -0,0 +1,22 @@
.PHONY: runtimetest integration-test
TGT = x86_64-unknown-linux-gnu
FLAG =
ifeq ("$(FLAG)","--release")
DIR = release
else
DIR = debug
endif
all: runtimetest integration-test
runtimetest:
cd ./runtimetest && cargo build $(FLAG) && cp ./target/$(TGT)/$(DIR)/runtimetest ../runtimetest_bin
integration-test:
cd ./integration_test && cargo build $(FLAG) && cp ./target/$(TGT)/$(DIR)/integration_test ../integration_test_bin
clean:
rm ./integration_test_bin && rm ./runtimetest_bin