Skip to content

Commit

Permalink
net: microchip: sparx5: Adding KUNIT test for the VCAP API
Browse files Browse the repository at this point in the history
This provides a KUNIT test suite for the VCAP APIs encoding functionality.

Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
  • Loading branch information
steen-hegelund-mchp authored and intel-lab-lkp committed Oct 18, 2022
1 parent a0a91b9 commit bcdfdb2
Show file tree
Hide file tree
Showing 5 changed files with 1,595 additions and 0 deletions.
13 changes: 13 additions & 0 deletions drivers/net/ethernet/microchip/vcap/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,17 @@ config VCAP
characteristics. Look in the datasheet for the VCAP specifications for the
specific switchcore.

config VCAP_KUNIT_TEST
bool "KUnit test for VCAP library" if !KUNIT_ALL_TESTS
depends on KUNIT
depends on KUNIT=y && VCAP=y && y
default KUNIT_ALL_TESTS
help
This builds unit tests for the VCAP library.

For more information on KUnit and unit tests in general, please refer
to the KUnit documentation in Documentation/dev-tools/kunit/.

If unsure, say N.

endif # NET_VENDOR_MICROCHIP
Loading

0 comments on commit bcdfdb2

Please sign in to comment.