xref: /freebsd/contrib/libarchive/cpio/test/test.h (revision bd66c1b43e33540205dbc1187c2f2a15c58b57ba)
1caf54c4fSMartin Matuska /*
2*bd66c1b4SMartin Matuska  * SPDX-License-Identifier: BSD-2-Clause
3*bd66c1b4SMartin Matuska  *
464287048SMartin Matuska  * Copyright (c) 2003-2017 Tim Kientzle
5caf54c4fSMartin Matuska  * All rights reserved.
6caf54c4fSMartin Matuska  */
7caf54c4fSMartin Matuska 
8caf54c4fSMartin Matuska /* Every test program should #include "test.h" as the first thing. */
9caf54c4fSMartin Matuska 
1064287048SMartin Matuska #define KNOWNREF	"test_option_f.cpio.uu"
1164287048SMartin Matuska #define ENVBASE "BSDCPIO" /* Prefix for environment variables. */
1264287048SMartin Matuska #define	PROGRAM "bsdcpio" /* Name of program being tested. */
1364287048SMartin Matuska #define PROGRAM_ALIAS "cpio" /* Generic alias for program */
1464287048SMartin Matuska #undef	LIBRARY		  /* Not testing a library. */
1564287048SMartin Matuska #undef	EXTRA_DUMP	  /* How to dump extra data */
1664287048SMartin Matuska #undef	EXTRA_ERRNO	  /* How to dump errno */
1764287048SMartin Matuska /* How to generate extra version info. */
1864287048SMartin Matuska #define	EXTRA_VERSION    (systemf("%s --version", testprog) ? "" : "")
19caf54c4fSMartin Matuska 
2064287048SMartin Matuska #include "test_common.h"
21