The unit tests can be disabled in DPDK in a couple of ways. Firstly, there is the original "tests" boolean option - when set to false, the tests are skipped as part of the build. However, the newer enable_apps/disable_apps options also can be used to disable the tests [you can disable using the "enable" option by omitting "tests" from the list to enable].
This duplication of functionality is unnecessary, so let's remove the standalone tests option. Signed-off-by: Bruce Richardson <[email protected]> --- app/meson.build | 6 +----- doc/guides/rel_notes/deprecation.rst | 1 + meson_options.txt | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/meson.build b/app/meson.build index 1798db3ae4..52f704ec94 100644 --- a/app/meson.build +++ b/app/meson.build @@ -17,6 +17,7 @@ apps = [ 'graph', 'pdump', 'proc-info', + 'test', 'test-acl', 'test-bbdev', 'test-cmdline', @@ -35,11 +36,6 @@ apps = [ 'test-security-perf', ] -if get_option('tests') -# build the auto test app if enabled. - apps += 'test' -endif - default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API'] default_ldflags = [] if get_option('default_library') == 'static' and not is_windows diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index ed1dda6008..15459851d0 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -20,6 +20,7 @@ Deprecation Notices * build: The following meson build options are deprecated and will be removed in a future release: - ``kernel_dir``: option unused as Linux kernel drivers are in a separate ``dpdk-kmods`` repository. + - ``tests``: disabling tests can be achieved by using the ``enable_apps`` / ``disable_apps`` options instead. * kvargs: The function ``rte_kvargs_process`` will get a new parameter for returning key match count. It will ease handling of no-match case. diff --git a/meson_options.txt b/meson_options.txt index 7bd5ebc084..323a3901e1 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -55,6 +55,6 @@ option('enable_stdatomic', type: 'boolean', value: false, description: option('enable_trace_fp', type: 'boolean', value: false, description: 'enable fast path trace points.') option('tests', type: 'boolean', value: true, description: - 'build unit tests') + '[Deprecated] Value unused. Add "tests" to disable_apps setting to disable the unit tests') option('use_hpet', type: 'boolean', value: false, description: 'use HPET timer in EAL') -- 2.53.0

