Skip to content

Commit

Permalink
ci: Test with all meaningful kernels thanks to landlock-test-tools
Browse files Browse the repository at this point in the history
Test all Landlock ABI versions:
- Linux 5.10: no Landlock support
- Linux 5.15: ABI v1
- Linux 6.1: ABI v2

See https://github.com/landlock-lsm/landlock-test-tools

Signed-off-by: Mickaël Salaün <[email protected]>
  • Loading branch information
l0kod committed Aug 9, 2023
1 parent 9ada920 commit b93e1d4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
commit: ${{ fromJSON(needs.commit_list.outputs.commits) }}
env:
LANDLOCK_CRATE_TEST_ABI: 1
CARGO: rustup run stable cargo
steps:
- name: Install Rust stable
run: |
Expand All @@ -129,5 +130,22 @@ jobs:
with:
ref: ${{ matrix.commit }}

- name: Run tests
- name: Run tests against the local kernel (Landlock ABI ${{ env.LANDLOCK_CRATE_TEST_ABI }})
run: rustup run stable cargo test --verbose

- name: Clone Landlock test tools
uses: actions/checkout@v3
with:
repository: landlock-lsm/landlock-test-tools
path: landlock-test-tools
fetch-depth: 0
ref: test

- name: Run tests against Linux 5.10
run: ./landlock-test-tools/test-rust.sh linux-5.10 0

- name: Run tests against Linux 5.15
run: ./landlock-test-tools/test-rust.sh linux-5.15 1

- name: Run tests against Linux 6.1
run: ./landlock-test-tools/test-rust.sh linux-6.1 2

0 comments on commit b93e1d4

Please sign in to comment.