From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 0C3433990 for ; Thu, 14 Jul 2016 18:06:55 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 14 Jul 2016 09:06:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,363,1464678000"; d="scan'208";a="1016926122" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 14 Jul 2016 09:06:49 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u6EG6m5M024258; Thu, 14 Jul 2016 17:06:48 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id u6EG6m4b030786; Thu, 14 Jul 2016 17:06:48 +0100 Received: (from bricha3@localhost) by sivswdev01.ir.intel.com with id u6EG6m1W030782; Thu, 14 Jul 2016 17:06:48 +0100 From: Bruce Richardson To: dev@dpdk.org Cc: Nikita Kozlov , Thomas Monjalon , Bruce Richardson Date: Thu, 14 Jul 2016 17:06:20 +0100 Message-Id: <1468512382-30412-4-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1468512382-30412-1-git-send-email-bruce.richardson@intel.com> References: <1465909410-4668-1-git-send-email-nikita@elyzion.net> <1468512382-30412-1-git-send-email-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH v2 3/5] test: add lpm routes as a linked resource X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2016 16:06:56 -0000 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_perf.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/test/Makefile b/app/test/Makefile index 2de8c7a..a147db4 100644 --- a/app/test/Makefile +++ b/app/test/Makefile @@ -127,6 +127,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_functions.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_scaling.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_multiwriter.c +$(eval $(call linked_resource,test_lpm_data,test_lpm_routes.h)) SRCS-$(CONFIG_RTE_LIBRTE_LPM) += test_lpm.c SRCS-$(CONFIG_RTE_LIBRTE_LPM) += test_lpm_perf.c SRCS-$(CONFIG_RTE_LIBRTE_LPM) += test_lpm6.c diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c index 41da811..0e64919 100644 --- a/app/test/test_lpm_perf.c +++ b/app/test/test_lpm_perf.c @@ -41,9 +41,12 @@ #include #include "test.h" +#include "resource.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