[dpdk-dev] [RFC 4/4] app/test: support resources archived by tar

Bruce Richardson bruce.richardson at intel.com
Fri May 6 11:02:07 CEST 2016


On Thu, May 05, 2016 at 07:05:40PM +0200, Jan Viktorin wrote:
> On Thu, 5 May 2016 14:33:01 +0100
> Bruce Richardson <bruce.richardson at intel.com> wrote:
> 
> > On Fri, Apr 29, 2016 at 03:11:36PM +0200, Jan Viktorin wrote:
> > > 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 <viktorin at rehivetech.com>  
> > We might want to make this configurable on/off at build time, since it adds a new
> > dependency for building dpdk - libarchive-devel.
> 
> This is true. Unfortunately...
> 
> Is it a problem to introduce such dependency into the test app?
> Would it be help to use another similar (more spread) library (zlib)?
>
Not sure it would make much difference, to be honest. It all depends on what
-devel packages are installed by default on most distros when you install the
development tools sets. I'm not concerned too much either way, but if we add
in a new dependency like this, we should also take the opportunity to turn on
pcap PMD by default too and make libpcap-devel a dependency.

/Bruce


More information about the dev mailing list