1 From d172f330087422b8f33ad5e0f60f903820e7b321 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Thu, 8 Dec 2022 13:17:42 +0100
4 Subject: [PATCH] .github: Add Github Workflow for KUnit
6 Now that we have some KUnit coverage, let's add a github actions file to
7 run them on each push or pull request.
9 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
11 .github/workflows/kunit.yml | 57 +++++++++++++++++++++++++++++++++++++
12 1 file changed, 57 insertions(+)
13 create mode 100644 .github/workflows/kunit.yml
16 +++ b/.github/workflows/kunit.yml
22 + branches: [ "rpi-*"]
25 + branches: [ "rpi-*"]
29 + name: Generic DRM/KMS Unit Tests
30 + runs-on: ubuntu-latest
33 + - uses: actions/checkout@v3
35 + - name: Run Generic DRM Tests
37 + ./tools/testing/kunit/kunit.py run \
38 + --kunitconfig=drivers/gpu/drm/tests
41 + name: VC4 Unit Tests on ARM
42 + runs-on: ubuntu-latest
45 + - uses: actions/checkout@v3
47 + - name: Install Dependencies
50 + sudo apt-get install -y gcc-arm-linux-gnueabihf qemu-system-arm
52 + - name: Run VC4 Tests
54 + ./tools/testing/kunit/kunit.py run \
55 + --kunitconfig=drivers/gpu/drm/vc4/tests \
56 + --cross_compile=arm-linux-gnueabihf- --arch=arm
59 + name: VC4 Unit Tests on ARM64
60 + runs-on: ubuntu-latest
63 + - uses: actions/checkout@v3
65 + - name: Install Dependencies
68 + sudo apt-get install -y gcc-aarch64-linux-gnu qemu-system-arm
70 + - name: Run VC4 Tests
72 + ./tools/testing/kunit/kunit.py run \
73 + --kunitconfig=drivers/gpu/drm/vc4/tests \
74 + --cross_compile=aarch64-linux-gnu- --arch=arm64