mbox

[v2,0/4] Replace obsolote test cases.

Message ID 20230528173531.263548-1-arkadiuszx.kusztal@intel.com (mailing list archive)
Headers

Message

Kusztal, ArkadiuszX May 28, 2023, 5:35 p.m. UTC
This patchset removes obsolete test cases for RSA, MOD EXP, MOD INV.
Doing that, new way of handling ut_setup and ut_teardown was proposed.
Now both behave like constructor/desctuctor to the unit tests.
It frees particular alghorithm functions from any kind of responsibility to free resources.
The functionality of the tests was extended, but the number of lines of code was reduced by ~600 lines.

v2:
- fixed build problem with non compile-time constant

Arkadiusz Kusztal (4):
  app/test: remove testsuite calls from ut setup
  app/test: refactor mod exp test case
  app/test: refactor mod inv tests
  app/test: add rsa kat and pwct tests

 app/test/test_cryptodev_asym.c             | 1610 +++++++-------------
 app/test/test_cryptodev_asym_util.h        |   28 -
 app/test/test_cryptodev_mod_test_vectors.h |  631 +-------
 app/test/test_cryptodev_rsa_test_vectors.h |  600 ++++----
 4 files changed, 852 insertions(+), 2017 deletions(-)