[3/3] app/test: add more cryptodev tests to meson suite

Message ID 20230307171734.2872005-4-ciara.power@intel.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series cryptodev test improvements |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/github-robot: build success github build: passed
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS

Commit Message

Power, Ciara March 7, 2023, 5:17 p.m. UTC
  The meson driver-tests suite did not include some ipsec_mb SW Crypto
PMD tests, and QAT tests. These are now added to avoid them being missed
if the user runs tests only using the meson suite infrastructure.

Signed-off-by: Ciara Power <ciara.power@intel.com>
---
 app/test/meson.build | 5 +++++
 1 file changed, 5 insertions(+)
  

Comments

Akhil Goyal March 7, 2023, 5:23 p.m. UTC | #1
> Subject: [EXT] [PATCH 3/3] app/test: add more cryptodev tests to meson suite
> 
> The meson driver-tests suite did not include some ipsec_mb SW Crypto
> PMD tests, and QAT tests. These are now added to avoid them being missed
> if the user runs tests only using the meson suite infrastructure.
> 
> Signed-off-by: Ciara Power <ciara.power@intel.com>
> ---
This patch is ok for now, but it is not scalable.
We should look for a way to consolidate all cryptodev autotests under one name.
  
Power, Ciara March 7, 2023, 5:32 p.m. UTC | #2
Hi Akhil,

> -----Original Message-----
> From: Akhil Goyal <gakhil@marvell.com>
> Sent: Tuesday 7 March 2023 17:23
> To: Power, Ciara <ciara.power@intel.com>; dev@dpdk.org
> Cc: Ji, Kai <kai.ji@intel.com>
> Subject: RE: [EXT] [PATCH 3/3] app/test: add more cryptodev tests to meson
> suite
> 
> > Subject: [EXT] [PATCH 3/3] app/test: add more cryptodev tests to meson
> > suite
> >
> > The meson driver-tests suite did not include some ipsec_mb SW Crypto
> > PMD tests, and QAT tests. These are now added to avoid them being
> > missed if the user runs tests only using the meson suite infrastructure.
> >
> > Signed-off-by: Ciara Power <ciara.power@intel.com>
> > ---
> This patch is ok for now, but it is not scalable.
> We should look for a way to consolidate all cryptodev autotests under one
> name.

I actually had started out to add all the missing cryptodev tests (bcmfs, caam_jr, ccp, nitrox etc.),
But the docs mention it's up to the maintainer/developer to decide whether the tests should be included in the meson test suite or not.
So, because I was unaware of the reasoning behind leaving them out, I just stuck to adding QAT + ipsec_mb ones in.

I guess, if we have them all under one name, it would remove that level of granularity for which tests are added.
Not sure if that is needed or not?

Thanks,
Ciara
  
Akhil Goyal March 7, 2023, 5:42 p.m. UTC | #3
Hi Ciara,
> Hi Akhil,
> 
> > -----Original Message-----
> > From: Akhil Goyal <gakhil@marvell.com>
> > Sent: Tuesday 7 March 2023 17:23
> > To: Power, Ciara <ciara.power@intel.com>; dev@dpdk.org
> > Cc: Ji, Kai <kai.ji@intel.com>
> > Subject: RE: [EXT] [PATCH 3/3] app/test: add more cryptodev tests to meson
> > suite
> >
> > > Subject: [EXT] [PATCH 3/3] app/test: add more cryptodev tests to meson
> > > suite
> > >
> > > The meson driver-tests suite did not include some ipsec_mb SW Crypto
> > > PMD tests, and QAT tests. These are now added to avoid them being
> > > missed if the user runs tests only using the meson suite infrastructure.
> > >
> > > Signed-off-by: Ciara Power <ciara.power@intel.com>
> > > ---
> > This patch is ok for now, but it is not scalable.
> > We should look for a way to consolidate all cryptodev autotests under one
> > name.
> 
> I actually had started out to add all the missing cryptodev tests (bcmfs, caam_jr,
> ccp, nitrox etc.),
> But the docs mention it's up to the maintainer/developer to decide whether the
> tests should be included in the meson test suite or not.
> So, because I was unaware of the reasoning behind leaving them out, I just stuck
> to adding QAT + ipsec_mb ones in.
> 
> I guess, if we have them all under one name, it would remove that level of
> granularity for which tests are added.
> Not sure if that is needed or not?
> 
From the past some time, we have added a lot of capability checks in the test cases
So that the same case may be run on all the PMDs.

I believe it should be doable at some point going forward.
This will help in reducing the unnecessary bloating of the code.
We should put in some effort to make it similar to other device test cases.
PMD specific suites are only in case of cryptodev. This should be fixed.
Moreover, it would be beneficial for all the PMDs to be tested at similar levels
Of granularity.

Regards,
Akhil
  

Patch

diff --git a/app/test/meson.build b/app/test/meson.build
index f34d19e3c3..8c30442b62 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -300,13 +300,18 @@  perf_test_names = [
 driver_test_names = [
         'cryptodev_aesni_gcm_autotest',
         'cryptodev_aesni_mb_autotest',
+        'cryptodev_chacha_poly_mb_autotest',
         'cryptodev_cn10k_autotest',
         'cryptodev_cn9k_autotest',
+        'cryptodev_cpu_aesni_mb_autotest',
+        'cryptodev_cpu_aesni_gcm_autotest',
         'cryptodev_dpaa2_sec_autotest',
         'cryptodev_dpaa_sec_autotest',
         'cryptodev_null_autotest',
         'cryptodev_openssl_autotest',
         'cryptodev_qat_autotest',
+        'cryptodev_qat_asym_autotest',
+        'cryptodev_qat_raw_api_autotest',
         'cryptodev_sw_armv8_autotest',
         'cryptodev_sw_kasumi_autotest',
         'cryptodev_sw_mvsam_autotest',