Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly paths #582

Merged
merged 12 commits into from
Jan 9, 2022
Merged
5 changes: 3 additions & 2 deletions .github/workflows/integration_tests_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
filters: |
./integration_test: crates/integration_test/**
./runtimetest : runtimetest/**
validate:
needs: [changes]
if: ${{ !contains(needs.changes.outputs.dirs, '[]') }}
Expand All @@ -36,6 +37,6 @@ jobs:
- run: sudo apt-get -y update
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev
- name: Validate tests on runc
run: cd ./crates/integration_test && ./run_tests.sh runc
run: cd ./crates/integration_test && ./tests.sh run runc
- name: Validate tests on youki
run: cd ./crates/integration_test && ./run_tests.sh ./youki
run: cd ./crates/integration_test && ./tests.sh run ./youki
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
./crates/libcontainer: crates/libcontainer/**
./crates/libcgroups: crates/libcgroups/**
./crates/libseccomp: crates/libseccomp/**
./crates/integration_test: crates/integration_test/**
./crates/integration_test: crates/integration_test/**
./runtimetest : runtimetest/**
check:
needs: [changes]
if: ${{ !contains(needs.changes.outputs.dirs, '[]') }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ tags.temp
youki
!youki/
youki_integration_test
runtimetest_tool
runtimetest
!runtimetest/

.vscode

Expand Down
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ if [ "$1" == "--release" ]; then
VERSION=release
fi


# Runtimetest must be compiled in its dorectory and is
# not a part of youki workspace. For the reasoning behind this,
# please check the docs and readme

cargo build --verbose $TGT $1
cd ./runtimetest
cargo build --verbose $TGT $1
cd ..

cp target/$TARGET/$VERSION/youki .
cp target/$TARGET/$VERSION/integration_test ./youki_integration_test
cp runtimetest/target/$TARGET/$VERSION/runtimetest ./runtimetest_tool
Loading