diff --git a/crates/.gitignore b/crates/.gitignore new file mode 100644 index 00000000..8cce3109 --- /dev/null +++ b/crates/.gitignore @@ -0,0 +1 @@ +*_bin \ No newline at end of file diff --git a/crates/Cargo.toml b/crates/Cargo.toml index 73442586..08844b51 100644 --- a/crates/Cargo.toml +++ b/crates/Cargo.toml @@ -2,7 +2,11 @@ [workspace] members = [ - "./*" + "./libcgroups", + "./libcontainer", + "./liboci-cli", + "./libseccomp", + "./youki" ] diff --git a/crates/Makefile b/crates/Makefile new file mode 100644 index 00000000..13f4037a --- /dev/null +++ b/crates/Makefile @@ -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 \ No newline at end of file diff --git a/integration_tests/rust-integration-tests/.gitignore b/integration_tests/rust-integration-tests/.gitignore new file mode 100644 index 00000000..8cce3109 --- /dev/null +++ b/integration_tests/rust-integration-tests/.gitignore @@ -0,0 +1 @@ +*_bin \ No newline at end of file diff --git a/integration_tests/rust-integration-tests/Makefile b/integration_tests/rust-integration-tests/Makefile new file mode 100644 index 00000000..b9ebc1fa --- /dev/null +++ b/integration_tests/rust-integration-tests/Makefile @@ -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 \ No newline at end of file