xref: /freebsd/contrib/libarchive/unzip/test/test.h (revision 5036d9652a5701d00e9e40ea942c278e9f77d33d)
1 /*
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2003-2017 Tim Kientzle
5  * All rights reserved.
6  */
7 
8 /* Every test program should #include "test.h" as the first thing. */
9 
10 #define KNOWNREF	"test_basic.zip.uu"
11 #define ENVBASE "BSDUNZIP" /* Prefix for environment variables. */
12 #define	PROGRAM "bsdunzip" /* Name of program being tested. */
13 #define PROGRAM_ALIAS "unzip" /* Generic alias for program */
14 #undef	LIBRARY		  /* Not testing a library. */
15 #undef	EXTRA_DUMP	  /* How to dump extra data */
16 #undef	EXTRA_ERRNO	  /* How to dump errno */
17 /* How to generate extra version info. */
18 #define	EXTRA_VERSION     (systemf("%s --version", testprog) ? "" : "")
19 
20 #include "test_common.h"
21