[v2,3/5] test/test-pipeline: move to app directory
Checks
Commit Message
Move to the app directory, and add to meson build.
CC: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
MAINTAINERS | 2 +-
app/Makefile | 1 +
app/meson.build | 1 +
{test => app}/test-pipeline/Makefile | 0
{test => app}/test-pipeline/config.c | 0
{test => app}/test-pipeline/init.c | 0
{test => app}/test-pipeline/main.c | 0
{test => app}/test-pipeline/main.h | 0
app/test-pipeline/meson.build | 14 ++++++++++++++
{test => app}/test-pipeline/pipeline_acl.c | 0
{test => app}/test-pipeline/pipeline_hash.c | 0
{test => app}/test-pipeline/pipeline_lpm.c | 0
{test => app}/test-pipeline/pipeline_lpm_ipv6.c | 0
{test => app}/test-pipeline/pipeline_stub.c | 0
{test => app}/test-pipeline/runtime.c | 0
doc/guides/sample_app_ug/test_pipeline.rst | 2 +-
test/Makefile | 1 -
17 files changed, 18 insertions(+), 3 deletions(-)
rename {test => app}/test-pipeline/Makefile (100%)
rename {test => app}/test-pipeline/config.c (100%)
rename {test => app}/test-pipeline/init.c (100%)
rename {test => app}/test-pipeline/main.c (100%)
rename {test => app}/test-pipeline/main.h (100%)
create mode 100644 app/test-pipeline/meson.build
rename {test => app}/test-pipeline/pipeline_acl.c (100%)
rename {test => app}/test-pipeline/pipeline_hash.c (100%)
rename {test => app}/test-pipeline/pipeline_lpm.c (100%)
rename {test => app}/test-pipeline/pipeline_lpm_ipv6.c (100%)
rename {test => app}/test-pipeline/pipeline_stub.c (100%)
rename {test => app}/test-pipeline/runtime.c (100%)
@@ -1094,7 +1094,7 @@ F: lib/librte_port/
F: lib/librte_table/
F: doc/guides/prog_guide/packet_framework.rst
F: test/test/test_table*
-F: test/test-pipeline/
+F: app/test-pipeline/
F: doc/guides/sample_app_ug/test_pipeline.rst
F: examples/ip_pipeline/
F: doc/guides/sample_app_ug/ip_pipeline.rst
@@ -8,6 +8,7 @@ DIRS-$(CONFIG_RTE_PROC_INFO) += proc-info
DIRS-$(CONFIG_RTE_LIBRTE_PDUMP) += pdump
DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_test
DIRS-$(CONFIG_RTE_LIBRTE_ACL) += test-acl
+DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += test-pipeline
ifeq ($(CONFIG_RTE_LIBRTE_BBDEV),y)
DIRS-$(CONFIG_RTE_TEST_BBDEV) += test-bbdev
@@ -9,6 +9,7 @@ apps = ['cmdline_test',
'test-compress-perf',
'test-crypto-perf',
'test-eventdev',
+ 'test-pipeline',
'test-pmd']
# for BSD only
similarity index 100%
rename from test/test-pipeline/Makefile
rename to app/test-pipeline/Makefile
similarity index 100%
rename from test/test-pipeline/config.c
rename to app/test-pipeline/config.c
similarity index 100%
rename from test/test-pipeline/init.c
rename to app/test-pipeline/init.c
similarity index 100%
rename from test/test-pipeline/main.c
rename to app/test-pipeline/main.c
similarity index 100%
rename from test/test-pipeline/main.h
rename to app/test-pipeline/main.h
new file mode 100644
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2019 Intel Corporation
+
+sources = files(
+ 'config.c',
+ 'init.c',
+ 'main.c',
+ 'pipeline_acl.c',
+ 'pipeline_hash.c',
+ 'pipeline_lpm.c',
+ 'pipeline_lpm_ipv6.c',
+ 'pipeline_stub.c',
+ 'runtime.c')
+deps += 'pipeline'
similarity index 100%
rename from test/test-pipeline/pipeline_acl.c
rename to app/test-pipeline/pipeline_acl.c
similarity index 100%
rename from test/test-pipeline/pipeline_hash.c
rename to app/test-pipeline/pipeline_hash.c
similarity index 100%
rename from test/test-pipeline/pipeline_lpm.c
rename to app/test-pipeline/pipeline_lpm.c
similarity index 100%
rename from test/test-pipeline/pipeline_lpm_ipv6.c
rename to app/test-pipeline/pipeline_lpm_ipv6.c
similarity index 100%
rename from test/test-pipeline/pipeline_stub.c
rename to app/test-pipeline/pipeline_stub.c
similarity index 100%
rename from test/test-pipeline/runtime.c
rename to app/test-pipeline/runtime.c
@@ -32,7 +32,7 @@ Compiling the Application
-------------------------
To compile the sample application see :doc:`compiling`
-The application is located in the ``$RTE_SDK/test/test-pipline`` directory.
+The application is located in the ``$RTE_SDK/app/test-pipline`` directory.
Running the Application
@@ -4,6 +4,5 @@
include $(RTE_SDK)/mk/rte.vars.mk
DIRS-$(CONFIG_RTE_APP_TEST) += test
-DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += test-pipeline
include $(RTE_SDK)/mk/rte.subdir.mk