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