selftests: ir: add config file
PATCH 1/1 selftests: ir: add config file
Building and running the subsuite 'ir' of kselftest, shows the
following issues:
ir_loopback: module rc-loopback is not found in /lib/modules/6.2.0-rc8-next-20230220 [SKIP]
By creating a config file with RC_LOOPBACK=m, LIRC=y and a few IR_*DECODER=m in the selftests/ir/ directory the tests pass.
--- tools/testing/selftests/ir/config | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tools/testing/selftests/ir/config
tools/testing/selftests/ir/config new file +13 -0
@@ -0,0 +1,13 @@ +CONFIG_LIRC=y +CONFIG_IR_IMON_DECODER=m +CONFIG_IR_JVC_DECODER=m +CONFIG_IR_MCE_KBD_DECODER=m +CONFIG_IR_NEC_DECODER=m +CONFIG_IR_RC5_DECODER=m +CONFIG_IR_RC6_DECODER=m +CONFIG_IR_RCMM_DECODER=m +CONFIG_IR_SANYO_DECODER=m +CONFIG_IR_SHARP_DECODER=m +CONFIG_IR_SONY_DECODER=m +CONFIG_IR_XMP_DECODER=m +CONFIG_RC_LOOPBACK=m
Signature · 1 line
2.39.1
Shuah Khan
maintainerQuoted 4 lines · Anders Roxell
Building and running the subsuite 'ir' of kselftest, shows the
following issues:
ir_loopback: module rc-loopback is not found in/lib/modules/6.2.0-rc8-next-20230220[SKIP]
Why is this an issue? I am not saying this patch isn't necessary. But the behavior above is valid behavior when config options aren't enabled?
Perhaps the commit log could reflect that adding config file with the right options allows the test to run as opposed to describing a valid behavior is an issue.
Quoted 19 lines
By creating a config file with RC_LOOPBACK=m, LIRC=y and a few IR_*DECODER=m in the selftests/ir/ directory the tests pass.
Reported-by Naresh Kamboju <[email protected]>Signed-off-by Anders Roxell <[email protected]>--- tools/testing/selftests/ir/config | 13 +++++++++++++ 1 file changed, 13 insertions(+)create mode 100644
tools/testing/selftests/ir/configtools/testing/selftests/ir/config new file +3
-0@@ -0,0 +1,13 @@ +CONFIG_LIRC=y +CONFIG_IR_IMON_DECODER=m +CONFIG_IR_JVC_DECODER=m
tools/testing/selftests/ir/config line 13
Quoted 10 lines
tools/testing/selftests/ir/config new file +10
-0+CONFIG_IR_MCE_KBD_DECODER=m +CONFIG_IR_NEC_DECODER=m +CONFIG_IR_RC5_DECODER=m +CONFIG_IR_RC6_DECODER=m +CONFIG_IR_RCMM_DECODER=m +CONFIG_IR_SANYO_DECODER=m +CONFIG_IR_SHARP_DECODER=m +CONFIG_IR_SONY_DECODER=m +CONFIG_IR_XMP_DECODER=m +CONFIG_RC_LOOPBACK=m
thanks,
-- Shuah