Skip to content

Commit 833e2a7

Browse files
ci: add workflow to run KUnit tests
1 parent 4d5d09b commit 833e2a7

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/kunit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: KUnit
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
kunit:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install dependencies
17+
run: |
18+
sudo apt update
19+
sudo apt build-dep linux
20+
- name: Prepare kernel source code
21+
run: |
22+
apt source linux
23+
cp -r strider linux-*/lib/
24+
echo "source \"lib/strider/Kconfig\"" >> linux-*/lib/Kconfig
25+
echo "obj-y += strider/" >> linux-*/lib/Makefile
26+
- name: Run AC test
27+
run: linux-*/tools/testing/kunit/kunit.py run strider_ac

0 commit comments

Comments
 (0)