Skip to content

Commit

Permalink
make tests/* a separate project from youki itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
utam0k committed Dec 5, 2021
1 parent d43be5f commit f5c3cf1
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 87 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/integration_tests_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id: filter
with:
filters: |
./integration_test: tests/integration_test/**
tests/integration_test: tests/integration_test/**
validate:
needs: [changes]
if: ${{ !contains(needs.changes.outputs.dirs, '[]') }}
Expand All @@ -35,6 +35,12 @@ jobs:
uses: Swatinem/rust-cache@v1
- 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: Check formatting
run: cargo fmt --all -- --check
working-directory: ${{matrix.dirs}}
- name: Check clippy lints
working-directory: ${{matrix.dirs}}
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Validate tests on runc
run: cd ./tests/integration_test && ./run_tests.sh runc
- name: Validate tests on youki
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
./crates/libcontainer: crates/libcontainer/**
./crates/libcgroups: crates/libcgroups/**
./crates/libseccomp: crates/libseccomp/**
./tests/integration_test: tests/integration_test/**
check:
needs: [changes]
if: ${{ !contains(needs.changes.outputs.dirs, '[]') }}
Expand Down
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
members = [
"crates/*"
]

exclude = [
"tests/integration_test",
"tests/test_framework"
]

[profile.release]
lto = true
Loading

0 comments on commit f5c3cf1

Please sign in to comment.