[v4,4/5] test: add library dependent tests under test-driver suite

Message ID 1540372032-28642-5-git-send-email-hari.kumarx.vemula@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series None |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Hari Kumar Vemula Oct. 24, 2018, 9:07 a.m. UTC
  From: Hari Kumar Vemula <hari.kumarx.vemula@intel.com>

Added test cases that depend on library as cryptodev

Signed-off-by: Hari Kumar Vemula <hari.kumarx.vemula@intel.com>
---
 test/test/meson.build | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
  

Comments

Bruce Richardson Oct. 24, 2018, 10:17 a.m. UTC | #1
On Wed, Oct 24, 2018 at 10:07:11AM +0100, Hari kumar Vemula wrote:
> From: Hari Kumar Vemula <hari.kumarx.vemula@intel.com>
> 
> Added test cases that depend on library as cryptodev

Commit log could do with a little improvement: It's not that they depend on
a library, but rather on specific drivers.
 
> Signed-off-by: Hari Kumar Vemula <hari.kumarx.vemula@intel.com>
> ---
>  test/test/meson.build | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
> 
> diff --git a/test/test/meson.build b/test/test/meson.build
> index 9e4d7621d..da1dbfac4 100644
> --- a/test/test/meson.build
> +++ b/test/test/meson.build
> @@ -217,6 +217,25 @@ perf_test_names = [
>          'pmd_perf_autotest',
>  ]
>  
> +#All test cases in driver_test_names list are non-parallel
> +driver_test_names = [
> +        'link_bonding_autotest',
> +        'link_bonding_mode4_autotest',
> +        'link_bonding_rssconf_autotest',
> +        'cryptodev_sw_mrvl_autotest',
> +        'cryptodev_dpaa2_sec_autotest',
> +        'cryptodev_dpaa_sec_autotest',
> +        'cryptodev_qat_autotest',
> +        'cryptodev_aesni_mb_autotest',
> +        'cryptodev_openssl_autotest',
> +        'cryptodev_scheduler_autotest',
> +        'cryptodev_aesni_gcm_autotest',
> +        'cryptodev_null_autotest',
> +        'cryptodev_sw_snow3g_autotest',
> +        'cryptodev_sw_kasumi_autotest',
> +        'cryptodev_sw_zuc_autotest',
> +]
> +
  

Patch

diff --git a/test/test/meson.build b/test/test/meson.build
index 9e4d7621d..da1dbfac4 100644
--- a/test/test/meson.build
+++ b/test/test/meson.build
@@ -217,6 +217,25 @@  perf_test_names = [
         'pmd_perf_autotest',
 ]
 
+#All test cases in driver_test_names list are non-parallel
+driver_test_names = [
+        'link_bonding_autotest',
+        'link_bonding_mode4_autotest',
+        'link_bonding_rssconf_autotest',
+        'cryptodev_sw_mrvl_autotest',
+        'cryptodev_dpaa2_sec_autotest',
+        'cryptodev_dpaa_sec_autotest',
+        'cryptodev_qat_autotest',
+        'cryptodev_aesni_mb_autotest',
+        'cryptodev_openssl_autotest',
+        'cryptodev_scheduler_autotest',
+        'cryptodev_aesni_gcm_autotest',
+        'cryptodev_null_autotest',
+        'cryptodev_sw_snow3g_autotest',
+        'cryptodev_sw_kasumi_autotest',
+        'cryptodev_sw_zuc_autotest',
+]
+
 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
 	test_deps += 'pdump'
 endif
@@ -307,4 +326,12 @@  if get_option('tests')
                         suite : 'test-perf')
         endforeach
 
+        foreach arg : driver_test_names
+                test(arg, dpdk_test,
+                        env : ['DPDK_TEST=' + arg],
+                        timeout : timeout_seconds,
+                        is_parallel : false,
+                        suite : 'test-driver')
+        endforeach
+
 endif