# Kernel Testing — DragonOS dev 文档

备注

AI Translation Notice

This document was automatically translated by Qwen/Qwen3-8B model, for reference only.

- Source document: kernel/ktest/index.rst

- Translation time: 2025-05-19 01:41:16

- Translation model: Qwen/Qwen3-8B

Please report issues via Community Channel

# Kernel Testing

> This chapter will introduce how to test the kernel, including manual testing and automated testing.

> We need to perform thorough testing on the kernel as much as possible, so that we can better ensure the stability of the kernel and reduce the difficulty of debugging other modules.

> Setting up comprehensive test cases can help us detect problems as much as possible, preventing us from being “stabbed” by hidden bugs in existing modules when writing new modules.

> Since it is difficult to debug using tools like GDB, manual testing in the kernel is more challenging compared to testing applications.

> For some modules, we can write code for unit testing and output error messages. Unfortunately, not all modules can be unit tested. For example, common modules such as memory management and process management cannot be unit tested.

Other Versions v: V0.2.0

Tags
  V0.1.0
  V0.1.1
  V0.1.10
  V0.1.2
  V0.1.3
  V0.1.4
  V0.1.5
  V0.1.6
  V0.1.7
  V0.1.8
  V0.1.9
  V0.2.0
  V0.3.0
  V0.4.0

Branches
  master