[dpdk-dev] test: fix build without flow classify

Message ID 20171025151739.5189-1-thomas@monjalon.net (mailing list archive)
State Accepted, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Thomas Monjalon Oct. 25, 2017, 3:17 p.m. UTC
  The unit test for flow classify should be disabled
if the library is disabled in the configuration.

Fixes: 9c9befea4f57 ("test: add flow classify unit tests")
Cc: bernard.iremonger@intel.com

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 test/test/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Iremonger, Bernard Oct. 25, 2017, 4:36 p.m. UTC | #1
> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas@monjalon.net]
> Sent: Wednesday, October 25, 2017 4:18 PM
> To: dev@dpdk.org
> Cc: Iremonger, Bernard <bernard.iremonger@intel.com>
> Subject: [PATCH] test: fix build without flow classify
> 
> The unit test for flow classify should be disabled if the library is disabled in
> the configuration.
> 
> Fixes: 9c9befea4f57 ("test: add flow classify unit tests")
> Cc: bernard.iremonger@intel.com
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

Acked-by:  Bernard Iremonger <bernard.iremonger@intel.com>
  
Thomas Monjalon Oct. 25, 2017, 10:38 p.m. UTC | #2
> > The unit test for flow classify should be disabled if the library is disabled in
> > the configuration.
> > 
> > Fixes: 9c9befea4f57 ("test: add flow classify unit tests")
> > Cc: bernard.iremonger@intel.com
> > 
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> 
> Acked-by:  Bernard Iremonger <bernard.iremonger@intel.com>

Applied
  

Patch

diff --git a/test/test/Makefile b/test/test/Makefile
index c2dbe40fd..bb54c9808 100644
--- a/test/test/Makefile
+++ b/test/test/Makefile
@@ -107,7 +107,7 @@  SRCS-y += test_table_tables.c
 SRCS-y += test_table_ports.c
 SRCS-y += test_table_combined.c
 SRCS-$(CONFIG_RTE_LIBRTE_ACL) += test_table_acl.c
-SRCS-$(CONFIG_RTE_LIBRTE_ACL) += test_flow_classify.c
+SRCS-$(CONFIG_RTE_LIBRTE_FLOW_CLASSIFY) += test_flow_classify.c
 endif
 
 SRCS-y += test_rwlock.c