test: reorder test cases in meson
Categorize testcases into suites: - test cases that runs quickly - performance test cases - test cases that depend on specific drivers - logging or dump related test cases Signed-off-by: Hari Kumar Vemula <hari.kumarx.vemula@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
d6ddd17fb1
commit
3d20ffe6dd
@ -135,116 +135,139 @@ test_deps = ['acl',
|
|||||||
'timer'
|
'timer'
|
||||||
]
|
]
|
||||||
|
|
||||||
test_names = [
|
# All test cases in fast_parallel_test_names list are parallel
|
||||||
'acl_autotest',
|
fast_parallel_test_names = [
|
||||||
'alarm_autotest',
|
'acl_autotest',
|
||||||
'atomic_autotest',
|
'alarm_autotest',
|
||||||
'barrier_autotest',
|
'atomic_autotest',
|
||||||
'bitratestats_autotest',
|
'byteorder_autotest',
|
||||||
'byteorder_autotest',
|
'cmdline_autotest',
|
||||||
'cmdline_autotest',
|
'common_autotest',
|
||||||
'common_autotest',
|
'cpuflags_autotest',
|
||||||
'cpuflags_autotest',
|
'cycles_autotest',
|
||||||
'crc_autotest',
|
'debug_autotest',
|
||||||
'cryptodev_qat_autotest',
|
'eal_flags_autotest',
|
||||||
'cryptodev_aesni_mb_autotest',
|
'eal_fs_autotest',
|
||||||
'cryptodev_openssl_autotest',
|
'errno_autotest',
|
||||||
'cryptodev_openssl_asym_autotest',
|
'event_ring_autotest',
|
||||||
'cryptodev_aesni_gcm_autotest',
|
'func_reentrancy_autotest',
|
||||||
'cryptodev_null_autotest',
|
'flow_classify_autotest',
|
||||||
'cryptodev_sw_snow3g_autotest',
|
'hash_autotest',
|
||||||
'cryptodev_sw_kasumi_autotest',
|
'interrupt_autotest',
|
||||||
'cryptodev_sw_zuc_autotest',
|
'logs_autotest',
|
||||||
'cryptodev_sw_armv8_autotest',
|
'lpm_autotest',
|
||||||
'cryptodev_sw_mvsam_autotest',
|
'lpm6_autotest',
|
||||||
'cryptodev_dpaa2_sec_autotest',
|
'malloc_autotest',
|
||||||
'cryptodev_dpaa_sec_autotest',
|
'mbuf_autotest',
|
||||||
'cryptodev_octeontx_autotest',
|
'memcpy_autotest',
|
||||||
'cycles_autotest',
|
'memory_autotest',
|
||||||
'debug_autotest',
|
'mempool_autotest',
|
||||||
'delay_us_sleep_autotest',
|
'memzone_autotest',
|
||||||
'devargs_autotest',
|
'meter_autotest',
|
||||||
'distributor_autotest',
|
'multiprocess_autotest',
|
||||||
'distributor_perf_autotest',
|
'per_lcore_autotest',
|
||||||
'eal_flags_autotest',
|
'prefetch_autotest',
|
||||||
'eal_fs_autotest',
|
'red_autotest',
|
||||||
'efd_autotest',
|
'ring_autotest',
|
||||||
'efd_perf_autotest',
|
'ring_pmd_autotest',
|
||||||
'errno_autotest',
|
'rwlock_autotest',
|
||||||
'event_crypto_adapter_autotest',
|
'sched_autotest',
|
||||||
'event_eth_rx_adapter_autotest',
|
'spinlock_autotest',
|
||||||
'event_eth_rx_intr_adapter_autotest',
|
'string_autotest',
|
||||||
'event_ring_autotest',
|
'table_autotest',
|
||||||
'event_eth_tx_adapter_autotest',
|
'tailq_autotest',
|
||||||
'event_timer_adapter_autotest',
|
'timer_autotest',
|
||||||
'eventdev_common_autotest',
|
'user_delay_us',
|
||||||
'eventdev_octeontx_autotest',
|
'version_autotest',
|
||||||
'eventdev_sw_autotest',
|
]
|
||||||
'external_mem_autotest',
|
|
||||||
'fbarray_autotest',
|
# All test cases in fast_non_parallel_test_names list are non-parallel
|
||||||
'func_reentrancy_autotest',
|
fast_non_parallel_test_names = [
|
||||||
'flow_classify_autotest',
|
'bitratestats_autotest',
|
||||||
'hash_autotest',
|
'cryptodev_sw_armv8_autotest',
|
||||||
'hash_functions_autotest',
|
'crc_autotest',
|
||||||
'hash_multiwriter_autotest',
|
'cryptodev_openssl_asym_autotest',
|
||||||
'hash_perf_autotest',
|
'cryptodev_sw_mvsam_autotest',
|
||||||
'hash_readwrite_autotest',
|
'delay_us_sleep_autotest',
|
||||||
'hash_readwrite_lf_autotest',
|
'devargs_autotest',
|
||||||
'interrupt_autotest',
|
'distributor_autotest',
|
||||||
'ipsec_autotest',
|
'eventdev_common_autotest',
|
||||||
'kni_autotest',
|
'eventdev_octeontx_autotest',
|
||||||
'kvargs_autotest',
|
'eventdev_sw_autotest',
|
||||||
'latencystats_autotest',
|
'fbarray_autotest',
|
||||||
'link_bonding_autotest',
|
'hash_readwrite_autotest',
|
||||||
'link_bonding_mode4_autotest',
|
'hash_readwrite_lf_autotest',
|
||||||
'logs_autotest',
|
'hash_scaling_autotest',
|
||||||
'lpm6_autotest',
|
'ipsec_autotest',
|
||||||
'lpm6_perf_autotest',
|
'kni_autotest',
|
||||||
'lpm_autotest',
|
'kvargs_autotest',
|
||||||
'lpm_perf_autotest',
|
'latencystats_autotest',
|
||||||
'malloc_autotest',
|
'member_autotest',
|
||||||
'mbuf_autotest',
|
'metrics_autotest',
|
||||||
'member_autotest',
|
'pdump_autotest',
|
||||||
'member_perf_autotest',
|
'power_acpi_cpufreq_autotest',
|
||||||
'memcpy_autotest',
|
'power_autotest',
|
||||||
'memcpy_perf_autotest',
|
'power_kvm_vm_autotest',
|
||||||
'memory_autotest',
|
'reorder_autotest',
|
||||||
'mempool_autotest',
|
'service_autotest',
|
||||||
'mempool_perf_autotest',
|
'thash_autotest',
|
||||||
'memzone_autotest',
|
]
|
||||||
'meter_autotest',
|
|
||||||
'metrics_autotest',
|
# All test cases in perf_test_names list are non-parallel
|
||||||
'multiprocess_autotest',
|
perf_test_names = [
|
||||||
'pdump_autotest',
|
'ring_perf_autotest',
|
||||||
'per_lcore_autotest',
|
'mempool_perf_autotest',
|
||||||
'pmd_perf_autotest',
|
'memcpy_perf_autotest',
|
||||||
'power_acpi_cpufreq_autotest',
|
'hash_perf_autotest',
|
||||||
'power_autotest',
|
'timer_perf_autotest',
|
||||||
'power_kvm_vm_autotest',
|
'reciprocal_division',
|
||||||
'prefetch_autotest',
|
'reciprocal_division_perf',
|
||||||
'reciprocal_division',
|
'lpm_perf_autotest',
|
||||||
'reciprocal_division_perf',
|
'red_all',
|
||||||
'red_all',
|
'barrier_autotest',
|
||||||
'red_autotest',
|
'hash_multiwriter_autotest',
|
||||||
'red_perf',
|
'timer_racecond_autotest',
|
||||||
'reorder_autotest',
|
'efd_autotest',
|
||||||
'ring_autotest',
|
'hash_functions_autotest',
|
||||||
'ring_perf_autotest',
|
'eventdev_selftest_sw',
|
||||||
'ring_pmd_autotest',
|
'member_perf_autotest',
|
||||||
'ring_pmd_perf_autotest',
|
'efd_perf_autotest',
|
||||||
'rwlock_autotest',
|
'lpm6_perf_autotest',
|
||||||
'sched_autotest',
|
'red_perf',
|
||||||
'service_autotest',
|
'distributor_perf_autotest',
|
||||||
'spinlock_autotest',
|
'ring_pmd_perf_autotest',
|
||||||
'string_autotest',
|
'pmd_perf_autotest',
|
||||||
'table_autotest',
|
]
|
||||||
'tailq_autotest',
|
|
||||||
'thash_autotest',
|
# All test cases in driver_test_names list are non-parallel
|
||||||
'timer_autotest',
|
driver_test_names = [
|
||||||
'timer_perf__autotest',
|
'link_bonding_autotest',
|
||||||
'timer_racecond_autotest',
|
'link_bonding_mode4_autotest',
|
||||||
'user_delay_us',
|
'link_bonding_rssconf_autotest',
|
||||||
'version_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',
|
||||||
|
]
|
||||||
|
|
||||||
|
# All test cases in dump_test_names list are non-parallel
|
||||||
|
dump_test_names = [
|
||||||
|
'dump_struct_sizes',
|
||||||
|
'dump_mempool',
|
||||||
|
'dump_malloc_stats',
|
||||||
|
'dump_devargs',
|
||||||
|
'dump_log_types',
|
||||||
|
'dump_ring',
|
||||||
|
'dump_physmem',
|
||||||
|
'dump_memzone',
|
||||||
]
|
]
|
||||||
|
|
||||||
if dpdk_conf.has('RTE_LIBRTE_PDUMP')
|
if dpdk_conf.has('RTE_LIBRTE_PDUMP')
|
||||||
@ -278,12 +301,14 @@ endif
|
|||||||
default_cflags += '-D_GNU_SOURCE'
|
default_cflags += '-D_GNU_SOURCE'
|
||||||
|
|
||||||
test_dep_objs = []
|
test_dep_objs = []
|
||||||
compress_test_dep = dependency('zlib', required: false)
|
if dpdk_conf.has('RTE_LIBRTE_COMPRESSDEV')
|
||||||
if compress_test_dep.found()
|
compress_test_dep = dependency('zlib', required: false)
|
||||||
test_dep_objs += compress_test_dep
|
if compress_test_dep.found()
|
||||||
test_sources += 'test_compressdev.c'
|
test_dep_objs += compress_test_dep
|
||||||
test_deps += 'compressdev'
|
test_sources += 'test_compressdev.c'
|
||||||
test_names += 'compressdev_autotest'
|
test_deps += 'compressdev'
|
||||||
|
fast_non_parallel_test_names += 'compressdev_autotest'
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
foreach d:test_deps
|
foreach d:test_deps
|
||||||
@ -309,11 +334,45 @@ if get_option('tests')
|
|||||||
# some perf tests (eg: memcpy perf autotest)take very long
|
# some perf tests (eg: memcpy perf autotest)take very long
|
||||||
# to complete, so timeout to 10 minutes
|
# to complete, so timeout to 10 minutes
|
||||||
timeout_seconds = 600
|
timeout_seconds = 600
|
||||||
|
timeout_seconds_fast = 10
|
||||||
|
|
||||||
foreach t:test_names
|
foreach arg : fast_parallel_test_names
|
||||||
test(t, dpdk_test,
|
test(arg, dpdk_test,
|
||||||
env : ['DPDK_TEST='+t],
|
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
|
||||||
|
|
||||||
|
foreach arg : perf_test_names
|
||||||
|
test(arg, dpdk_test,
|
||||||
|
env : ['DPDK_TEST=' + arg],
|
||||||
|
timeout : timeout_seconds,
|
||||||
|
is_parallel : false,
|
||||||
|
suite : 'perf-tests')
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
foreach arg : driver_test_names
|
||||||
|
test(arg, dpdk_test,
|
||||||
|
env : ['DPDK_TEST=' + arg],
|
||||||
timeout : timeout_seconds,
|
timeout : timeout_seconds,
|
||||||
is_parallel : false)
|
is_parallel : false,
|
||||||
|
suite : 'driver-tests')
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
foreach arg : dump_test_names
|
||||||
|
test(arg, dpdk_test,
|
||||||
|
env : ['DPDK_TEST=' + arg],
|
||||||
|
timeout : timeout_seconds,
|
||||||
|
is_parallel : false,
|
||||||
|
suite : 'debug-tests')
|
||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user