Skip to content

kselftests: add new package for Linux kernel selftests#1377

Open
aparcar wants to merge 1 commit intomainfrom
claude/add-kernel-selftests-package-ZmaO3
Open

kselftests: add new package for Linux kernel selftests#1377
aparcar wants to merge 1 commit intomainfrom
claude/add-kernel-selftests-package-ZmaO3

Conversation

@aparcar
Copy link
Copy Markdown
Owner

@aparcar aparcar commented Jan 30, 2026

Add a package definition for building and installing Linux kernel
selftests. The package is split into separate sub-packages for each
test category to allow users to install only the tests they need,
saving storage space on constrained devices.

Available test categories:

  • kselftests-size: Binary size test
  • kselftests-kcmp: Process comparison tests
  • kselftests-rtc: Real-time clock tests
  • kselftests-timers: Timer subsystem tests
  • kselftests-futex: Futex tests
  • kselftests-exec: Program execution tests
  • kselftests-clone3: clone3 syscall tests
  • kselftests-openat2: openat2 syscall tests
  • kselftests-mincore: mincore syscall tests
  • kselftests-mqueue: POSIX message queue tests
  • kselftests-net: Networking stack tests
  • kselftests-sigaltstack: Signal alternate stack tests
  • kselftests-splice: splice syscall tests
  • kselftests-sync: sync_file_range tests

Tests are installed to /usr/libexec/kselftests//

https://claude.ai/code/session_01XfFefb6yxjWe5fi1Fu53MS

@aparcar aparcar force-pushed the claude/add-kernel-selftests-package-ZmaO3 branch 6 times, most recently from 596bc45 to 858e9c6 Compare January 31, 2026 12:53
Extend the existing kselftests-bpf package to include additional kernel
selftest categories. Each category is a separate installable package to
allow users to install only the tests they need, saving storage space.

Available test packages:
- kselftests-bpf: BPF test suite (test_verifier, bpf_testmod)
- kselftests-size: Binary size test
- kselftests-kcmp: Process comparison tests
- kselftests-rtc: Real-time clock tests
- kselftests-timers: Timer subsystem tests
- kselftests-futex: Futex tests
- kselftests-exec: Program execution tests
- kselftests-clone3: clone3 syscall tests
- kselftests-openat2: openat2 syscall tests
- kselftests-mincore: mincore syscall tests
- kselftests-mqueue: POSIX message queue tests
- kselftests-net: Networking stack tests
- kselftests-sigaltstack: Signal alternate stack tests
- kselftests-splice: splice syscall tests
- kselftests-sync: sync_file_range tests

Tests are installed to /usr/libexec/kselftests/<category>/

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Paul Spooren <mail@aparcar.org>
@aparcar aparcar force-pushed the claude/add-kernel-selftests-package-ZmaO3 branch from 858e9c6 to 5d8e1bf Compare January 31, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant