xref: /freebsd/contrib/libarchive/cpio/test/test.h (revision b59017c5cad90d0f09a59e68c00457b7faf93e7c)
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_option_f.cpio.uu"
11 #define ENVBASE "BSDCPIO" /* Prefix for environment variables. */
12 #define	PROGRAM "bsdcpio" /* Name of program being tested. */
13 #define PROGRAM_ALIAS "cpio" /* 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