git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/bnxt: fix mbuf flags for PTP packets
[dpdk.git]
/
app
/
test
/
meson.build
diff --git
a/app/test/meson.build
b/app/test/meson.build
index
5cb0509
..
561e493
100644
(file)
--- a/
app/test/meson.build
+++ b/
app/test/meson.build
@@
-13,6
+13,7
@@
test_sources = files('commands.c',
'test_atomic.c',
'test_barrier.c',
'test_bitops.c',
'test_atomic.c',
'test_barrier.c',
'test_bitops.c',
+ 'test_bitmap.c',
'test_bpf.c',
'test_byteorder.c',
'test_cmdline.c',
'test_bpf.c',
'test_byteorder.c',
'test_cmdline.c',
@@
-39,6
+40,7
@@
test_sources = files('commands.c',
'test_efd.c',
'test_efd_perf.c',
'test_errno.c',
'test_efd.c',
'test_efd_perf.c',
'test_errno.c',
+ 'test_ethdev_link.c',
'test_event_crypto_adapter.c',
'test_event_eth_rx_adapter.c',
'test_event_ring.c',
'test_event_crypto_adapter.c',
'test_event_eth_rx_adapter.c',
'test_event_ring.c',
@@
-67,6
+69,7
@@
test_sources = files('commands.c',
'test_ipsec_perf.c',
'test_kni.c',
'test_kvargs.c',
'test_ipsec_perf.c',
'test_kni.c',
'test_kvargs.c',
+ 'test_lcores.c',
'test_logs.c',
'test_lpm.c',
'test_lpm6.c',
'test_logs.c',
'test_lpm.c',
'test_lpm6.c',
@@
-105,10
+108,12
@@
test_sources = files('commands.c',
'test_ring.c',
'test_ring_mpmc_stress.c',
'test_ring_hts_stress.c',
'test_ring.c',
'test_ring_mpmc_stress.c',
'test_ring_hts_stress.c',
- 'test_ring_peek_stress.c',
+ 'test_ring_mt_peek_stress.c',
+ 'test_ring_mt_peek_stress_zc.c',
'test_ring_perf.c',
'test_ring_rts_stress.c',
'test_ring_st_peek_stress.c',
'test_ring_perf.c',
'test_ring_rts_stress.c',
'test_ring_st_peek_stress.c',
+ 'test_ring_st_peek_stress_zc.c',
'test_ring_stress.c',
'test_rwlock.c',
'test_sched.c',
'test_ring_stress.c',
'test_rwlock.c',
'test_sched.c',
@@
-169,6
+174,7
@@
test_deps = ['acl',
'ring',
'security',
'stack',
'ring',
'security',
'stack',
+ 'telemetry',
'timer'
]
'timer'
]
@@
-186,11
+192,11
@@
fast_tests = [
['cycles_autotest', true],
['debug_autotest', true],
['eal_flags_c_opt_autotest', false],
['cycles_autotest', true],
['debug_autotest', true],
['eal_flags_c_opt_autotest', false],
- ['eal_flags_ma
ster
_opt_autotest', false],
+ ['eal_flags_ma
in
_opt_autotest', false],
['eal_flags_n_opt_autotest', false],
['eal_flags_hpet_autotest', false],
['eal_flags_no_huge_autotest', false],
['eal_flags_n_opt_autotest', false],
['eal_flags_hpet_autotest', false],
['eal_flags_no_huge_autotest', false],
- ['eal_flags_
w
_opt_autotest', false],
+ ['eal_flags_
a
_opt_autotest', false],
['eal_flags_b_opt_autotest', false],
['eal_flags_vdev_opt_autotest', false],
['eal_flags_r_opt_autotest', false],
['eal_flags_b_opt_autotest', false],
['eal_flags_vdev_opt_autotest', false],
['eal_flags_r_opt_autotest', false],
@@
-199,6
+205,7
@@
fast_tests = [
['eal_flags_misc_autotest', false],
['eal_fs_autotest', true],
['errno_autotest', true],
['eal_flags_misc_autotest', false],
['eal_fs_autotest', true],
['errno_autotest', true],
+ ['ethdev_link_status', true],
['event_ring_autotest', true],
['fib_autotest', true],
['fib6_autotest', true],
['event_ring_autotest', true],
['fib_autotest', true],
['fib6_autotest', true],
@@
-207,6
+214,7
@@
fast_tests = [
['hash_autotest', true],
['interrupt_autotest', true],
['ipfrag_autotest', false],
['hash_autotest', true],
['interrupt_autotest', true],
['ipfrag_autotest', false],
+ ['lcores_autotest', true],
['logs_autotest', true],
['lpm_autotest', true],
['lpm6_autotest', true],
['logs_autotest', true],
['lpm_autotest', true],
['lpm6_autotest', true],
@@
-238,6
+246,7
@@
fast_tests = [
['string_autotest', true],
['table_autotest', true],
['tailq_autotest', true],
['string_autotest', true],
['table_autotest', true],
['tailq_autotest', true],
+ ['ticketlock_autotest', true],
['timer_autotest', false],
['user_delay_us', true],
['version_autotest', true],
['timer_autotest', false],
['user_delay_us', true],
['version_autotest', true],
@@
-333,33
+342,33
@@
dump_test_names = [
# unit tests without requiring that the developer install the
# DPDK libraries. Explicit linkage of drivers (plugin libraries)
# in applications should not be used.
# unit tests without requiring that the developer install the
# DPDK libraries. Explicit linkage of drivers (plugin libraries)
# in applications should not be used.
-if dpdk_conf.has('RTE_
LIBRTE_RING_MEMPOOL
')
+if dpdk_conf.has('RTE_
MEMPOOL_RING
')
test_deps += 'mempool_ring'
endif
test_deps += 'mempool_ring'
endif
-if dpdk_conf.has('RTE_
LIBRTE_STACK_MEMPOOL
')
+if dpdk_conf.has('RTE_
MEMPOOL_STACK
')
test_deps += 'mempool_stack'
endif
test_deps += 'mempool_stack'
endif
-if dpdk_conf.has('RTE_
LIBRTE_SKELETON_EVENTDEV_PMD
')
- test_deps += '
pmd_skeleton_event
'
+if dpdk_conf.has('RTE_
EVENT_SKELETON
')
+ test_deps += '
event_skeleton
'
endif
endif
-if dpdk_conf.has('RTE_LIB
RTE
_TELEMETRY')
- test_sources +=
'test_telemetry_json.c'
- fast_tests += [['telemetry_json_autotest', true]]
+if dpdk_conf.has('RTE_LIB_TELEMETRY')
+ test_sources +=
['test_telemetry_json.c', 'test_telemetry_data.c']
+ fast_tests += [['telemetry_json_autotest', true]
, ['telemetry_data_autotest', true]
]
endif
# The following linkages of drivers are required because
# they are used via a driver-specific API.
endif
# The following linkages of drivers are required because
# they are used via a driver-specific API.
-if dpdk_conf.has('RTE_
LIBRTE_BOND_PM
D')
- test_deps += '
pmd
_bond'
+if dpdk_conf.has('RTE_
NET_BON
D')
+ test_deps += '
net
_bond'
test_sources += ['test_link_bonding.c', 'test_link_bonding_rssconf.c']
driver_test_names += ['link_bonding_autotest', 'link_bonding_rssconf_autotest']
test_sources += ['test_link_bonding.c', 'test_link_bonding_rssconf.c']
driver_test_names += ['link_bonding_autotest', 'link_bonding_rssconf_autotest']
- if dpdk_conf.has('RTE_
LIBRTE_RING_PMD
')
+ if dpdk_conf.has('RTE_
NET_RING
')
test_sources += 'test_link_bonding_mode4.c'
driver_test_names += 'link_bonding_mode4_autotest'
endif
endif
test_sources += 'test_link_bonding_mode4.c'
driver_test_names += 'link_bonding_mode4_autotest'
endif
endif
-if dpdk_conf.has('RTE_
LIBRTE_RING_PMD
')
- test_deps += '
pmd
_ring'
+if dpdk_conf.has('RTE_
NET_RING
')
+ test_deps += '
net
_ring'
test_sources += 'test_pmd_ring_perf.c'
test_sources += 'test_pmd_ring.c'
test_sources += 'test_event_eth_tx_adapter.c'
test_sources += 'test_pmd_ring_perf.c'
test_sources += 'test_pmd_ring.c'
test_sources += 'test_event_eth_tx_adapter.c'
@@
-375,13
+384,13
@@
if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
fast_tests += [['pdump_autotest', true]]
endif
fast_tests += [['pdump_autotest', true]]
endif
-if dpdk_conf.has('RTE_LIB
RTE
_POWER')
+if dpdk_conf.has('RTE_LIB_POWER')
test_deps += 'power'
endif
test_deps += 'power'
endif
-if dpdk_conf.has('RTE_LIB
RTE
_KNI')
+if dpdk_conf.has('RTE_LIB_KNI')
test_deps += 'kni'
endif
test_deps += 'kni'
endif
-if dpdk_conf.has('RTE_LIB
RTE
_PDUMP')
+if dpdk_conf.has('RTE_LIB_PDUMP')
test_deps += 'pdump'
endif
test_deps += 'pdump'
endif
@@
-394,9
+403,12
@@
cflags += '-D_GNU_SOURCE'
# Strict-aliasing rules are violated by uint8_t[] to context size casts.
cflags += '-fno-strict-aliasing'
# Strict-aliasing rules are violated by uint8_t[] to context size casts.
cflags += '-fno-strict-aliasing'
+# Enable using internal APIs in unit tests
+cflags += ['-DALLOW_INTERNAL_API']
+
test_dep_objs = []
test_dep_objs = []
-if dpdk_conf.has('RTE_LIB
RTE
_COMPRESSDEV')
- compress_test_dep = dependency('zlib', required: false)
+if dpdk_conf.has('RTE_LIB_COMPRESSDEV')
+ compress_test_dep = dependency('zlib', required: false
, method: 'pkg-config'
)
if compress_test_dep.found()
test_dep_objs += compress_test_dep
test_sources += 'test_compressdev.c'
if compress_test_dep.found()
test_dep_objs += compress_test_dep
test_sources += 'test_compressdev.c'
@@
-405,8
+417,9
@@
if dpdk_conf.has('RTE_LIBRTE_COMPRESSDEV')
endif
endif
endif
endif
-if dpdk_conf.has('RTE_
LIBRTE_PMD_
CRYPTO_SCHEDULER')
+if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
driver_test_names += 'cryptodev_scheduler_autotest'
driver_test_names += 'cryptodev_scheduler_autotest'
+ test_deps += 'crypto_scheduler'
endif
foreach d:test_deps
endif
foreach d:test_deps
@@
-416,18
+429,17
@@
endforeach
test_dep_objs += cc.find_library('execinfo', required: false)
link_libs = []
test_dep_objs += cc.find_library('execinfo', required: false)
link_libs = []
-link_nodes = []
if get_option('default_library') == 'static'
link_libs = dpdk_static_libraries + dpdk_drivers
if get_option('default_library') == 'static'
link_libs = dpdk_static_libraries + dpdk_drivers
- link_nodes = dpdk_graph_nodes
endif
dpdk_test = executable('dpdk-test',
test_sources,
endif
dpdk_test = executable('dpdk-test',
test_sources,
- link_whole: link_libs
+ link_nodes
,
+ link_whole: link_libs,
dependencies: test_dep_objs,
c_args: cflags,
dependencies: test_dep_objs,
c_args: cflags,
- install_rpath: driver_install_path,
+ install_rpath: join_paths(get_option('prefix'),
+ driver_install_path),
install: true)
has_hugepage = run_command('has-hugepage.sh').stdout().strip() != '0'
install: true)
has_hugepage = run_command('has-hugepage.sh').stdout().strip() != '0'