Lines Matching +full:- +full:d2

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2003-2007 Tim Kientzle
14 assertMakeDir("d1/d2", 0755); in DEFINE_TEST()
15 assertMakeDir("d1/d2/d3", 0755); in DEFINE_TEST()
16 assertMakeFile("d1/d2/f1", 0644, ""); in DEFINE_TEST()
17 assertMakeHardlink("l1", "d1/d2/f1"); in DEFINE_TEST()
18 assertMakeHardlink("d1/l2", "d1/d2/f1"); in DEFINE_TEST()
20 assertMakeSymlink("s1", "d1/d2/f1", 0); in DEFINE_TEST()
21 assertMakeSymlink("d1/s2", "d2/f1", 0); in DEFINE_TEST()
29 assertEqualInt(0, systemf("%s -cf test.tar d0/l1 d0/s1 d0/d1", in DEFINE_TEST()
32 assertEqualInt(0, systemf("%s -cf test.tar d0/l1 d0/d1", in DEFINE_TEST()
36 assertEqualInt(0, systemf("%s -x -C target --strip-components 2 " in DEFINE_TEST()
37 "-f test.tar", testprog)); in DEFINE_TEST()
49 assertIsSymlink("target/s2", "d2/f1", 0); in DEFINE_TEST()
52 failure("d0/d1/d2 should be extracted"); in DEFINE_TEST()
53 assertIsDir("target/d2", -1); in DEFINE_TEST()
59 * d0/d1/d2/f1 are all hardlinks to the same file; d0/l1 can't in DEFINE_TEST()
60 * be extracted with --strip-components=2 and the other two in DEFINE_TEST()
67 * restored. Note that the "tar -cf" command above explicitly in DEFINE_TEST()
82 failure("d0/d1/d2/f1 is a hardlink to file whose name was too short"); in DEFINE_TEST()
83 assertFileNotExists("target/d2/f1"); in DEFINE_TEST()
89 assertEqualInt(0, systemf("%s --strip-components 2 -cf test2.tar " in DEFINE_TEST()
92 assertEqualInt(0, systemf("%s --strip-components 2 -cf test2.tar " in DEFINE_TEST()
96 assertEqualInt(0, systemf("%s -x -C target2 -f test2.tar", testprog)); in DEFINE_TEST()
107 assertIsSymlink("target2/s2", "d2/f1", 0); in DEFINE_TEST()
109 failure("d0/d1/d2 should be archived"); in DEFINE_TEST()
110 assertIsDir("target2/d2", -1); in DEFINE_TEST()
119 failure("d0/d1/d2/f1 is a hardlink to file whose name was too short"); in DEFINE_TEST()
120 assertFileNotExists("target/d2/f1"); in DEFINE_TEST()