X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Fresource.c;h=34465f1668f93e3f574bd4246d131360b450f731;hb=ecdc927b99f2bdf3e5951998c7fda9726071bc38;hp=8c42eea2b4e39a91aac70ab44928d0acdd2e093e;hpb=66819e6c11d86f3549018d057b46f094d92e8638;p=dpdk.git diff --git a/app/test/resource.c b/app/test/resource.c index 8c42eea2b4..34465f1668 100644 --- a/app/test/resource.c +++ b/app/test/resource.c @@ -1,40 +1,9 @@ -/*- - * BSD LICENSE - * - * Copyright(c) 2016 RehiveTech. All rights reserved. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * * Neither the name of RehiveTech nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2016 RehiveTech. All rights reserved. */ #include #include -#include -#include #include #include @@ -97,6 +66,10 @@ int resource_fwrite_file(const struct resource *r, const char *fname) return ret; } +#ifdef RTE_APP_TEST_RESOURCE_TAR +#include +#include + static int do_copy(struct archive *r, struct archive *w) { const void *buf; @@ -295,6 +268,8 @@ fail: return -1; } +#endif /* RTE_APP_TEST_RESOURCE_TAR */ + void resource_register(struct resource *r) { TAILQ_INSERT_TAIL(&resource_list, r, next);