Standardize the way kernel's testing modules report results
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- operating-systems, testing-qa
Hướng nghiên cứu
Bắt đầu bằng việc xem xét tools/testing/selftests/kselftest_module.h và tools/testing/selftests/kselftest/module.sh, sau đó kiểm tra các mô-đun kiểm thử lib được liệt kê và bộ drivers/lkdtm. So sánh cách các mô-đun này hiện được nạp, dỡ và báo cáo kết quả, bao gồm cả việc chuyển đổi test_strscpy được tham chiếu trong checklist. Được xem là hoàn tất khi đã ghi lại các mẫu ghi log và báo cáo trạng thái hiện có, đồng thời đề xuất một cách tiếp cận tiêu chuẩn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 14
- Fork
- 32
- Merge trung bình
- 13 giờ 53 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kernelci/kernelci-project
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
kernelci/kernelci-project#585 ·
-
question sysadmin
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
kernelci/kernelci-project#580 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
kernelci/kernelci-project#579 ·
-
Make sure kunit tests working properly, especially cryptoCó thể làm lại được @nuclearcat đã nhận 181 ngày trước và không có pull request nào đang mở. Đang mở
kernelci/kernelci-project#568 · 1 người được giao ·
-
Proposal for weekly conference calls (and probably others)Có thể làm lại được @nuclearcat đã nhận 264 ngày trước và không có pull request nào đang mở. Đang mở
kernelci/kernelci-project#562 · 10 bình luận · 1 người được giao ·
Tất cả issue của kernelci/kernelci-project
Issue tương tự
-
bug needs-triage priority:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
yeongseon/azure-functions-logging-python#583 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation needs-triage priority:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
yeongseon/azure-functions-validation-python#546 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PHP workflow streaming requests buffer the full SSE responseCó thể đã có người làm @Winoren đã nhận hôm nay. Đang mởreview: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
langgenius/dify#44270 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
P4: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
jeffknupp/association#523 ·
-
bug help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
DarkStarSystems/pcons#229 ·
Maintainer thường phản hồi trong vòng 1 ngày