Standardize the way kernel's testing modules report results
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Refactoring
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Ambito
- operating-systems, testing-qa
Direzione di ricerca
Inizia esaminando tools/testing/selftests/kselftest_module.h e tools/testing/selftests/kselftest/module.sh, quindi ispeziona i moduli di test lib elencati e la suite drivers/lkdtm. Confronta il modo in cui questi moduli vengono attualmente caricati e scaricati e riportano i risultati, inclusa la conversione test_strscpy indicata nella checklist. Il lavoro è completato quando vengono documentati i modelli esistenti di logging e di segnalazione dello stato e viene proposto un approccio standard.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 14
- Fork
- 32
- Merge medio
- 10h 18m
- PR unite (30g)
- 5
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kernelci/kernelci-project
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
kernelci/kernelci-project#585 ·
-
question sysadmin
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
kernelci/kernelci-project#580 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
kernelci/kernelci-project#579 ·
-
Make sure kunit tests working properly, especially cryptoForse di nuovo libera @nuclearcat l’ha presa 175 giorni fa e non c’è nessuna pull request aperta. Aperta
kernelci/kernelci-project#568 · 1 assegnatario ·
-
Proposal for weekly conference calls (and probably others)Forse di nuovo libera @nuclearcat l’ha presa 259 giorni fa e non c’è nessuna pull request aperta. Aperta
kernelci/kernelci-project#562 · 10 commenti · 1 assegnatario ·
Tutte le issue di kernelci/kernelci-project
Issue simili
-
Broken links found in docsApertadocs pydanty:is-working
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
pydantic/pydantic-ai#10113 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
GreedyBear-Project/GreedyBear#1727 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
ARM-software/CMSIS-DSP#354 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
kiat/codeAssist#391 ·
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
darnitdevorg/darnit#587 ·
I maintainer di solito rispondono entro 1 giorno