Standardize the way kernel's testing modules report results
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 重构
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
调研方向
首先查看 tools/testing/selftests/kselftest_module.h 和 tools/testing/selftests/kselftest/module.sh,然后检查列出的 lib 测试模块和 drivers/lkdtm 套件。比较这些模块当前如何加载、卸载以及报告结果,包括清单中引用的 test_strscpy 转换。完成的标准是记录现有的日志和状态报告模式,并提出一种标准方法。
由索引模型根据 Issue 内容生成。
描述
We discussed that all kernel testing modules should use a standard way to report results. The log messages should be informative at the same time. Initially, we need to see which kind of logs are being outputted by the current models. Based on this, better improvements should be suggested.
Non-exhaustive list of test suites using test modules:
bpf, sparc
<skip>
lib
test_bitmap
prime_numbers
test_printf
test_scanf
test_strscpy
lkdm
lkdtm module
lock
test-ww_mutex module
net
test_blackhole_dev
user
test_user_copy
firmware
test_firmware
static_keys
test_static_key_base
test_static_keys
memory-hotplug
memory-notifier-error-inject
drivers
test-drm_mm
fpu
test_fpu
ntb
ntb_msi_test
ftrace
trace-printk
ftrace-direct-too
rust
rust_minimal
rust_print
The kselftest only loads and unloads the module. It doesn't check the status of executed tests to decide if test passed or failed.
These tests can be divided into 2 categories of their dependence:
tools/testing/selftests/kselftest_module.handtools/testing/selftests/kselftest/module.shprovide a standard way to write a test module which can be loaded from kselftest. These modules are found in thelib/. One such example islibtest suite. It 5 tests. Each test just loads the test module and exits successfully. It doesn't check the status of the modules if the module test got passed or failed. Every test module has a separate config option to turn on and off.- The second type of test modules are scattered around the kernel code. They are enabled by separate config options as needed.
lkdtmsuite is one example. Its module is found in thedrivers/lkdtm.
- [] 41eefc46a3a4682976afb5f8c4b9734ed6bfd406 has converted test_strscpy selftest to kunit test. remove strscpy selftest.
- 主要语言
- Python
- 星标
- 14
- 派生
- 32
- 平均合并
- 10 小时 18 分钟
- 30 天内合并 PR
- 5
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kernelci/kernelci-project 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 20/100
kernelci/kernelci-project#585 ·
-
question sysadmin
难度 5/5 一周以上 新手友好度 35/100
kernelci/kernelci-project#580 ·
-
难度 5/5 一周以上 新手友好度 30/100
kernelci/kernelci-project#579 ·
-
Make sure kunit tests working properly, especially crypto可能重新可做 @nuclearcat 于 172 天前认领,目前没有进行中的 PR。 未关闭
kernelci/kernelci-project#568 · 已指派 1 人 ·
-
Proposal for weekly conference calls (and probably others)可能重新可做 @nuclearcat 于 255 天前认领,目前没有进行中的 PR。 未关闭
kernelci/kernelci-project#562 · 10 条评论 · 已指派 1 人 ·
查看 kernelci/kernelci-project 的全部 Issue
相似的 Issue
-
first
难度 2/5 1-3 小时 新手友好度 72/100
AcademySoftwareFoundation/rmtc#54 · 1 条评论 ·
-
feature/cohorts feature/feature-flags team/feature-flags
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
License examples/ as MIT可能已有人在做 @PGrayCS 今天认领。 未关闭documentation enhancement example good first issue
难度 2/5 1-3 小时 新手友好度 84/100
speedyk-005/yasbd-lib#383 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
interactions-py/interactions.py#1827 ·
-
Managed start can fail when OpenVMM reads its control capability before NVX writes it可能已有人在做 @ppenna 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复