Skip to content

Commit 2a3660c

Browse files
committed
ci: Run KUnit tests on x86_64 and arm64
1 parent a9acfaa commit 2a3660c

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Install dependencies
4040
run: |
4141
sudo apt-get update
42-
sudo apt-get install -y build-essential libncurses-dev bison flex libssl-dev libelf-dev bc clang lld llvm
42+
sudo apt-get install -y build-essential libncurses-dev bison flex libssl-dev libelf-dev bc clang lld llvm qemu-system-x86 qemu-system-aarch64
4343
- name: Install Rust
4444
uses: dtolnay/rust-toolchain@master
4545
with:
@@ -88,6 +88,11 @@ jobs:
8888
- name: Build rustdoc
8989
run: |
9090
make -C linux O=../out LLVM=1 ARCH=${{ matrix.arch }} rustdoc
91+
- name: Run KUnit tests
92+
if: matrix.arch == 'x86_64' || matrix.arch == 'arm64'
93+
working-directory: linux
94+
run: |
95+
./tools/testing/kunit/kunit.py exec --build_dir=../out --arch=${{ matrix.arch }} --make_options LLVM=1
9196
9297
rustfmt:
9398
runs-on: ubuntu-latest

configs/arm64.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
CONFIG_MMU=y
22
CONFIG_RUST=y
33
CONFIG_DRM_TYR=m
4+
CONFIG_PRINTK=y
5+
CONFIG_SERIAL_AMBA_PL010=y
6+
CONFIG_SERIAL_AMBA_PL010_CONSOLE=y
7+
CONFIG_SERIAL_AMBA_PL011=y
8+
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y

configs/x86_64.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
CONFIG_MMU=y
22
CONFIG_RUST=y
3-
3+
CONFIG_PRINTK=y
4+
CONFIG_SERIAL_8250=y
5+
CONFIG_SERIAL_8250_CONSOLE=y

0 commit comments

Comments
 (0)