[dpdk-dev] [PATCH v4 09/10] test/ipsec: introduce functional test

Ananyev, Konstantin konstantin.ananyev at intel.com
Thu Dec 20 14:03:46 CET 2018



> 
> 
> On 12/14/2018 9:53 PM, Konstantin Ananyev wrote:
> > +static struct unit_test_suite ipsec_testsuite  = {
> > +	.suite_name = "IPsec NULL Unit Test Suite",
> > +	.setup = testsuite_setup,
> > +	.teardown = testsuite_teardown,
> > +	.unit_test_cases = {
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_crypto_inb_burst_null_null_wrapper),
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_crypto_outb_burst_null_null_wrapper),
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_inline_inb_burst_null_null_wrapper),
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_inline_outb_burst_null_null_wrapper),
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_replay_inb_inside_null_null_wrapper),
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_replay_inb_outside_null_null_wrapper),
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_replay_inb_repeat_null_null_wrapper),
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_replay_inb_inside_burst_null_null_wrapper),
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_crypto_inb_burst_2sa_null_null_wrapper),
> > +		TEST_CASE_ST(ut_setup, ut_teardown,
> > +			test_ipsec_crypto_inb_burst_2sa_4grp_null_null_wrapper),
> > +		TEST_CASES_END() /**< NULL terminate unit test array */
> > +	}
> > +};
> > +
> test case for lookaside proto and inline proto case should also be added
> here.

Do you mean one with dummy security context and session as we done for inline-crypto here?
Konstantin



More information about the dev mailing list