109ade360Sjoerg /* 2*d05f0226Sjoerg * Copyright (c) 2003-2017 Tim Kientzle 309ade360Sjoerg * All rights reserved. 409ade360Sjoerg * 509ade360Sjoerg * Redistribution and use in source and binary forms, with or without 609ade360Sjoerg * modification, are permitted provided that the following conditions 709ade360Sjoerg * are met: 809ade360Sjoerg * 1. Redistributions of source code must retain the above copyright 909ade360Sjoerg * notice, this list of conditions and the following disclaimer. 1009ade360Sjoerg * 2. Redistributions in binary form must reproduce the above copyright 1109ade360Sjoerg * notice, this list of conditions and the following disclaimer in the 1209ade360Sjoerg * documentation and/or other materials provided with the distribution. 1309ade360Sjoerg * 1409ade360Sjoerg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 1509ade360Sjoerg * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1609ade360Sjoerg * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1709ade360Sjoerg * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 1809ade360Sjoerg * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1909ade360Sjoerg * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2009ade360Sjoerg * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2109ade360Sjoerg * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2209ade360Sjoerg * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2309ade360Sjoerg * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2409ade360Sjoerg * 25*d05f0226Sjoerg * $FreeBSD$ 2609ade360Sjoerg */ 2709ade360Sjoerg 2809ade360Sjoerg /* Every test program should #include "test.h" as the first thing. */ 2909ade360Sjoerg 30*d05f0226Sjoerg #define KNOWNREF "test_patterns_2.tar.uu" 31*d05f0226Sjoerg #define ENVBASE "BSDTAR" /* Prefix for environment variables. */ 32*d05f0226Sjoerg #define PROGRAM "bsdtar" /* Name of program being tested. */ 33*d05f0226Sjoerg #define PROGRAM_ALIAS "tar" /* Generic alias for program */ 34*d05f0226Sjoerg #undef LIBRARY /* Not testing a library. */ 35*d05f0226Sjoerg #undef EXTRA_DUMP /* How to dump extra data */ 36*d05f0226Sjoerg #undef EXTRA_ERRNO /* How to dump errno */ 37*d05f0226Sjoerg /* How to generate extra version info. */ 38*d05f0226Sjoerg #define EXTRA_VERSION (systemf("%s --version", testprog) ? "" : "") 3909ade360Sjoerg 40*d05f0226Sjoerg #include "test_common.h" 41