xref: /freebsd/contrib/libarchive/cat/test/test_expand_plain.c (revision bd66c1b43e33540205dbc1187c2f2a15c58b57ba)
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2014 Mike Kazantsev
5  * All rights reserved.
6  */
7 #include "test.h"
8 
DEFINE_TEST(test_expand_plain)9 DEFINE_TEST(test_expand_plain)
10 {
11 	const char *reffile = "test_expand.plain";
12 
13 	extract_reference_file(reffile);
14 	assertEqualInt(0, systemf("%s %s >test.out 2>test.err", testprog, reffile));
15 
16 	assertTextFileContents("contents of test_expand.plain.\n", "test.out");
17 	assertEmptyFile("test.err");
18 }
19