1*e64fe029SMartin Matuska /* 2*e64fe029SMartin Matuska * Copyright (c) 2003-2017 Tim Kientzle 3*e64fe029SMartin Matuska * All rights reserved. 4*e64fe029SMartin Matuska * 5*e64fe029SMartin Matuska * Redistribution and use in source and binary forms, with or without 6*e64fe029SMartin Matuska * modification, are permitted provided that the following conditions 7*e64fe029SMartin Matuska * are met: 8*e64fe029SMartin Matuska * 1. Redistributions of source code must retain the above copyright 9*e64fe029SMartin Matuska * notice, this list of conditions and the following disclaimer. 10*e64fe029SMartin Matuska * 2. Redistributions in binary form must reproduce the above copyright 11*e64fe029SMartin Matuska * notice, this list of conditions and the following disclaimer in the 12*e64fe029SMartin Matuska * documentation and/or other materials provided with the distribution. 13*e64fe029SMartin Matuska * 14*e64fe029SMartin Matuska * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 15*e64fe029SMartin Matuska * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16*e64fe029SMartin Matuska * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17*e64fe029SMartin Matuska * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 18*e64fe029SMartin Matuska * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19*e64fe029SMartin Matuska * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20*e64fe029SMartin Matuska * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21*e64fe029SMartin Matuska * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22*e64fe029SMartin Matuska * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23*e64fe029SMartin Matuska * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24*e64fe029SMartin Matuska * 25*e64fe029SMartin Matuska * $FreeBSD$ 26*e64fe029SMartin Matuska */ 27*e64fe029SMartin Matuska 28*e64fe029SMartin Matuska /* Every test program should #include "test.h" as the first thing. */ 29*e64fe029SMartin Matuska 30*e64fe029SMartin Matuska #define KNOWNREF "test_basic.zip.uu" 31*e64fe029SMartin Matuska #define ENVBASE "BSDUNZIP" /* Prefix for environment variables. */ 32*e64fe029SMartin Matuska #define PROGRAM "bsdunzip" /* Name of program being tested. */ 33*e64fe029SMartin Matuska #define PROGRAM_ALIAS "unzip" /* Generic alias for program */ 34*e64fe029SMartin Matuska #undef LIBRARY /* Not testing a library. */ 35*e64fe029SMartin Matuska #undef EXTRA_DUMP /* How to dump extra data */ 36*e64fe029SMartin Matuska #undef EXTRA_ERRNO /* How to dump errno */ 37*e64fe029SMartin Matuska /* How to generate extra version info. */ 38*e64fe029SMartin Matuska #define EXTRA_VERSION (systemf("%s -v", testprog) ? "" : "") 39*e64fe029SMartin Matuska 40*e64fe029SMartin Matuska #include "test_common.h" 41