Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Standardize the way kernel's testing modules report results

オープン
#414 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c, rust

調査の方向性

まず 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:

  1. tools/testing/selftests/kselftest_module.h and tools/testing/selftests/kselftest/module.sh provide a standard way to write a test module which can be loaded from kselftest. These modules are found in the lib/. One such example is lib test 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.
  2. The second type of test modules are scattered around the kernel code. They are enabled by separate config options as needed. lkdtm suite is one example. Its module is found in the drivers/lkdtm.

  • [] 41eefc46a3a4682976afb5f8c4b9734ed6bfd406 has converted test_strscpy selftest to kunit test. remove strscpy selftest.
主要言語
Python
スター
14
フォーク
32
平均マージ
13時間 53分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kernelci/kernelci-project のほかの issue

kernelci/kernelci-project の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。