1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.1/target/linux/bcm27xx/patches-6.1/0522-.github-Add-Github-Workflow-for-KUnit.patch

80 lines
2.1 KiB
Diff

From c354e046aff3ef11e70fba94245653d4e3f3a0a8 Mon Sep 17 00:00:00 2001
From: Maxime Ripard <maxime@cerno.tech>
Date: Thu, 8 Dec 2022 13:17:42 +0100
Subject: [PATCH 522/726] .github: Add Github Workflow for KUnit
Now that we have some KUnit coverage, let's add a github actions file to
run them on each push or pull request.
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
---
.github/workflows/kunit.yml | 57 +++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 .github/workflows/kunit.yml
diff --git a/.github/workflows/kunit.yml b/.github/workflows/kunit.yml
new file mode 100644
index 000000000000..ee51bbc912e7
--- /dev/null
+++ b/.github/workflows/kunit.yml
@@ -0,0 +1,57 @@
+name: KUnit Tests
+
+on:
+ pull_request:
+ branches: [ "rpi-*"]
+
+ push:
+ branches: [ "rpi-*"]
+
+jobs:
+ core:
+ name: Generic DRM/KMS Unit Tests
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Run Generic DRM Tests
+ run: |
+ ./tools/testing/kunit/kunit.py run \
+ --kunitconfig=drivers/gpu/drm/tests
+
+ vc4-arm:
+ name: VC4 Unit Tests on ARM
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install Dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y gcc-arm-linux-gnueabihf qemu-system-arm
+
+ - name: Run VC4 Tests
+ run: |
+ ./tools/testing/kunit/kunit.py run \
+ --kunitconfig=drivers/gpu/drm/vc4/tests \
+ --cross_compile=arm-linux-gnueabihf- --arch=arm
+
+ vc4-arm64:
+ name: VC4 Unit Tests on ARM64
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install Dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y gcc-aarch64-linux-gnu qemu-system-arm
+
+ - name: Run VC4 Tests
+ run: |
+ ./tools/testing/kunit/kunit.py run \
+ --kunitconfig=drivers/gpu/drm/vc4/tests \
+ --cross_compile=aarch64-linux-gnu- --arch=arm64
--
2.33.1