Lines Matching +full:test_patterns_2 +full:. +full:tar

6  * All rights reserved.
8 #include "test.h"
14 const char *reffile2 = "test_patterns_2.tar"; in DEFINE_TEST()
15 const char *reffile3 = "test_patterns_3.tar"; in DEFINE_TEST()
16 const char *reffile4 = "test_patterns_4.tar"; in DEFINE_TEST()
25 * Test basic command-line pattern handling. in DEFINE_TEST()
30 * didn't produce an error. in DEFINE_TEST()
37 r = systemf("%s cfv tar1.tgz foo > tar1a.out 2> tar1a.err", testprog); in DEFINE_TEST()
39 r = systemf("%s xv --no-same-owner -f tar1.tgz foo bar > tar1b.out 2> tar1b.err", testprog); in DEFINE_TEST()
40 …failure("tar should return non-zero because a file was given on the command line that's not in the… in DEFINE_TEST()
48 r = systemf("%s tf %s /tmp/foo/bar > tar2a.out 2> tar2a.err", in DEFINE_TEST()
51 assertFileContainsLinesAnyOrder("tar2a.out", tar2aExpected); in DEFINE_TEST()
52 assertEmptyFile("tar2a.err"); in DEFINE_TEST()
55 * Test 3 archive has some entries starting with '/' and some not. in DEFINE_TEST()
60 r = systemf("%s x --no-same-owner -f %s tmp/foo/bar > tar3a.out 2> tar3a.err", in DEFINE_TEST()
63 assertEmptyFile("tar3a.out"); in DEFINE_TEST()
66 assertNonEmptyFile("tar3a.err"); in DEFINE_TEST()
68 r = systemf("%s x --no-same-owner -f %s /tmp/foo/baz > tar3b.out 2> tar3b.err", in DEFINE_TEST()
71 assertEmptyFile("tar3b.out"); in DEFINE_TEST()
72 assertNonEmptyFile("tar3b.err"); in DEFINE_TEST()
74 /* Test 3c: ./tmp/foo/bar should not match /tmp/foo/bar */ in DEFINE_TEST()
75 r = systemf("%s x --no-same-owner -f %s ./tmp/foo/bar > tar3c.out 2> tar3c.err", in DEFINE_TEST()
78 assertEmptyFile("tar3c.out"); in DEFINE_TEST()
79 assertNonEmptyFile("tar3c.err"); in DEFINE_TEST()
81 /* Test 3d: ./tmp/foo/baz should match tmp/foo/baz */ in DEFINE_TEST()
82 r = systemf("%s x --no-same-owner -f %s ./tmp/foo/baz > tar3d.out 2> tar3d.err", in DEFINE_TEST()
85 assertEmptyFile("tar3d.out"); in DEFINE_TEST()
86 assertEmptyFile("tar3d.err"); in DEFINE_TEST()
91 * such as 'c:\', '//./c:/' or '//?/c:/'. in DEFINE_TEST()
95 r = systemf("%s x --no-same-owner -f %s -C tmp > tar4.out 2> tar4.err", in DEFINE_TEST()
98 assertEmptyFile("tar4.out"); in DEFINE_TEST()
99 assertNonEmptyFile("tar4.err"); in DEFINE_TEST()
105 char file_c[] = "tmp/../fileXX"; in DEFINE_TEST()
106 char file_d[] = "tmp/../../fileXX"; in DEFINE_TEST()
113 * Including server and share names. in DEFINE_TEST()
122 * Including server and share names. in DEFINE_TEST()
141 * Not extracted patterns. in DEFINE_TEST()
142 * D:../file05 in DEFINE_TEST()
143 * c:../../file06 in DEFINE_TEST()
144 * //?/UNC/../file17 in DEFINE_TEST()
145 * //?/unc/../file20 in DEFINE_TEST()
146 * z:..\file25 in DEFINE_TEST()
147 * c:..\..\file26 in DEFINE_TEST()
148 * \\?\UNC\..\file37 in DEFINE_TEST()
149 * \\?\unc\..\file40 in DEFINE_TEST()
150 * c:../..\file43 in DEFINE_TEST()
151 * \/?\UnC\../file54 in DEFINE_TEST()
166 /* Extracted patterns. */ in DEFINE_TEST()