DPDK patches and discussions
 help / color / mirror / Atom feed
From: Hari kumar Vemula <hari.kumarx.vemula@intel.com>
To: dev@dpdk.org
Cc: bruce.richardson@intel.com, reshma.pattan@intel.com,
	Hari Kumar Vemula <hari.kumarx.vemula@intel.com>
Subject: [dpdk-dev] [PATCH v2 2/5] test: add quick run tests under test-fast suite
Date: Fri, 12 Oct 2018 15:33:16 +0100	[thread overview]
Message-ID: <1539354799-21027-3-git-send-email-hari.kumarx.vemula@intel.com> (raw)
In-Reply-To: <1537545528-27848-1-git-send-email-hari.kumarx.vemula@intel.com>

From: Hari Kumar Vemula <hari.kumarx.vemula@intel.com>

Added test cases that runs quickly under test fast category

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

diff --git a/test/test/meson.build b/test/test/meson.build
index 8827c02aa..b6443c88a 100644
--- a/test/test/meson.build
+++ b/test/test/meson.build
@@ -122,6 +122,75 @@ test_deps = ['acl',
 	'timer'
 ]
 
+#All test cases in fast_parallel_test_names list are parallel
+fast_parallel_test_names =[
+        'acl_autotest',
+        'alarm_autotest',
+        'atomic_autotest',
+        'byteorder_autotest',
+        'cmdline_autotest',
+        'common_autotest',
+        'cpuflags_autotest',
+        'cycles_autotest',
+        'debug_autotest',
+        'eal_flags_autotest',
+        'eal_fs_autotest',
+        'errno_autotest',
+        'event_ring_autotest',
+        'func_reentrancy_autotest',
+        'flow_classify_autotest',
+        'hash_autotest',
+        'interrupt_autotest',
+        'logs_autotest',
+        'lpm6_autotest',
+        'lpm_autotest',
+        'malloc_autotest',
+        'mbuf_autotest',
+        'memcpy_autotest',
+        'memory_autotest',
+        'mempool_autotest',
+        'memzone_autotest',
+        'meter_autotest',
+        'multiprocess_autotest',
+        'per_lcore_autotest',
+        'prefetch_autotest',
+        'red_autotest',
+        'ring_autotest',
+        'ring_pmd_autotest',
+        'rwlock_autotest',
+        'sched_autotest',
+        'spinlock_autotest',
+        'string_autotest',
+        'table_autotest',
+        'tailq_autotest',
+        'timer_autotest',
+        'user_delay_us',
+        'version_autotest',
+]
+
+#All test cases in fast_non_parallel_test_names list are non-parallel
+fast_non_parallel_test_names =[
+        'cryptodev_sw_armv8_autotest',
+        'crc_autotest',
+        'cryptodev_openssl_asym_autotest',
+        'cryptodev_sw_mvsam_autotest',
+        'devargs_autotest',
+        'distributor_autotest',
+        'eventdev_common_autotest',
+        'eventdev_octeontx_autotest',
+        'eventdev_sw_autotest',
+        'hash_scaling_autotest',
+        'kni_autotest',
+        'kvargs_autotest',
+        'member_autotest',
+        'power_acpi_cpufreq_autotest',
+        'power_autotest',
+        'power_kvm_vm_autotest',
+        'reorder_autotest',
+        'service_autotest',
+        'thash_autotest',
+]
+
 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
 	test_deps += 'pdump'
 endif
@@ -150,11 +219,14 @@ if cc.has_argument('-Wno-format-truncation')
 endif
 
 test_dep_objs = []
-compress_test_dep = dependency('zlib', required: false)
-if compress_test_dep.found()
-	test_dep_objs += compress_test_dep
-	test_sources += 'test_compressdev.c'
-	test_deps += 'compressdev'
+if dpdk_conf.has('RTE_LIBRTE_COMPRESSDEV')
+	compress_test_dep = dependency('zlib', required: false)
+	if compress_test_dep.found()
+		test_dep_objs += compress_test_dep
+		test_sources += 'test_compressdev.c'
+		test_deps += 'compressdev'
+		fast_non_parallel_test_names += 'compressdev_autotest'
+	endif
 endif
 
 foreach d:test_deps
@@ -180,5 +252,25 @@ if get_option('tests')
 	# some perf tests (eg: memcpy perf autotest)take very long
 	# to complete, so timeout to 10 minutes
 	timeout_seconds = 600
+	timeout_seconds_fast = 10
+
+	itr = 0
+        foreach arg : fast_parallel_test_names
+                test(arg, dpdk_test,
+                        env : ['DPDK_TEST=' + arg],
+			args : ['-c f','-n 4', '--file-prefix=test@0@'.format(itr)],
+                        timeout : timeout_seconds_fast,
+                        is_parallel : true,
+                        suite : 'test-fast')
+		itr += 1
+        endforeach
+
+        foreach arg : fast_non_parallel_test_names
+                test(arg, dpdk_test,
+                        env : ['DPDK_TEST=' + arg],
+                        timeout : timeout_seconds_fast,
+                        is_parallel : false,
+                        suite : 'test-fast')
+        endforeach
 
 endif
-- 
2.13.6

  parent reply	other threads:[~2018-10-12 14:35 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-21 15:58 [dpdk-dev] [PATCH 0/5] create different meson test targets Hari Kumar Vemula
2018-09-21 15:58 ` [dpdk-dev] [PATCH 1/5] test: remove existing testcases for categorization Hari Kumar Vemula
2018-09-21 15:58 ` [dpdk-dev] [PATCH 2/5] test: add quick run tests under test-fast suite Hari Kumar Vemula
2018-09-21 16:18   ` Bruce Richardson
2018-09-21 15:58 ` [dpdk-dev] [PATCH 3/5] test: add performance tests under test-perf suite Hari Kumar Vemula
2018-09-21 15:58 ` [dpdk-dev] [PATCH 4/5] test: add library dependent tests under test-driver suite Hari Kumar Vemula
2018-09-21 15:58 ` [dpdk-dev] [PATCH 5/5] test: add dump test cases under test-dump suite Hari Kumar Vemula
2018-10-12 14:33 ` [dpdk-dev] [PATCH v2 0/5] create different meson test targets Hari kumar Vemula
2018-10-23 11:01   ` [dpdk-dev] [PATCH v3 " Hari kumar Vemula
2018-10-23 11:01   ` [dpdk-dev] [PATCH v3 1/5] test: remove existing testcases for categorization Hari kumar Vemula
2018-10-23 11:01   ` [dpdk-dev] [PATCH v3 2/5] test: add quick run tests under test-fast suite Hari kumar Vemula
2018-10-23 13:55     ` Pattan, Reshma
2018-10-23 11:01   ` [dpdk-dev] [PATCH v3 3/5] test: add performance tests under test-perf suite Hari kumar Vemula
2018-10-23 11:01   ` [dpdk-dev] [PATCH v3 4/5] test: add library dependent tests under test-driver suite Hari kumar Vemula
2018-10-23 11:01   ` [dpdk-dev] [PATCH v3 5/5] test: add dump test cases under test-dump suite Hari kumar Vemula
2018-10-24  9:07   ` [dpdk-dev] [PATCH v4 0/5] create different meson test targets Hari kumar Vemula
2018-10-24 10:43     ` Bruce Richardson
2018-10-25  6:49     ` [dpdk-dev] [PATCH v5 " Hari Kumar Vemula
2019-01-18  0:11       ` Thomas Monjalon
2019-01-18 17:40       ` [dpdk-dev] [PATCH v6 " Hari Kumar Vemula
2019-01-18 17:40         ` [dpdk-dev] [PATCH v6 1/5] test: remove existing testcases for categorization Hari Kumar Vemula
2019-01-18 17:40         ` [dpdk-dev] [PATCH v6 2/5] test: add quick run tests under fast-tests suite Hari Kumar Vemula
2019-01-18 17:40         ` [dpdk-dev] [PATCH v6 3/5] test: add performance tests under perf-tests suite Hari Kumar Vemula
2019-01-18 17:40         ` [dpdk-dev] [PATCH v6 4/5] test: add driver dependent tests under driver-tests suite Hari Kumar Vemula
2019-01-18 17:40         ` [dpdk-dev] [PATCH v6 5/5] test: add dump test cases under debug-tests suite Hari Kumar Vemula
2019-01-19  0:06         ` [dpdk-dev] [PATCH v6 0/5] create different meson test targets Thomas Monjalon
2018-10-25  6:49     ` [dpdk-dev] [PATCH v5 1/5] test: remove existing testcases for categorization Hari Kumar Vemula
2018-10-25  6:50     ` [dpdk-dev] [PATCH v5 2/5] test: add quick run tests under fast-tests suite Hari Kumar Vemula
2018-10-25  6:50     ` [dpdk-dev] [PATCH v5 3/5] test: add performance tests under perf-tests suite Hari Kumar Vemula
2018-10-25  6:50     ` [dpdk-dev] [PATCH v5 4/5] test: add driver dependent tests under driver-tests suite Hari Kumar Vemula
2018-10-25  6:50     ` [dpdk-dev] [PATCH v5 5/5] test: add dump test cases under debug-tests suite Hari Kumar Vemula
2018-10-24  9:07   ` [dpdk-dev] [PATCH v4 1/5] test: remove existing testcases for categorization Hari kumar Vemula
2018-10-24  9:07   ` [dpdk-dev] [PATCH v4 2/5] test: add quick run tests under test-fast suite Hari kumar Vemula
2018-10-24  9:07   ` [dpdk-dev] [PATCH v4 3/5] test: add performance tests under test-perf suite Hari kumar Vemula
2018-10-24  9:07   ` [dpdk-dev] [PATCH v4 4/5] test: add library dependent tests under test-driver suite Hari kumar Vemula
2018-10-24 10:17     ` Bruce Richardson
2018-10-24  9:07   ` [dpdk-dev] [PATCH v4 5/5] test: add dump test cases under test-dump suite Hari kumar Vemula
2018-10-24 10:16     ` Bruce Richardson
2018-10-12 14:33 ` [dpdk-dev] [PATCH v2 1/5] test: remove existing testcases for categorization Hari kumar Vemula
2018-10-12 14:33 ` Hari kumar Vemula [this message]
2018-10-17 16:18   ` [dpdk-dev] [PATCH v2 2/5] test: add quick run tests under test-fast suite Pattan, Reshma
2018-10-17 16:22   ` Pattan, Reshma
2018-10-17 16:32   ` Pattan, Reshma
2018-10-12 14:33 ` [dpdk-dev] [PATCH v2 3/5] test: add performance tests under test-perf suite Hari kumar Vemula
2018-10-12 14:33 ` [dpdk-dev] [PATCH v2 4/5] test: add library dependent tests under test-driver suite Hari kumar Vemula
2018-10-12 14:33 ` [dpdk-dev] [PATCH v2 5/5] test: add dump test cases under test-dump suite Hari kumar Vemula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1539354799-21027-3-git-send-email-hari.kumarx.vemula@intel.com \
    --to=hari.kumarx.vemula@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=reshma.pattan@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).