[dpdk-dev] [PATCH v1 04/10] app/test: support resources archived by tar

Thomas Monjalon thomas.monjalon at 6wind.com
Thu May 12 17:26:26 CEST 2016


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 <viktorin at rehivetech.com>
> ---
>  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?


More information about the dev mailing list