From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 401282BAE for ; Fri, 18 Jan 2019 18:41:52 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jan 2019 09:41:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,491,1539673200"; d="scan'208";a="107676559" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga007.jf.intel.com with ESMTP; 18 Jan 2019 09:41:50 -0800 Received: from wgcvswdev001.ir.intel.com (wgcvswdev001.ir.intel.com [10.102.246.100]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id x0IHfn3D028422; Fri, 18 Jan 2019 17:41:49 GMT Received: from wgcvswdev001.ir.intel.com (localhost [127.0.0.1]) by wgcvswdev001.ir.intel.com with ESMTP id x0IHfGbH007111; Fri, 18 Jan 2019 17:41:16 GMT Received: (from jmparthx@localhost) by wgcvswdev001.ir.intel.com with œ id x0IHfGbN007105; Fri, 18 Jan 2019 17:41:16 GMT From: Hari Kumar Vemula To: dev@dpdk.org Cc: reshma.pattan@intel.com, bruce.richardson@intel.com, Hari Kumar Vemula Date: Fri, 18 Jan 2019 17:40:45 +0000 Message-Id: <1547833248-6943-3-git-send-email-hari.kumarx.vemula@intel.com> X-Mailer: git-send-email 1.7.12.2 In-Reply-To: <1547833248-6943-1-git-send-email-hari.kumarx.vemula@intel.com> References: <1540450203-13901-1-git-send-email-hari.kumarx.vemula@intel.com> <1547833248-6943-1-git-send-email-hari.kumarx.vemula@intel.com> Subject: [dpdk-dev] [PATCH v6 2/5] test: add quick run tests under fast-tests 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, 18 Jan 2019 17:41:52 -0000 Added test cases that runs quickly under fast tests category Signed-off-by: Hari Kumar Vemula Acked-by: Bruce Richardson --- test/test/meson.build | 107 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 102 insertions(+), 5 deletions(-) diff --git a/test/test/meson.build b/test/test/meson.build index defdbbd22..1d416967c 100644 --- a/test/test/meson.build +++ b/test/test/meson.build @@ -135,6 +135,84 @@ 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 =[ + 'bitratestats_autotest', + 'cryptodev_sw_armv8_autotest', + 'crc_autotest', + 'cryptodev_openssl_asym_autotest', + 'cryptodev_sw_mvsam_autotest', + 'delay_us_sleep_autotest', + 'devargs_autotest', + 'distributor_autotest', + 'eventdev_common_autotest', + 'eventdev_octeontx_autotest', + 'eventdev_sw_autotest', + 'fbarray_autotest', + 'hash_readwrite_autotest', + 'hash_readwrite_lf_autotest', + 'hash_scaling_autotest', + 'ipsec_autotest', + 'kni_autotest', + 'kvargs_autotest', + 'latencystats_autotest', + 'member_autotest', + 'metrics_autotest', + 'pdump_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 @@ -166,11 +244,14 @@ endif default_cflags += '-D_GNU_SOURCE' 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 @@ -196,5 +277,21 @@ 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 + + foreach arg : fast_parallel_test_names + test(arg, dpdk_test, + env : ['DPDK_TEST=' + arg], + args : ['-c f','-n 4', '--file-prefix=@0@'.format(arg)], + timeout : timeout_seconds_fast, + suite : 'fast-tests') + endforeach + foreach arg : fast_non_parallel_test_names + test(arg, dpdk_test, + env : ['DPDK_TEST=' + arg], + timeout : timeout_seconds_fast, + is_parallel : false, + suite : 'fast-tests') + endforeach endif -- 2.17.2