test/crypto: refactor to use sub test suites
The existing implementation runs a giant cryptodev testsuite for most autotests, which in turns runs one setup function regardless of device. This is now broken down into multiple testsuites, that are used as sub-testsuites. Each autotest runs a general crypto parent test suite, to which the sub-testsuites are added. For example, the AESNI_MB test runs "Cryptodev Unit Test Suite", which has a setup function only to configure testsuite params. Creation of vdevs in the setup function is no longer supported, it is expected the user does this when running the app. This autotest previously just ran the cryptodev_testsuite, but now has the smaller sub-testsuites added to the parent suite instead. The same test cases are being run as before. The scheduler autotest creates its own parent testsuite with nested sub-testsuites, rather than using the cryptodev testsuite mentioned above. This is due to it being more complex in execution, by requiring setting different modes before running tests. The scheduler autotest no longer requires the extra test cases to attach/set mode/detach when running the blockcipher test cases for each mode. The attach/set mode/detach functionality is now tested in a sub-testsuite. When running the sub-testsuites for each mode, the attach/set mode/detach happens in the setup and teardown functions for that sub-testsuite. 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>
This commit is contained in:
parent
fbc5367550
commit
8bfdd8a7f0
File diff suppressed because it is too large
Load Diff
@ -222,4 +222,16 @@ process_sym_raw_dp_op(uint8_t dev_id, uint16_t qp_id,
|
||||
struct rte_crypto_op *op, uint8_t is_cipher, uint8_t is_auth,
|
||||
uint8_t len_in_bits, uint8_t cipher_iv_len);
|
||||
|
||||
int
|
||||
check_cipher_capabilities_supported(const enum rte_crypto_cipher_algorithm *ciphers,
|
||||
uint16_t num_ciphers);
|
||||
|
||||
int
|
||||
check_auth_capabilities_supported(const enum rte_crypto_auth_algorithm *auths,
|
||||
uint16_t num_auths);
|
||||
|
||||
int
|
||||
check_aead_capabilities_supported(const enum rte_crypto_aead_algorithm *aeads,
|
||||
uint16_t num_aeads);
|
||||
|
||||
#endif /* TEST_CRYPTODEV_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user