Lines Matching +full:- +full:d2

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
20 /* Test 1: -c without -n */ in DEFINE_TEST()
24 systemf("%s -cf archive.tar -C .. d1 >c.out 2>c.err", testprog)); in DEFINE_TEST()
28 systemf("%s -xf archive.tar >x.out 2>x.err", testprog)); in DEFINE_TEST()
34 /* Test 2: -c with -n */ in DEFINE_TEST()
38 systemf("%s -cnf archive.tar -C .. d1 >c.out 2>c.err", testprog)); in DEFINE_TEST()
42 systemf("%s -xf archive.tar >x.out 2>x.err", testprog)); in DEFINE_TEST()
55 * d2/file4 in DEFINE_TEST()
64 assertMakeDir("d2", 0755); in DEFINE_TEST()
65 assertMakeFile("d2/file4", 0644, "d2/file4"); in DEFINE_TEST()
67 systemf("%s -cnf partial-archive.tar d1 d1/file1 d1/file2 file3 " in DEFINE_TEST()
68 "d2/file4 >c.out 2>c.err", testprog)); in DEFINE_TEST()
70 /* Test 3: -t without other options */ in DEFINE_TEST()
72 systemf("%s -tf partial-archive.tar >test3.out 2>test3.err", in DEFINE_TEST()
79 "d2/file4\n", in DEFINE_TEST()
82 /* Test 4: -t without -n and some entries selected */ in DEFINE_TEST()
84 systemf("%s -tf partial-archive.tar d1 file3 d2/file4 " in DEFINE_TEST()
91 "d2/file4\n", in DEFINE_TEST()
94 /* Test 5: -t with -n and some entries selected */ in DEFINE_TEST()
96 systemf("%s -tnf partial-archive.tar d1 file3 d2/file4 " in DEFINE_TEST()
101 "d2/file4\n", in DEFINE_TEST()
104 /* Test 6: -t without -n and non-existent directory selected */ in DEFINE_TEST()
106 systemf("%s -tf partial-archive.tar d2 >test6.out 2>test6.err", in DEFINE_TEST()
109 assertTextFileContents("d2/file4\n", in DEFINE_TEST()
112 /* Test 7: -t with -n and non-existent directory selected */ in DEFINE_TEST()
113 status = systemf("%s -tnf partial-archive.tar d2 " in DEFINE_TEST()
116 assert(status != -1); in DEFINE_TEST()