doc: add patch dependency syntax to contributing guide
[dpdk.git] / app / test / meson.build
index 10f23d5..786a213 100644 (file)
@@ -67,6 +67,7 @@ test_sources = files('commands.c',
        'test_ipsec_perf.c',
        'test_kni.c',
        'test_kvargs.c',
+       'test_lcores.c',
        'test_logs.c',
        'test_lpm.c',
        'test_lpm6.c',
@@ -105,9 +106,10 @@ test_sources = files('commands.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_perf.c',
        'test_ring_rts_stress.c',
+       'test_ring_st_peek_stress.c',
        'test_ring_stress.c',
        'test_rwlock.c',
        'test_sched.c',
@@ -206,6 +208,7 @@ fast_tests = [
         ['hash_autotest', true],
         ['interrupt_autotest', true],
         ['ipfrag_autotest', false],
+        ['lcores_autotest', true],
         ['logs_autotest', true],
         ['lpm_autotest', true],
         ['lpm6_autotest', true],
@@ -393,6 +396,9 @@ cflags += '-D_GNU_SOURCE'
 # 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 = []
 if dpdk_conf.has('RTE_LIBRTE_COMPRESSDEV')
        compress_test_dep = dependency('zlib', required: false)
@@ -415,18 +421,17 @@ endforeach
 test_dep_objs += cc.find_library('execinfo', required: false)
 
 link_libs = []
-link_nodes = []
 if get_option('default_library') == 'static'
-       link_libs = dpdk_drivers
-       link_nodes = dpdk_graph_nodes
+       link_libs = dpdk_static_libraries + dpdk_drivers
 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,
-       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'