test/crypto: build block-cipher suite dynamically
authorCiara Power <ciara.power@intel.com>
Wed, 12 May 2021 11:36:55 +0000 (11:36 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 12 May 2021 14:17:07 +0000 (16:17 +0200)
commite65da89c15e0e13ac9f68cbfbcbe1a3d4e9aef6d
tree84deefaa6d5d7f9a218c4a6e4868a9919bdf7448
parent085f128aac8119a3cd1b903398dc92771da4ad38
test/crypto: build block-cipher suite dynamically

In the existing implementation, the blockcipher test cases are being run
and reported as one test case per type, even though multiple test cases
are hidden in each. For example, "test_AES_chain_all" runs 46 test cases.
Each blockcipher type should have a testsuite instead.

The blockcipher testsuite is dynamically built, depending on the
blockcipher type chosen. The testcase struct is modified to allow
running a testcase with data, which is used for data required when
running each blockcipher testcase.

The blockcipher testsuites are added dynamically to parent testsuites
as sub-testsuites where needed.

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
Tested-by: Ruifeng Wang <ruifeng.wang@arm.com>
app/test/test.c
app/test/test.h
app/test/test_cryptodev.c
app/test/test_cryptodev_blockcipher.c
app/test/test_cryptodev_blockcipher.h
doc/guides/rel_notes/release_21_05.rst