Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ DragonOS是一个面向云计算轻量化场景的,完全自主内核的,提

- 文档:在`docs/`目录下
- 内核:在`kernel/`目录下
- 自行编写的单元测试程序:在`user/apps/c_unitest`目录下
- 自行编写的用户态单元测试程序:在`user/apps/tests/dunitest`目录下
- gvisor系统调用测试程序:根据用户给出的程序代码片段来读取测试代码。如果用户没有提供,就尝试寻找,如果找不到,则从 https://cnb.cool/DragonOS-Community/gvisor/-/tree/dragonos/release-20250616.0/test/syscalls/linux 下面获取(下载文件然后再尝试读取)


Expand Down
2 changes: 1 addition & 1 deletion docs/kernel/ktest/gvisor_syscall_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ This section explains how to fix gvisor test cases, helping developers quickly p
- If the problem is complex, we recommend first using Plan mode to develop a repair plan, then proceed with the fix.
- If the AI assistant has difficulty locating the issue, ask it to add minimal logging at appropriate kernel locations to assist in diagnosis
- If terminal logs are truncated, check serial_opt.txt for complete logs and share them with the AI assistant
- If the AI assistant struggles to locate the issue, have it write simple test programs under `user/apps/c_unitest` to address the problem. These test programs will be compiled and installed in DragonOS's bin directory.
- If the AI assistant struggles to locate the issue, ask it to add a focused [dunitest](./dunitest.md) test that exercises the behavior in DragonOS.
- Always remind the AI assistant to look for reusable code and establish reasonable, appropriate abstractions. Otherwise, the code may become redundant!

3. **Verify Repair Effectiveness**
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/kernel/ktest/gvisor_syscall_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ gVisor 是 Google 开发的容器运行时沙箱,包含了大量的系统调
- 如果问题较为复杂,我们建议先使用Plan模式制定修复计划,然后再修复。
- 如果AI助手难以定位问题,可以让他在内核的适当位置添加少量日志辅助定位
- 如果终端日志被截断,可以到serial_opt.txt去查看完整日志,复制给AI助手
- 如果AI助手难以定位问题,那么可以让他在`user/apps/c_unitest`下面写简单的测试程序来修复问题。这些测试程序会被编译安装到DragonOS的bin目录下。
- 如果 AI 助手难以定位问题,可以编写针对该行为的 [dunitest](./dunitest.md) 用例,在 DragonOS 中运行。
- 时刻注意提醒AI助手寻找是否有可以复用的代码、建立合理且适当的抽象。不然代码会很冗余!

3. **验证修复效果**
Expand Down
6 changes: 3 additions & 3 deletions user/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ SYSROOT_INSTALL_MARKER = $(ROOT_PATH)/bin/sysroot/.dadk_install_marker
# Sysroot layout version. Layout 1 is the legacy layout where sysconfig was
# copied into bin/sysroot via cp -r, leaking host metadata into the image.
# Bumping this version triggers a one-time removal and DADK reinstall of
# bin/sysroot (keeping bin/dadk_cache), so stale files left by the old
# copy_sysconfig step are not imported into the image again as app files.
SYSROOT_LAYOUT_VERSION = 2
# bin/sysroot (keeping bin/dadk_cache) to remove files from previous layouts.
# Layout 3 removes the legacy C test binaries.
SYSROOT_LAYOUT_VERSION = 3
ROOTFS_MANIFEST ?= default

ECHO:
Expand Down
2 changes: 0 additions & 2 deletions user/apps/c_unitest/.gitignore

This file was deleted.

41 changes: 0 additions & 41 deletions user/apps/c_unitest/Makefile

This file was deleted.

43 changes: 0 additions & 43 deletions user/apps/c_unitest/default.nix

This file was deleted.

179 changes: 0 additions & 179 deletions user/apps/c_unitest/dmesg.c

This file was deleted.

Loading
Loading