test/crypto: refactor unit tests into one combined array
This patch refactors most of unit tests to be contained in one combined array, and run depending on the PMD capabilities instead of providing multiple array with tests for individual PMDs. Only a subset of unit tests was merged into one array - it combines all tests originally meant to be run on these PMDs: null, aesni_mb, aesni_gcm, openssl, qat, sw_snow3g, sw_kasumi, sw_zuc. Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com> Tested-by: Akhil Goyal <akhil.goyal@nxp.com>
This commit is contained in:
parent
8a7e5aaf60
commit
a7cfae49fd
File diff suppressed because it is too large
Load Diff
@ -804,7 +804,7 @@ test_blockcipher_all_tests(struct rte_mempool *mbuf_pool,
|
||||
else if (driver_id == nitrox_pmd)
|
||||
target_pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_NITROX;
|
||||
else
|
||||
TEST_ASSERT(0, "Unrecognized cryptodev type");
|
||||
return -ENOTSUP; /* Unrecognized cryptodev type */
|
||||
|
||||
for (i = 0; i < n_test_cases; i++) {
|
||||
const struct blockcipher_test_case *tc = &tcs[i];
|
||||
|
@ -1208,8 +1208,7 @@ static const struct blockcipher_test_case triple_des_chain_test_cases[] = {
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_QAT |
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC |
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC |
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_CAAM_JR |
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_MB
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_CAAM_JR
|
||||
},
|
||||
{
|
||||
.test_descr = "3DES-128-CBC HMAC-SHA1 Decryption Digest"
|
||||
@ -1221,8 +1220,7 @@ static const struct blockcipher_test_case triple_des_chain_test_cases[] = {
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_QAT |
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC |
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC |
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_CAAM_JR |
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_MB
|
||||
BLOCKCIPHER_TEST_TARGET_PMD_CAAM_JR
|
||||
},
|
||||
{
|
||||
.test_descr = "3DES-128-CBC HMAC-SHA1 Encryption Digest"
|
||||
|
Loading…
Reference in New Issue
Block a user