aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/refcount.c
diff options
context:
space:
mode:
authorLee Jones <[email protected]>2025-05-01 08:19:13 +0000
committerLee Jones <[email protected]>2025-05-14 08:25:07 +0000
commitcfa40f29df08c7ad296c81a2fac677830af83ec7 (patch)
treecaf0755ee87712b8ad695782dd718fa75aaca725 /rust/helpers/refcount.c
parentleds: led-test: Fill out the registration test to cover more test cases (diff)
downloadkernel-cfa40f29df08c7ad296c81a2fac677830af83ec7.tar.gz
kernel-cfa40f29df08c7ad296c81a2fac677830af83ec7.zip
leds: led-test: Provide tests for the lookup and get infrastructure
This API allows providers to offer an specific LED to be looked-up by a consumer. Consumers are then able to describe the aforementioned LED and take a reference on it. For convenience, we're testing both sides of the API in just one test function here. In reality, both the provider and the consumer would be logistically orthogonal. CMD: tools/testing/kunit/kunit.py run --kunitconfig drivers/leds RESULTS: [16:38:57] Configuring KUnit Kernel ... [16:38:57] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=20 [16:39:02] Starting KUnit Kernel (1/1)... [16:39:02] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [16:39:03] ===================== led (2 subtests) ===================== [16:39:03] [PASSED] led_test_class_register [16:39:03] [PASSED] led_test_class_add_lookup_and_get [16:39:03] ======================= [PASSED] led ======================= [16:39:03] ============================================================ [16:39:03] Testing complete. Ran 2 tests: passed: 2 [16:39:03] Elapsed time: 6.255s total, 0.001s configuring, 5.131s building, 1.106s running Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'rust/helpers/refcount.c')
0 files changed, 0 insertions, 0 deletions