Skip to content

Commit

Permalink
test/crypto: skip some synchronous tests with CPU crypto
Browse files Browse the repository at this point in the history
[ upstream commit 38318ce05459391344acb53a73c9a99537a0bd0f ]

Some synchronous tests are not supported for CPU crypto and
need to be skipped. This commit adds in extra skips for these tests.

Fixes: 55ab4a8 ("test/crypto: disable wireless cases for CPU crypto API")

Signed-off-by: Brian Dooley <brian.dooley@intel.com>
Acked-by: Ciara Power <ciara.power@intel.com>
  • Loading branch information
bdoole1 authored and bluca committed Oct 18, 2023
1 parent 61142ae commit d513b35
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/test/test_cryptodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3673,6 +3673,9 @@ test_kasumi_decryption(const struct kasumi_test_data *tdata)
unsigned ciphertext_len;
struct rte_cryptodev_info dev_info;

if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
return TEST_SKIPPED;

rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info);
uint64_t feat_flags = dev_info.feature_flags;

Expand Down Expand Up @@ -4997,6 +5000,9 @@ test_kasumi_auth_cipher(const struct kasumi_test_data *tdata,
&cap_idx) == NULL)
return -ENOTSUP;

if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
return TEST_SKIPPED;

rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info);

uint64_t feat_flags = dev_info.feature_flags;
Expand Down

0 comments on commit d513b35

Please sign in to comment.