uboot-rockchip: Update to 2024.01
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-0506-.github-Add-Github-Workflow-for-KUnit.patch
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
5
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.
8
9 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
10 ---
11 .github/workflows/kunit.yml | 57 +++++++++++++++++++++++++++++++++++++
12 1 file changed, 57 insertions(+)
13 create mode 100644 .github/workflows/kunit.yml
14
15 --- /dev/null
16 +++ b/.github/workflows/kunit.yml
17 @@ -0,0 +1,57 @@
18 +name: KUnit Tests
19 +
20 +on:
21 + pull_request:
22 + branches: [ "rpi-*"]
23 +
24 + push:
25 + branches: [ "rpi-*"]
26 +
27 +jobs:
28 + core:
29 + name: Generic DRM/KMS Unit Tests
30 + runs-on: ubuntu-latest
31 +
32 + steps:
33 + - uses: actions/checkout@v3
34 +
35 + - name: Run Generic DRM Tests
36 + run: |
37 + ./tools/testing/kunit/kunit.py run \
38 + --kunitconfig=drivers/gpu/drm/tests
39 +
40 + vc4-arm:
41 + name: VC4 Unit Tests on ARM
42 + runs-on: ubuntu-latest
43 +
44 + steps:
45 + - uses: actions/checkout@v3
46 +
47 + - name: Install Dependencies
48 + run: |
49 + sudo apt-get update
50 + sudo apt-get install -y gcc-arm-linux-gnueabihf qemu-system-arm
51 +
52 + - name: Run VC4 Tests
53 + run: |
54 + ./tools/testing/kunit/kunit.py run \
55 + --kunitconfig=drivers/gpu/drm/vc4/tests \
56 + --cross_compile=arm-linux-gnueabihf- --arch=arm
57 +
58 + vc4-arm64:
59 + name: VC4 Unit Tests on ARM64
60 + runs-on: ubuntu-latest
61 +
62 + steps:
63 + - uses: actions/checkout@v3
64 +
65 + - name: Install Dependencies
66 + run: |
67 + sudo apt-get update
68 + sudo apt-get install -y gcc-aarch64-linux-gnu qemu-system-arm
69 +
70 + - name: Run VC4 Tests
71 + run: |
72 + ./tools/testing/kunit/kunit.py run \
73 + --kunitconfig=drivers/gpu/drm/vc4/tests \
74 + --cross_compile=aarch64-linux-gnu- --arch=arm64