xref: /freebsd/contrib/libarchive/unzip/test/test.h (revision 7937bfbc0ca53fe7cdd0d54414f9296e273a518e)
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