Skip to content

Commit d446469

Browse files
zhangjian3032cminyard
authored andcommitted
ipmi: ssif_bmc: add unit test for state machine
Add some unit test for state machine when in SSIF_ABORTING state. Fixes: dd2bc5c ("ipmi: ssif_bmc: Add SSIF BMC driver") Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com> Message-ID: <20260403143939.434017-1-zhangjian.3032@bytedance.com> Signed-off-by: Corey Minyard <corey@minyard.net>
1 parent c9c99b7 commit d446469

2 files changed

Lines changed: 380 additions & 0 deletions

File tree

drivers/char/ipmi/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ config SSIF_IPMI_BMC
187187
The driver implements the BMC side of the SMBus system
188188
interface (SSIF).
189189

190+
config SSIF_IPMI_BMC_KUNIT_TEST
191+
bool "KUnit tests for SSIF IPMI BMC driver" if !KUNIT_ALL_TESTS
192+
depends on KUNIT
193+
depends on SSIF_IPMI_BMC
194+
default KUNIT_ALL_TESTS
195+
help
196+
This option builds unit tests that exercise the SSIF BMC state
197+
machine, including request handling, response transmission,
198+
and error paths such as aborted or truncated transfers.
199+
190200
config IPMB_DEVICE_INTERFACE
191201
tristate 'IPMB Interface handler'
192202
depends on I2C

0 commit comments

Comments
 (0)