[3/5] test: add performance tests under test-perf suite
diff mbox series

Message ID 1537545528-27848-4-git-send-email-hari.kumarx.vemula@intel.com
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
Series
  • create different meson test targets
Related show

Checks

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

Commit Message

Hari Kumar Vemula Sept. 21, 2018, 3:58 p.m. UTC
Grouped performace test cases under test-perf category

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

Patch
diff mbox series

diff --git a/test/test/meson.build b/test/test/meson.build
index 087d635e1..edda0b5b7 100644
--- a/test/test/meson.build
+++ b/test/test/meson.build
@@ -182,6 +182,32 @@  fast_test_names =[
         ['version_autotest', 'parallel', true],
 ]
 
+#All test cases in perf_test_names list are non-parallel
+perf_test_names = [
+        ['ring_perf_autotest'],
+        ['mempool_perf_autotest'],
+        ['memcpy_perf_autotest'],
+        ['hash_perf_autotest'],
+        ['timer_perf_autotest'],
+        ['reciprocal_division'],
+        ['reciprocal_division_perf'],
+        ['lpm_perf_autotest'],
+        ['red_all'],
+        ['barrier_autotest'],
+        ['hash_multiwriter_autotest'],
+        ['timer_racecond_autotest'],
+        ['efd_autotest'],
+        ['hash_functions_autotest'],
+        ['eventdev_selftest_sw'],
+        ['member_perf_autotest'],
+        ['efd_perf_autotest'],
+        ['lpm6_perf_autotest'],
+        ['red_perf'],
+        ['distributor_perf_autotest'],
+        ['ring_pmd_perf_autotest'],
+        ['pmd_perf_autotest'],
+]
+
 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
 	test_deps += 'pdump'
 endif
@@ -244,6 +270,7 @@  if get_option('tests')
 	# some perf tests (eg: memcpy perf autotest)take very long
 	# to complete, so timeout to 10 minutes
         timeout_seconds_fast = 10
+	timeout_seconds = 600
 
         foreach arg : fast_test_names
 		bool_value = arg[2]
@@ -253,5 +280,12 @@  if get_option('tests')
 			is_parallel : bool_value,
 			suite : 'test-fast')
         endforeach
+        foreach arg : perf_test_names
+                 test(arg[0], dpdk_test,
+			env : ['DPDK_TEST=' + arg[0]],
+                        timeout : timeout_seconds,
+                        is_parallel : false,
+                        suite : 'test-perf')
+        endforeach
 
 endif