Skip to content

Commit

Permalink
Merge pull request #582 from YJDoc2/readonly_paths
Browse files Browse the repository at this point in the history
Readonly paths
  • Loading branch information
utam0k committed Jan 9, 2022
2 parents 636ecff + 8320f05 commit 9dd1c9d
Show file tree
Hide file tree
Showing 25 changed files with 1,040 additions and 818 deletions.
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

0 comments on commit 9dd1c9d

Please sign in to comment.