mirror of
https://github.com/containers/youki
synced 2024-11-23 01:11:58 +01:00
Add makefiles to crates and rust-integration-test
This commit is contained in:
parent
11b5d4a5cc
commit
7e3656e875
1
crates/.gitignore
vendored
Normal file
1
crates/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*_bin
|
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"./*"
|
"./libcgroups",
|
||||||
|
"./libcontainer",
|
||||||
|
"./liboci-cli",
|
||||||
|
"./libseccomp",
|
||||||
|
"./youki"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
12
crates/Makefile
Normal file
12
crates/Makefile
Normal 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
|
1
integration_tests/rust-integration-tests/.gitignore
vendored
Normal file
1
integration_tests/rust-integration-tests/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*_bin
|
22
integration_tests/rust-integration-tests/Makefile
Normal file
22
integration_tests/rust-integration-tests/Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user