From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A626F1B902 for ; Fri, 12 Oct 2018 16:35:37 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Oct 2018 07:35:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,372,1534834800"; d="scan'208";a="80715248" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga007.jf.intel.com with ESMTP; 12 Oct 2018 07:35:35 -0700 Received: from wgcvswdev002.ir.intel.com (wgcvswdev002.ir.intel.com [10.102.246.106]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w9CEZYBT000460; Fri, 12 Oct 2018 15:35:34 +0100 Received: from wgcvswdev002.ir.intel.com (localhost [127.0.0.1]) by wgcvswdev002.ir.intel.com with ESMTP id w9CEXQ9M021428; Fri, 12 Oct 2018 15:33:26 +0100 Received: (from hvemulax@localhost) by wgcvswdev002.ir.intel.com with œ id w9CEXQmh021424; Fri, 12 Oct 2018 15:33:26 +0100 From: Hari kumar Vemula To: dev@dpdk.org Cc: bruce.richardson@intel.com, reshma.pattan@intel.com, Hari Kumar Vemula Date: Fri, 12 Oct 2018 15:33:16 +0100 Message-Id: <1539354799-21027-3-git-send-email-hari.kumarx.vemula@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1537545528-27848-1-git-send-email-hari.kumarx.vemula@intel.com> References: <1537545528-27848-1-git-send-email-hari.kumarx.vemula@intel.com> Subject: [dpdk-dev] [PATCH v2 2/5] test: add quick run tests under test-fast suite X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 14:35:38 -0000 From: Hari Kumar Vemula Added test cases that runs quickly under test fast category Signed-off-by: Hari Kumar Vemula --- 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