mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
blackhole_dev: convert self-test to KUnit
Convert this very simple smoke test to a KUnit test. Add a missing `htons` call that was spotted[0] by kernel test robot <lkp@intel.com> after initial conversion to KUnit. Link: https://lore.kernel.org/oe-kbuild-all/202502090223.qCYMBjWT-lkp@intel.com/ [0] Signed-off-by: Tamir Duberstein <tamird@gmail.com> Link: https://patch.msgid.link/20250208-blackholedev-kunit-convert-v2-1-182db9bd56ec@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
b6df0523ec
commit
b341f6fd45
@@ -2557,15 +2557,6 @@ config TEST_BPF
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config TEST_BLACKHOLE_DEV
|
||||
tristate "Test blackhole netdev functionality"
|
||||
depends on m && NET
|
||||
help
|
||||
This builds the "test_blackhole_dev" module that validates the
|
||||
data path through this blackhole netdev.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config FIND_BIT_BENCHMARK
|
||||
tristate "Test find_bit functions"
|
||||
help
|
||||
@@ -2888,6 +2879,17 @@ config USERCOPY_KUNIT_TEST
|
||||
on the copy_to/from_user infrastructure, making sure basic
|
||||
user/kernel boundary testing is working.
|
||||
|
||||
config BLACKHOLE_DEV_KUNIT_TEST
|
||||
tristate "Test blackhole netdev functionality" if !KUNIT_ALL_TESTS
|
||||
depends on NET
|
||||
depends on KUNIT
|
||||
default KUNIT_ALL_TESTS
|
||||
help
|
||||
This builds the "blackhole_dev_kunit" module that validates the
|
||||
data path through this blackhole netdev.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config TEST_UDELAY
|
||||
tristate "udelay test driver"
|
||||
help
|
||||
|
||||
Reference in New Issue
Block a user