From b93e1d49ff047fcd4875901280c0945805a30262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= Date: Wed, 9 Aug 2023 13:21:19 +0200 Subject: [PATCH] ci: Test with all meaningful kernels thanks to landlock-test-tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/rust.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6f402b4..1300d5d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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: | @@ -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