X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Fmeson.build;h=786a21397272a3eb3d8bb71e164330dc68545ac4;hb=f74904ce98e84f48e8f3a96b7ad6b6347c3f44b6;hp=56591db4e05321d895720fec419af42853ed2897;hpb=de321d59181c680774e01e338f09e8e9c89c71be;p=dpdk.git diff --git a/app/test/meson.build b/app/test/meson.build index 56591db4e0..786a213972 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -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', @@ -207,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], @@ -394,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) @@ -425,7 +430,8 @@ dpdk_test = executable('dpdk-test', 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'