From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: [RFC PATCH 1/4] test: add lpm routes as a linked resource Date: Fri, 6 May 2016 13:51:29 +0100 Message-ID: <1462539092-24389-2-git-send-email-bruce.richardson@intel.com> References: <1462539092-24389-1-git-send-email-bruce.richardson@intel.com> Cc: Bruce Richardson To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 161975A0A for ; Fri, 6 May 2016 14:51:42 +0200 (CEST) In-Reply-To: <1462539092-24389-1-git-send-email-bruce.richardson@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Since we now have the ability to store resource data directly inside the test binary, take the test_lpm_routes.h header file and make it a test resource. Later commits will then switch the test C file over to use this rather than including it directly. Signed-off-by: Bruce Richardson --- app/test/Makefile | 1 + app/test/test_lpm.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/test/Makefile b/app/test/Makefile index 90acd63..94ba990 100644 --- a/app/test/Makefile +++ b/app/test/Makefile @@ -125,6 +125,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_perf.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_functions.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_scaling.c +$(eval $(call resource,test_lpm_data,test_lpm_routes.h)) SRCS-$(CONFIG_RTE_LIBRTE_LPM) += test_lpm.c SRCS-$(CONFIG_RTE_LIBRTE_LPM) += test_lpm6.c diff --git a/app/test/test_lpm.c b/app/test/test_lpm.c index 40fbbc6..d2aa5de 100644 --- a/app/test/test_lpm.c +++ b/app/test/test_lpm.c @@ -46,11 +46,14 @@ #include #include "test.h" +#include "resource.h" #include "rte_lpm.h" #include "test_lpm_routes.h" #include "test_xmmt_ops.h" +REGISTER_LINKED_RESOURCE(test_lpm_data) + #define TEST_LPM_ASSERT(cond) do { \ if (!(cond)) { \ printf("Error at line %d: \n", __LINE__); \ -- 2.5.5