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 <steen.hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5d7e5b0401
commit
67d637516f
@ -1178,3 +1178,7 @@ void vcap_set_tc_exterr(struct flow_cls_offload *fco, struct vcap_rule *vrule)
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(vcap_set_tc_exterr);
|
||||
|
||||
#ifdef CONFIG_VCAP_KUNIT_TEST
|
||||
#include "vcap_api_kunit.c"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user