Skip to content

Commit 67d6375

Browse files
steen-hegelund-mchpdavem330
authored andcommitted
net: microchip: sparx5: Adding KUNIT test for the VCAP API
This provides a KUNIT test suite for the VCAP APIs encoding functionality. The test can be run by adding these settings in a .kunitconfig file CONFIG_KUNIT=y CONFIG_NET=y CONFIG_VCAP_KUNIT_TEST=y Signed-off-by: Steen Hegelund <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5d7e5b0 commit 67d6375

File tree

5 files changed

+1596
-0
lines changed

5 files changed

+1596
-0
lines changed

drivers/net/ethernet/microchip/vcap/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,17 @@ config VCAP
3636
characteristics. Look in the datasheet for the VCAP specifications for the
3737
specific switchcore.
3838

39+
config VCAP_KUNIT_TEST
40+
bool "KUnit test for VCAP library" if !KUNIT_ALL_TESTS
41+
depends on KUNIT
42+
depends on KUNIT=y && VCAP=y && y
43+
default KUNIT_ALL_TESTS
44+
help
45+
This builds unit tests for the VCAP library.
46+
47+
For more information on KUnit and unit tests in general, please refer
48+
to the KUnit documentation in Documentation/dev-tools/kunit/.
49+
50+
If unsure, say N.
51+
3952
endif # NET_VENDOR_MICROCHIP

0 commit comments

Comments
 (0)