/freebsd/contrib/libarchive/tar/test/ |
H A D | test_option_s.c | 26 systemf("%s -cf - -s /foo/bar/ in/d1/foo > NUL 2> check.err", in DEFINE_TEST() 39 systemf("%s -cf test1_1.tar -s /foo/bar/ in/d1/foo", testprog); in DEFINE_TEST() 40 systemf("%s -xf test1_1.tar -C test1", testprog); in DEFINE_TEST() 42 systemf("%s -cf test1_2.tar -s /d1/d2/ in/d1/foo", testprog); in DEFINE_TEST() 43 systemf("%s -xf test1_2.tar -C test1", testprog); in DEFINE_TEST() 50 systemf("%s -cf test2.tar in/d1/foo", testprog); in DEFINE_TEST() 51 systemf("%s -xf test2.tar -s /foo/bar/ -C test2", testprog); in DEFINE_TEST() 57 systemf("%s -cf test3.tar -s ,in/d1/foo,, in/d1/foo", testprog); in DEFINE_TEST() 58 systemf("%s -tvf test3.tar > in.lst", testprog); in DEFINE_TEST() 65 systemf("%s -cf test4.tar in/d1/foo in/d1/bar", in DEFINE_TEST() [all …]
|
H A D | test_option_C_upper.c | 25 assertEqualInt(0, systemf("%s -cf archive.tar -C ../d1 file1 -C ../d2 file2", testprog)); in DEFINE_TEST() 27 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 40 assertEqualInt(0, systemf("%s -cf archive.tar -C .. -C d1 file1 -C .. -C d2 file2", testprog)); in DEFINE_TEST() 42 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 54 r = systemf("%s -cf archive.tar -C ../XXX file1 -C ../d2 file2 2>write.err", testprog); in DEFINE_TEST() 58 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 71 systemf("%s -cf archive.tar -C %s/d1 file1", in DEFINE_TEST() 74 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 86 systemf("%s -cf archive.tar -C XXX -C %s/d1 file1", in DEFINE_TEST() 89 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() [all …]
|
H A D | test_option_ignore_zeros.c | 19 assertEqualInt(0, systemf("%s cf a.tar -C in a", testprog)); in make_files() 20 assertEqualInt(0, systemf("%s cf b.tar -C in b", testprog)); in make_files() 22 ret = systemf("cat a.tar b.tar > ab-cat.tar"); in make_files() 37 assertEqualInt(0, systemf( in DEFINE_TEST() 42 assertEqualInt(0, systemf( in DEFINE_TEST() 48 assertEqualInt(0, systemf( in DEFINE_TEST() 61 assertEqualInt(0, systemf( in DEFINE_TEST() 84 assertEqualInt(0, systemf( in DEFINE_TEST() 91 assertEqualInt(0, systemf( in DEFINE_TEST() 108 assertEqualInt(0, systemf( in test_option_ignore_zeros_mode_ru() [all …]
|
H A D | test_option_n.c | 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() 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() 67 systemf("%s -cnf partial-archive.tar d1 d1/file1 d1/file2 file3 " in DEFINE_TEST() 72 systemf("%s -tf partial-archive.tar >test3.out 2>test3.err", in DEFINE_TEST() 84 systemf("%s -tf partial-archive.tar d1 file3 d2/file4 " in DEFINE_TEST() 96 systemf("%s -tnf partial-archive.tar d1 file3 d2/file4 " in DEFINE_TEST() 106 systemf("%s -tf partial-archive.tar d2 >test6.out 2>test6.err", in DEFINE_TEST() 113 status = systemf("%s -tnf partial-archive.tar d2 " in DEFINE_TEST()
|
H A D | test_stdio.c | 39 r = systemf("%s cf archive f l >cf.out 2>cf.err", testprog); in DEFINE_TEST() 45 r = systemf("%s cvf archive f l >cvf.out 2>cvf.err", testprog); in DEFINE_TEST() 53 r = systemf("%s cvf - f l >cvf-.out 2>cvf-.err", testprog); in DEFINE_TEST() 61 r = systemf("%s tf archive >tf.out 2>tf.err", testprog); in DEFINE_TEST() 68 r = systemf("%s tvf archive >tvf.out 2>tvf.err", testprog); in DEFINE_TEST() 75 r = systemf("%s tvf - < archive >tvf-.out 2>tvf-.err", testprog); in DEFINE_TEST() 81 r = systemf("%s xf archive >xf.out 2>xf.err", testprog); in DEFINE_TEST() 87 r = systemf("%s xvf archive >xvf.out 2>xvf.err", testprog); in DEFINE_TEST() 93 r = systemf("%s xvOf archive >xvOf.out 2>xvOf.err", testprog); in DEFINE_TEST() 103 r = systemf("%s xvf - < archive >xvf-.out 2>xvf-.err", testprog); in DEFINE_TEST()
|
H A D | test_option_k.c | 18 assertEqualInt(0, systemf("%s -cf archive.tar foo", testprog)); in DEFINE_TEST() 22 assertEqualInt(0, systemf("%s -rf archive.tar foo", testprog)); in DEFINE_TEST() 26 assertEqualInt(0, systemf("%s -rf archive.tar bar", testprog)); in DEFINE_TEST() 30 assertEqualInt(0, systemf("%s -rf archive.tar foo", testprog)); in DEFINE_TEST() 34 assertEqualInt(0, systemf("%s -rf archive.tar bar", testprog)); in DEFINE_TEST() 45 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 56 systemf("%s -xf ../archive.tar -k >test.out 2>test.err", testprog)); in DEFINE_TEST() 69 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 82 systemf("%s -xf ../archive.tar -k >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
H A D | test_option_q.c | 25 assertEqualInt(0, systemf("%s -cf archive.tar foo", testprog)); in DEFINE_TEST() 29 assertEqualInt(0, systemf("%s -rf archive.tar foo", testprog)); in DEFINE_TEST() 33 assertEqualInt(0, systemf("%s -rf archive.tar bar", testprog)); in DEFINE_TEST() 37 assertEqualInt(0, systemf("%s -rf archive.tar foo", testprog)); in DEFINE_TEST() 41 assertEqualInt(0, systemf("%s -rf archive.tar bar", testprog)); in DEFINE_TEST() 51 r = systemf("%s -xf ../archive.tar -q foo >test.out 2>test.err", in DEFINE_TEST() 66 systemf("%s -xf ../archive.tar -q foo bar >test.out 2>test.err", testprog)); in DEFINE_TEST() 77 systemf("%s -xf ../archive.tar --fast-read foo bar >test.out 2>test.err", testprog)); in DEFINE_TEST() 88 systemf("%s -xf ../archive.tar foo bar >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
H A D | test_option_exclude.c | 15 assertEqualInt(0, systemf("%s -cf archive.tar file1 file2", testprog)); in DEFINE_TEST() 25 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 36 systemf("%s -xf ../archive.tar file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 47 systemf("%s -xf ../archive.tar --exclude file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 57 r = systemf("%s -xf ../archive.tar file1 file3 >test.out 2>test.err", testprog); in DEFINE_TEST() 70 systemf("%s -xf ../archive.tar file1 file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 81 systemf("%s -xf ../archive.tar --exclude file1 file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 92 systemf("%s -xf ../archive.tar --exclude file3 file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 103 r = systemf("%s -xf ../archive.tar file3 >test.out 2>test.err", testprog); in DEFINE_TEST() 115 r = systemf("%s -xf ../archive.tar --exclude file1 file3 >test.out 2>test.err", testprog); in DEFINE_TEST()
|
H A D | test_option_U_upper.c | 16 assertEqualInt(0, systemf("%s -cf archive.tar file1 d1/file1", testprog)); in DEFINE_TEST() 31 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 45 systemf("%s -xUf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 64 r = systemf("%s -xf ../archive.tar d1/file1 >test.out 2>test.err", testprog); in DEFINE_TEST() 78 systemf("%s -xUf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 91 systemf("%s -xPf ../archive.tar d1/file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 104 systemf("%s -xPUf ../archive.tar d1/file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 118 systemf("%s -xf ../archive.tar d1/file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 133 systemf("%s -xPUf ../archive.tar d1/file1 >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
H A D | test_option_X_upper.c | 21 systemf("%s -cf archive.tar file1 file2 file3a file4a", testprog)); in DEFINE_TEST() 30 r = systemf("%s -xf ../archive.tar >test.out 2>test.err", in DEFINE_TEST() 48 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST() 62 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST() 76 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST() 90 systemf("%s -xf ../archive.tar -X exclusions file3a >test.out 2>test.err", testprog)); in DEFINE_TEST() 104 systemf("%s -xf ../archive.tar -X exclusions file1 file3a >test.out 2>test.err", testprog)); in DEFINE_TEST() 118 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST() 132 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
H A D | test_option_H_upper.c | 35 systemf("%s -cf test1/archive.tar -C in . >test1/c.out 2>test1/c.err", testprog)); in DEFINE_TEST() 38 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 49 systemf("%s -cf test2/archive.tar -H -C in . >test2/c.out 2>test2/c.err", testprog)); in DEFINE_TEST() 52 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 63 …systemf("%s -cf test3/archive.tar -H -C in ld1 d1 link2 linkY >test3/c.out 2>test3/c.err", testpro… in DEFINE_TEST() 66 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 78 systemf("%s -cf test4/archive.tar -H -C in * >test4/c.out 2>test4/c.err", testprog)); in DEFINE_TEST() 81 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST()
|
H A D | test_option_L_upper.c | 35 systemf("%s -cf test1/archive.tar -C in . >test1/c.out 2>test1/c.err", testprog)); in DEFINE_TEST() 38 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 49 systemf("%s -cf test2/archive.tar -L -C in . >test2/c.out 2>test2/c.err", testprog)); in DEFINE_TEST() 52 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 63 …systemf("%s -cf test3/archive.tar -L -C in ld1 d1 link2 linkY >test3/c.out 2>test3/c.err", testpro… in DEFINE_TEST() 66 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 78 systemf("%s -cf test4/archive.tar -L -C in * >test4/c.out 2>test4/c.err", testprog)); in DEFINE_TEST() 81 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST()
|
H A D | test_option_b.c | 17 if (systemf("cat file1 > test_cat.out 2> test_cat.err") != 0) { in DEFINE_TEST() 29 assertEqualInt(0, systemf("%s -cf archive1.tar file1 >test1.out 2>test1.err", testprog_ustar)); in DEFINE_TEST() 39 assertEqualInt(0, systemf("%s -cf - file1 2>test2.err | cat >archive2.tar ", testprog_ustar)); in DEFINE_TEST() 44 …assertEqualInt(0, systemf("%s -cf - -b 20 file1 2>test3.err | cat >archive3.tar ", testprog_ustar)… in DEFINE_TEST() 48 …assertEqualInt(0, systemf("%s -cf - -b 10 file1 2>test4.err | cat >archive4.tar ", testprog_ustar)… in DEFINE_TEST() 52 assertEqualInt(0, systemf("%s -cf - -b 1 file1 2>test5.err | cat >archive5.tar ", testprog_ustar)); in DEFINE_TEST() 56 …assertEqualInt(0, systemf("%s -cf - -b 8192 file1 2>test6.err | cat >archive6.tar ", testprog_usta… in DEFINE_TEST()
|
H A D | test_patterns.c | 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() 48 r = systemf("%s tf %s /tmp/foo/bar > tar2a.out 2> tar2a.err", in DEFINE_TEST() 60 r = systemf("%s x --no-same-owner -f %s tmp/foo/bar > tar3a.out 2> 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() 75 r = systemf("%s x --no-same-owner -f %s ./tmp/foo/bar > tar3c.out 2> tar3c.err", in DEFINE_TEST() 82 r = systemf("%s x --no-same-owner -f %s ./tmp/foo/baz > tar3d.out 2> tar3d.err", in DEFINE_TEST() 95 r = systemf("%s x --no-same-owner -f %s -C tmp > tar4.out 2> tar4.err", in DEFINE_TEST()
|
H A D | test_option_a.c | 20 systemf("%s -acf test1.tar.Z f 2>test1.err", testprog)); in DEFINE_TEST() 31 systemf("%s -acf test2.taZ f 2>test2.err", testprog)); in DEFINE_TEST() 42 systemf("%s -acf test3.tar.Z.uu f 2>test3.err", testprog)); in DEFINE_TEST() 53 systemf("%s -acf test4.zip f 2>test4.err", testprog)); in DEFINE_TEST() 64 systemf("%s -acf test5.tar.Z --uuencode f 2>test5.err", in DEFINE_TEST() 77 systemf("%s -acf test6.xxx --uuencode f 2>test6.err", in DEFINE_TEST() 89 systemf("%s --auto-compress -cf test7.tar.Z f 2>test7.err", in DEFINE_TEST()
|
H A D | test_option_O_upper.c | 16 assertEqualInt(0, systemf("%s -cf archive.tar file1 file2", testprog)); in DEFINE_TEST() 22 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 33 systemf("%s -xOf ../archive.tar file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 44 systemf("%s -xOf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 55 systemf("%s -tf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 64 systemf("%s -tOf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
H A D | test_strip_components.c | 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() 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()
|
H A D | test_option_fflags.c | 57 r = systemf("%s -c --fflags -f fflags.tar f >fflags.out 2>fflags.err", testprog); in DEFINE_TEST() 61 r = systemf("%s -c --no-fflags -f nofflags.tar f >nofflags.out 2>nofflags.err", testprog); in DEFINE_TEST() 67 …r = systemf("%s -x -C fflags_fflags --no-same-permissions --fflags -f fflags.tar >fflags_fflags.ou… in DEFINE_TEST() 74 …r = systemf("%s -x -C fflags_nofflags -p --no-fflags -f fflags.tar >fflags_nofflags.out 2>fflags_n… in DEFINE_TEST() 81 …r = systemf("%s -x -C nofflags_fflags --no-same-permissions --fflags -f nofflags.tar >nofflags_ffl… in DEFINE_TEST() 88 …r = systemf("%s -x -C nofflags_nofflags -p --no-fflags -f nofflags.tar >nofflags_nofflags.out 2>no… in DEFINE_TEST()
|
H A D | test_option_xattrs.c | 32 r = systemf("%s -c --no-mac-metadata --xattrs -f xattrs.tar f >xattrs.out 2>xattrs.err", testprog); in DEFINE_TEST() 36 …r = systemf("%s -c --no-mac-metadata --no-xattrs -f noxattrs.tar f >noxattrs.out 2>noxattrs.err", … in DEFINE_TEST() 41 …r = systemf("%s -x -C xattrs_xattrs --no-same-permissions --xattrs -f xattrs.tar >xattrs_xattrs.ou… in DEFINE_TEST() 50 …r = systemf("%s -x -C xattrs_noxattrs -p --no-xattrs -f xattrs.tar >xattrs_noxattrs.out 2>xattrs_n… in DEFINE_TEST() 57 …r = systemf("%s -x -C noxattrs_xattrs --no-same-permissions --xattrs -f noxattrs.tar >noxattrs_xat… in DEFINE_TEST() 64 …r = systemf("%s -x -C noxattrs_noxattrs -p --no-xattrs -f noxattrs.tar >noxattrs_noxattrs.out 2>no… in DEFINE_TEST()
|
H A D | test_symlink_dir.c | 36 systemf("%s -cf test.tar -C source dir dir2 dir3 file file2", in DEFINE_TEST() 41 systemf("%s -cf test2.tar -C source dir4", testprog)); in DEFINE_TEST() 67 assertEqualInt(0, systemf("%s -xf test.tar -C dest1", testprog)); in DEFINE_TEST() 107 assertEqualInt(0, systemf("%s -xPf test.tar -C dest2", testprog)); in DEFINE_TEST() 112 assertEqualInt(0, systemf("%s -xPf test2.tar -C dest2", testprog)); in DEFINE_TEST()
|
H A D | test_missing_file.c | 14 assert(0 == systemf("%s -cf archive.tar file1 file2 2>stderr1", testprog)); in DEFINE_TEST() 16 assert(0 != systemf("%s -cf archive.tar file1 file2 file3 2>stderr2", testprog)); in DEFINE_TEST() 18 assert(0 != systemf("%s -cf archive.tar 2>stderr3", testprog)); in DEFINE_TEST() 20 assert(0 != systemf("%s -cf archive.tar file3 file4 2>stderr4", testprog)); in DEFINE_TEST()
|
/freebsd/contrib/libarchive/cpio/test/ |
H A D | test_cmdline.c | 23 assert(0 != systemf("%s -i -Q <empty >1.out 2>1.err", testprog)); in DEFINE_TEST() 27 assert(0 != systemf("%s -if <empty >2.out 2>2.err", testprog)); in DEFINE_TEST() 31 assert(0 != systemf("%s -i -f <empty >3.out 2>3.err", testprog)); in DEFINE_TEST() 35 assert(0 != systemf("%s -i --format <empty >4.out 2>4.err", testprog)); in DEFINE_TEST() 39 assert(0 != systemf("%s -i --badop <empty >5.out 2>5.err", testprog)); in DEFINE_TEST() 43 assert(0 != systemf("%s -i --badopt <empty >6.out 2>6.err", testprog)); in DEFINE_TEST() 47 assert(0 != systemf("%s -i --n <empty >7.out 2>7.err", testprog)); in DEFINE_TEST() 51 assert(0 != systemf("%s --create=arg <empty >8.out 2>8.err", testprog)); in DEFINE_TEST() 55 assert(0 == systemf("%s -i <empty >9.out 2>9.err", testprog)); in DEFINE_TEST() 59 assert(0 == systemf("%s -o <empty >10.out 2>10.err", testprog)); in DEFINE_TEST() [all …]
|
H A D | test_option_L_upper.c | 42 r = systemf(CAT " filelist | %s -pd copy >copy.out 2>copy.err", testprog); in DEFINE_TEST() 49 r = systemf(CAT " filelist | %s -pd -L copy-L >copy-L.out 2>copy-L.err", testprog); in DEFINE_TEST() 56 r = systemf(CAT " filelist | %s -o >archive.out 2>archive.err", testprog); in DEFINE_TEST() 63 r = systemf(CAT " .." SEP "archive.out | %s -i >unpack.out 2>unpack.err", testprog); in DEFINE_TEST() 72 r = systemf(CAT " filelist | %s -oL >archive-L.out 2>archive-L.err", testprog); in DEFINE_TEST() 79 r = systemf(CAT " .." SEP "archive-L.out | %s -i >unpack-L.out 2>unpack-L.err", testprog); in DEFINE_TEST()
|
H A D | test_option_t.c | 27 r = systemf("%s -it < test_option_t.cpio >it.out 2>it.err", testprog); in DEFINE_TEST() 36 r = systemf("%s -t < test_option_t.cpio >t.out 2>t.err", testprog); in DEFINE_TEST() 45 assert(0 != systemf("%s -ot < test_option_t.cpio >ot.out 2>ot.err", in DEFINE_TEST() 50 r = systemf("%s -itv < test_option_t.cpio >tv.out 2>tv.err", testprog); in DEFINE_TEST() 61 r = systemf("%s -itnv < test_option_t.cpio >itnv.out 2>itnv.err", in DEFINE_TEST() 94 assert(0 != systemf("%s -in < test_option_t.cpio >in.out 2>in.err", in DEFINE_TEST()
|
H A D | test_option_C_upper.c | 19 r = systemf("echo file | %s -o > small.cpio 2>small.err", testprog); in DEFINE_TEST() 25 r = systemf("echo file | %s -o -C 513 > 513.cpio 2>513.err", in DEFINE_TEST() 32 r = systemf("echo file | %s -o -C12345 > 12345.cpio 2>12345.err", in DEFINE_TEST() 39 assert(0 != systemf("echo file | %s -o -C > bad.cpio 2>bad.err", in DEFINE_TEST()
|