From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 0AB156CCF for ; Thu, 12 May 2016 17:26:28 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id a17so142390792wme.0 for ; Thu, 12 May 2016 08:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=bjpHJtvJreNxlf5GWVv7E4BLDoK6qtpJQ8vtWHocbQU=; b=rOer1MbBjlB8zkdqRzwkIGdP/TvdvwiRJjPIS24Mcrggg4x/xqOHtXgbCba7E4fVCN DdEp0xPUN0XnS1Bl5bFLmIqUvRyfBzYcoZI2Dmrih71CXlky5kOe/OQ4GnMq9cs4xSuJ cQp+Sy6eDGNVJVlO7+qopocWUhPQF6Bn1/nHUuBbOJ9xt9MW+ZMmZ7Sm2EL6kgmq9+t4 p9+Xy/gxnLmHIMNWZAhk1yZ6DttSgrTnOMS/KUSB2gsxKliQbBEOncsME4JJfJsLu7oi lwQwVW6sXJoQ6C87ukdiVomGpoTTwQpo1ezIXGtNOdU0Y6qqwaoVvbDvk1GM75EZud5f PZ4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=bjpHJtvJreNxlf5GWVv7E4BLDoK6qtpJQ8vtWHocbQU=; b=KtxeglIsrOhhDmSv0PzEBpK35OXhk78Pxhiri9ewZWz0EQ1tTng9KiPrq4P2w1RJLt 2AZNWtogX6yOUxNT/XV68s+La17nXT+HYNHTQpKx+z9h/cxULtUjSmRbdyDEz6tR9r6J RGEWE+qGiIEc3IUi8fLF7lryUc27YlkaHMvWbW3OrNfHRezrjyE55po73rIq0evZmSze X/5IyGkImZDZVGSS6vQ4g1CqPN5eileYSSLIxLFTMj0tDOQ27cfv4ZnH+dTGi4u96ghQ iEfeBxAV5pA+ZOhEqa+6z5DnwPvJRFtaXjrisoXwbHmkQICd44r9bmhyy4nK0GYfl3DA ockg== X-Gm-Message-State: AOPr4FWnpXVxEuJB2GFAqPZXyeRKIfj2y7r/lhkDxns6NAnzhjUXmSD1sFhTcK25L0viyLPZ X-Received: by 10.28.148.202 with SMTP id w193mr6949341wmd.29.1463066787778; Thu, 12 May 2016 08:26:27 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id lf9sm13961120wjc.44.2016.05.12.08.26.26 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 May 2016 08:26:27 -0700 (PDT) From: Thomas Monjalon To: Jan Viktorin Cc: dev@dpdk.org, Bruce Richardson , David Marchand Date: Thu, 12 May 2016 17:26:26 +0200 Message-ID: <1930885.2DNqPEin9b@xps13> User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1462531720-26217-5-git-send-email-viktorin@rehivetech.com> References: <1462531720-26217-1-git-send-email-viktorin@rehivetech.com> <1462531720-26217-5-git-send-email-viktorin@rehivetech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v1 04/10] app/test: support resources archived by tar 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, 12 May 2016 15:26:28 -0000 2016-05-06 12:48, Jan Viktorin: > When needing a more complex resource (a file hierarchy), packing every single > file as a single resource would be very ineffective. For that purpose, it is > possible to pack the files into a tar archive, extract it before test from the > resource and finally clean up all the created files. > > This patch introduces functions resource_untar and resource_rm_by_tar to > perform those tasks. An example of using those functions is included as a test. > > Signed-off-by: Jan Viktorin > --- > app/test/Makefile | 4 ++ > app/test/resource.c | 180 +++++++++++++++++++++++++++++++++++++++++++++++ > app/test/resource.h | 13 ++++ > app/test/test_resource.c | 29 ++++++++ > 4 files changed, 226 insertions(+) > > diff --git a/app/test/Makefile b/app/test/Makefile > index a9502f1..90acd63 100644 > --- a/app/test/Makefile > +++ b/app/test/Makefile > @@ -77,6 +77,9 @@ SRCS-y += test.c > SRCS-y += resource.c > SRCS-y += test_resource.c > $(eval $(call resource,test_resource_c,resource.c)) > +$(eval $(call resource,test_resource_tar,resource.tar)) This tar resource is not provided. Should it be created in the Makefile?