test/pdump: add unit test for pdump library
[dpdk.git] / test / test / meson.build
index 263cc1c..045d7c8 100644 (file)
@@ -3,11 +3,13 @@
 
 test_sources = files('commands.c',
        'packet_burst_generator.c',
+       'sample_packet_forward.c',
        'test.c',
        'test_acl.c',
        'test_alarm.c',
        'test_atomic.c',
        'test_barrier.c',
+       'test_bitratestats.c',
        'test_bpf.c',
        'test_byteorder.c',
        'test_cmdline.c',
@@ -33,18 +35,27 @@ test_sources = files('commands.c',
        'test_efd.c',
        'test_efd_perf.c',
        'test_errno.c',
+       'test_event_crypto_adapter.c',
+       'test_event_eth_rx_adapter.c',
        'test_event_ring.c',
+       'test_event_eth_tx_adapter.c',
+       'test_event_timer_adapter.c',
        'test_eventdev.c',
+       'test_external_mem.c',
+       'test_fbarray.c',
        'test_func_reentrancy.c',
        'test_flow_classify.c',
        'test_hash.c',
        'test_hash_functions.c',
        'test_hash_multiwriter.c',
+       'test_hash_readwrite.c',
        'test_hash_perf.c',
-       'test_hash_scaling.c',
+       'test_hash_readwrite_lf.c',
        'test_interrupts.c',
+       'test_ipsec.c',
        'test_kni.c',
        'test_kvargs.c',
+       'test_latencystats.c',
        'test_link_bonding.c',
        'test_link_bonding_mode4.c',
        'test_logs.c',
@@ -63,7 +74,9 @@ test_sources = files('commands.c',
        'test_mempool_perf.c',
        'test_memzone.c',
        'test_meter.c',
+       'test_metrics.c',
        'test_mp_secondary.c',
+       'test_pdump.c',
        'test_per_lcore.c',
        'test_pmd_perf.c',
        'test_pmd_ring.c',
@@ -99,6 +112,7 @@ test_sources = files('commands.c',
 )
 
 test_deps = ['acl',
+       'bitratestats',
        'bpf',
        'cfgfile',
        'cmdline',
@@ -109,8 +123,11 @@ test_deps = ['acl',
        'eventdev',
        'flow_classify',
        'hash',
+       'ipsec',
+       'latencystats',
        'lpm',
        'member',
+       'metrics',
        'pipeline',
        'port',
        'reorder',
@@ -123,6 +140,7 @@ test_names = [
        'alarm_autotest',
        'atomic_autotest',
        'barrier_autotest',
+       'bitratestats_autotest',
        'byteorder_autotest',
        'cmdline_autotest',
        'common_autotest',
@@ -141,8 +159,10 @@ test_names = [
        'cryptodev_sw_mvsam_autotest',
        'cryptodev_dpaa2_sec_autotest',
        'cryptodev_dpaa_sec_autotest',
+       'cryptodev_octeontx_autotest',
        'cycles_autotest',
        'debug_autotest',
+       'delay_us_sleep_autotest',
        'devargs_autotest',
        'distributor_autotest',
        'distributor_perf_autotest',
@@ -151,20 +171,30 @@ test_names = [
        'efd_autotest',
        'efd_perf_autotest',
        'errno_autotest',
+       'event_crypto_adapter_autotest',
+       'event_eth_rx_adapter_autotest',
+       'event_eth_rx_intr_adapter_autotest',
        'event_ring_autotest',
+       'event_eth_tx_adapter_autotest',
+       'event_timer_adapter_autotest',
        'eventdev_common_autotest',
        'eventdev_octeontx_autotest',
        'eventdev_sw_autotest',
+       'external_mem_autotest',
+       'fbarray_autotest',
        'func_reentrancy_autotest',
        'flow_classify_autotest',
-       'hash_scaling_autotest',
        'hash_autotest',
        'hash_functions_autotest',
        'hash_multiwriter_autotest',
        'hash_perf_autotest',
+       'hash_readwrite_autotest',
+       'hash_readwrite_lf_autotest',
        'interrupt_autotest',
+       'ipsec_autotest',
        'kni_autotest',
        'kvargs_autotest',
+       'latencystats_autotest',
        'link_bonding_autotest',
        'link_bonding_mode4_autotest',
        'logs_autotest',
@@ -183,7 +213,9 @@ test_names = [
        'mempool_perf_autotest',
        'memzone_autotest',
        'meter_autotest',
+       'metrics_autotest',
        'multiprocess_autotest',
+       'pdump_autotest',
        'per_lcore_autotest',
        'pmd_perf_autotest',
        'power_acpi_cpufreq_autotest',
@@ -237,6 +269,14 @@ if dpdk_conf.has('RTE_LIBRTE_KNI')
        test_deps += 'kni'
 endif
 
+cflags = machine_args
+if cc.has_argument('-Wno-format-truncation')
+    cflags += '-Wno-format-truncation'
+endif
+
+# specify -D_GNU_SOURCE unconditionally
+default_cflags += '-D_GNU_SOURCE'
+
 test_dep_objs = []
 compress_test_dep = dependency('zlib', required: false)
 if compress_test_dep.found()
@@ -262,7 +302,7 @@ if get_option('tests')
                test_sources,
                link_whole: link_libs,
                dependencies: test_dep_objs,
-               c_args: [machine_args, '-DALLOW_EXPERIMENTAL_API'],
+               c_args: [cflags, '-DALLOW_EXPERIMENTAL_API'],
                install_rpath: driver_install_path,
                install: false)