| /freebsd-13.1/contrib/libarchive/tar/test/ |
| H A D | test_option_s.c | 59 systemf("%s -xf test1_1.tar -C test1", testprog); in DEFINE_TEST() 62 systemf("%s -xf test1_2.tar -C test1", testprog); in DEFINE_TEST() 69 systemf("%s -cf test2.tar in/d1/foo", testprog); in DEFINE_TEST() 77 systemf("%s -tvf test3.tar > in.lst", testprog); in DEFINE_TEST() 84 systemf("%s -cf test4.tar in/d1/foo in/d1/bar", in DEFINE_TEST() 145 systemf("%s -cf test8a.tar in/d1", testprog); in DEFINE_TEST() 151 systemf("%s -xf test8b.tar -C test8b", testprog); in DEFINE_TEST() 159 systemf("%s -cf test9a.tar in/d1", testprog); in DEFINE_TEST() 165 systemf("%s -cf test9b.tar in/d1", testprog); in DEFINE_TEST() 265 systemf("%s -cf test14.tar in/d1/foo in/d1/bar", in DEFINE_TEST() [all …]
|
| H A D | test_option_C_upper.c | 46 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 61 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 77 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 90 systemf("%s -cf archive.tar -C %s/d1 file1", in DEFINE_TEST() 93 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 105 systemf("%s -cf archive.tar -C XXX -C %s/d1 file1", in DEFINE_TEST() 108 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 119 r = systemf("%s -cf archive.tar -C XXX -C ../d1 file1 2>write.err", in DEFINE_TEST() 124 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 134 r = systemf("%s -cf archive.tar ../d1/file1 -C 2>write.err", testprog); in DEFINE_TEST() [all …]
|
| H A D | test_option_ignore_zeros.c | 39 assertEqualInt(0, systemf("%s cf a.tar -C in a", testprog)); in make_files() 40 assertEqualInt(0, systemf("%s cf b.tar -C in b", testprog)); in make_files() 42 ret = systemf("cat a.tar b.tar > ab-cat.tar"); in make_files() 57 assertEqualInt(0, systemf( in DEFINE_TEST() 62 assertEqualInt(0, systemf( in DEFINE_TEST() 68 assertEqualInt(0, systemf( in DEFINE_TEST() 81 assertEqualInt(0, systemf( in DEFINE_TEST() 96 assertEqualInt(0, systemf( in DEFINE_TEST() 103 assertEqualInt(0, systemf( in DEFINE_TEST() 120 assertEqualInt(0, systemf( in test_option_ignore_zeros_mode_ru() [all …]
|
| H A D | test_option_n.c | 43 systemf("%s -cf archive.tar -C .. d1 >c.out 2>c.err", testprog)); in DEFINE_TEST() 47 systemf("%s -xf archive.tar >x.out 2>x.err", testprog)); in DEFINE_TEST() 57 systemf("%s -cnf archive.tar -C .. d1 >c.out 2>c.err", testprog)); in DEFINE_TEST() 61 systemf("%s -xf archive.tar >x.out 2>x.err", testprog)); in DEFINE_TEST() 86 systemf("%s -cnf partial-archive.tar d1 d1/file1 d1/file2 file3 " in DEFINE_TEST() 91 systemf("%s -tf partial-archive.tar >test3.out 2>test3.err", in DEFINE_TEST() 103 systemf("%s -tf partial-archive.tar d1 file3 d2/file4 " in DEFINE_TEST() 115 systemf("%s -tnf partial-archive.tar d1 file3 d2/file4 " in DEFINE_TEST() 125 systemf("%s -tf partial-archive.tar d2 >test6.out 2>test6.err", in DEFINE_TEST() 132 status = systemf("%s -tnf partial-archive.tar d2 " in DEFINE_TEST()
|
| H A D | test_stdio.c | 58 r = systemf("%s cf archive f l >cf.out 2>cf.err", testprog); in DEFINE_TEST() 64 r = systemf("%s cvf archive f l >cvf.out 2>cvf.err", testprog); in DEFINE_TEST() 72 r = systemf("%s cvf - f l >cvf-.out 2>cvf-.err", testprog); in DEFINE_TEST() 80 r = systemf("%s tf archive >tf.out 2>tf.err", testprog); in DEFINE_TEST() 87 r = systemf("%s tvf archive >tvf.out 2>tvf.err", testprog); in DEFINE_TEST() 94 r = systemf("%s tvf - < archive >tvf-.out 2>tvf-.err", testprog); in DEFINE_TEST() 100 r = systemf("%s xf archive >xf.out 2>xf.err", testprog); in DEFINE_TEST() 106 r = systemf("%s xvf archive >xvf.out 2>xvf.err", testprog); in DEFINE_TEST() 112 r = systemf("%s xvOf archive >xvOf.out 2>xvOf.err", testprog); in DEFINE_TEST() 122 r = systemf("%s xvf - < archive >xvf-.out 2>xvf-.err", testprog); in DEFINE_TEST()
|
| H A D | test_option_k.c | 37 assertEqualInt(0, systemf("%s -cf archive.tar foo", testprog)); in DEFINE_TEST() 41 assertEqualInt(0, systemf("%s -rf archive.tar foo", testprog)); in DEFINE_TEST() 45 assertEqualInt(0, systemf("%s -rf archive.tar bar", testprog)); in DEFINE_TEST() 49 assertEqualInt(0, systemf("%s -rf archive.tar foo", testprog)); in DEFINE_TEST() 53 assertEqualInt(0, systemf("%s -rf archive.tar bar", testprog)); in DEFINE_TEST() 64 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 75 systemf("%s -xf ../archive.tar -k >test.out 2>test.err", testprog)); in DEFINE_TEST() 88 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 101 systemf("%s -xf ../archive.tar -k >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
| H A D | test_option_q.c | 44 assertEqualInt(0, systemf("%s -cf archive.tar foo", testprog)); in DEFINE_TEST() 48 assertEqualInt(0, systemf("%s -rf archive.tar foo", testprog)); in DEFINE_TEST() 52 assertEqualInt(0, systemf("%s -rf archive.tar bar", testprog)); in DEFINE_TEST() 56 assertEqualInt(0, systemf("%s -rf archive.tar foo", testprog)); in DEFINE_TEST() 60 assertEqualInt(0, systemf("%s -rf archive.tar bar", testprog)); in DEFINE_TEST() 70 r = systemf("%s -xf ../archive.tar -q foo >test.out 2>test.err", in DEFINE_TEST() 85 systemf("%s -xf ../archive.tar -q foo bar >test.out 2>test.err", testprog)); in DEFINE_TEST() 96 systemf("%s -xf ../archive.tar --fast-read foo bar >test.out 2>test.err", testprog)); in DEFINE_TEST() 107 systemf("%s -xf ../archive.tar foo bar >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
| H A D | test_option_exclude.c | 34 assertEqualInt(0, systemf("%s -cf archive.tar file1 file2", testprog)); in DEFINE_TEST() 44 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 55 systemf("%s -xf ../archive.tar file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 66 systemf("%s -xf ../archive.tar --exclude file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 76 r = systemf("%s -xf ../archive.tar file1 file3 >test.out 2>test.err", testprog); in DEFINE_TEST() 89 systemf("%s -xf ../archive.tar file1 file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 100 systemf("%s -xf ../archive.tar --exclude file1 file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 111 systemf("%s -xf ../archive.tar --exclude file3 file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 122 r = systemf("%s -xf ../archive.tar file3 >test.out 2>test.err", testprog); in DEFINE_TEST() 134 r = systemf("%s -xf ../archive.tar --exclude file1 file3 >test.out 2>test.err", testprog); in DEFINE_TEST()
|
| H A D | test_option_X_upper.c | 40 systemf("%s -cf archive.tar file1 file2 file3a file4a", testprog)); in DEFINE_TEST() 49 r = systemf("%s -xf ../archive.tar >test.out 2>test.err", in DEFINE_TEST() 67 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST() 81 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST() 95 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST() 109 systemf("%s -xf ../archive.tar -X exclusions file3a >test.out 2>test.err", testprog)); in DEFINE_TEST() 123 systemf("%s -xf ../archive.tar -X exclusions file1 file3a >test.out 2>test.err", testprog)); in DEFINE_TEST() 137 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST() 151 systemf("%s -xf ../archive.tar -X exclusions >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
| H A D | test_option_U_upper.c | 35 assertEqualInt(0, systemf("%s -cf archive.tar file1 d1/file1", testprog)); in DEFINE_TEST() 50 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 64 systemf("%s -xUf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 83 r = systemf("%s -xf ../archive.tar d1/file1 >test.out 2>test.err", testprog); in DEFINE_TEST() 97 systemf("%s -xUf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 110 systemf("%s -xPf ../archive.tar d1/file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 123 systemf("%s -xPUf ../archive.tar d1/file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 137 systemf("%s -xf ../archive.tar d1/file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 152 systemf("%s -xPUf ../archive.tar d1/file1 >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
| H A D | test_option_b.c | 35 if (systemf("cat file1 > test_cat.out 2> test_cat.err") != 0) { in DEFINE_TEST() 46 assertEqualInt(0, systemf("%s -cf archive1.tar file1 >test1.out 2>test1.err", testprog_ustar)); in DEFINE_TEST() 56 assertEqualInt(0, systemf("%s -cf - file1 2>test2.err | cat >archive2.tar ", testprog_ustar)); in DEFINE_TEST() 61 …assertEqualInt(0, systemf("%s -cf - -b 20 file1 2>test3.err | cat >archive3.tar ", testprog_ustar)… in DEFINE_TEST() 65 …assertEqualInt(0, systemf("%s -cf - -b 10 file1 2>test4.err | cat >archive4.tar ", testprog_ustar)… in DEFINE_TEST() 69 assertEqualInt(0, systemf("%s -cf - -b 1 file1 2>test5.err | cat >archive5.tar ", testprog_ustar)); in DEFINE_TEST() 73 …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 | 56 r = systemf("%s cfv tar1.tgz foo > tar1a.out 2> tar1a.err", testprog); in DEFINE_TEST() 58 r = systemf("%s xv --no-same-owner -f tar1.tgz foo bar > tar1b.out 2> tar1b.err", testprog); in DEFINE_TEST() 67 r = systemf("%s tf %s /tmp/foo/bar > tar2a.out 2> tar2a.err", in DEFINE_TEST() 79 r = systemf("%s x --no-same-owner -f %s tmp/foo/bar > tar3a.out 2> tar3a.err", in DEFINE_TEST() 87 r = systemf("%s x --no-same-owner -f %s /tmp/foo/baz > tar3b.out 2> tar3b.err", in DEFINE_TEST() 94 r = systemf("%s x --no-same-owner -f %s ./tmp/foo/bar > tar3c.out 2> tar3c.err", in DEFINE_TEST() 101 r = systemf("%s x --no-same-owner -f %s ./tmp/foo/baz > tar3d.out 2> tar3d.err", in DEFINE_TEST() 114 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 | 39 systemf("%s -acf test1.tar.Z f 2>test1.err", testprog)); in DEFINE_TEST() 50 systemf("%s -acf test2.taZ f 2>test2.err", testprog)); in DEFINE_TEST() 61 systemf("%s -acf test3.tar.Z.uu f 2>test3.err", testprog)); in DEFINE_TEST() 72 systemf("%s -acf test4.zip f 2>test4.err", testprog)); in DEFINE_TEST() 83 systemf("%s -acf test5.tar.Z --uuencode f 2>test5.err", in DEFINE_TEST() 96 systemf("%s -acf test6.xxx --uuencode f 2>test6.err", in DEFINE_TEST() 108 systemf("%s --auto-compress -cf test7.tar.Z f 2>test7.err", in DEFINE_TEST()
|
| H A D | test_option_H_upper.c | 54 systemf("%s -cf test1/archive.tar -C in . >test1/c.out 2>test1/c.err", testprog)); in DEFINE_TEST() 57 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 68 systemf("%s -cf test2/archive.tar -H -C in . >test2/c.out 2>test2/c.err", testprog)); in DEFINE_TEST() 71 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 82 …systemf("%s -cf test3/archive.tar -H -C in ld1 d1 link2 linkY >test2/c.out 2>test2/c.err", testpro… in DEFINE_TEST() 85 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST()
|
| H A D | test_option_O_upper.c | 35 assertEqualInt(0, systemf("%s -cf archive.tar file1 file2", testprog)); in DEFINE_TEST() 41 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 52 systemf("%s -xOf ../archive.tar file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 63 systemf("%s -xOf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 74 systemf("%s -tf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 83 systemf("%s -tOf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST()
|
| H A D | test_option_L_upper.c | 54 systemf("%s -cf test1/archive.tar -C in . >test1/c.out 2>test1/c.err", testprog)); in DEFINE_TEST() 57 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 68 systemf("%s -cf test2/archive.tar -L -C in . >test2/c.out 2>test2/c.err", testprog)); in DEFINE_TEST() 71 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST() 82 …systemf("%s -cf test3/archive.tar -L -C in ld1 d1 link2 linkY >test2/c.out 2>test2/c.err", testpro… in DEFINE_TEST() 85 systemf("%s -xf archive.tar >c.out 2>c.err", testprog)); in DEFINE_TEST()
|
| H A D | test_strip_components.c | 48 assertEqualInt(0, systemf("%s -cf test.tar d0/l1 d0/s1 d0/d1", in DEFINE_TEST() 51 assertEqualInt(0, systemf("%s -cf test.tar d0/l1 d0/d1", in DEFINE_TEST() 55 assertEqualInt(0, systemf("%s -x -C target --strip-components 2 " in DEFINE_TEST() 108 assertEqualInt(0, systemf("%s --strip-components 2 -cf test2.tar " in DEFINE_TEST() 111 assertEqualInt(0, systemf("%s --strip-components 2 -cf test2.tar " in DEFINE_TEST() 115 assertEqualInt(0, systemf("%s -x -C target2 -f test2.tar", testprog)); in DEFINE_TEST()
|
| H A D | test_option_fflags.c | 76 r = systemf("%s -c --fflags -f fflags.tar f >fflags.out 2>fflags.err", testprog); in DEFINE_TEST() 80 r = systemf("%s -c --no-fflags -f nofflags.tar f >nofflags.out 2>nofflags.err", testprog); in DEFINE_TEST() 86 …r = systemf("%s -x -C fflags_fflags --no-same-permissions --fflags -f fflags.tar >fflags_fflags.ou… in DEFINE_TEST() 93 …r = systemf("%s -x -C fflags_nofflags -p --no-fflags -f fflags.tar >fflags_nofflags.out 2>fflags_n… in DEFINE_TEST() 100 …r = systemf("%s -x -C nofflags_fflags --no-same-permissions --fflags -f nofflags.tar >nofflags_ffl… in DEFINE_TEST() 107 …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 | 51 r = systemf("%s -c --no-mac-metadata --xattrs -f xattrs.tar f >xattrs.out 2>xattrs.err", testprog); in DEFINE_TEST() 55 …r = systemf("%s -c --no-mac-metadata --no-xattrs -f noxattrs.tar f >noxattrs.out 2>noxattrs.err", … in DEFINE_TEST() 60 …r = systemf("%s -x -C xattrs_xattrs --no-same-permissions --xattrs -f xattrs.tar >xattrs_xattrs.ou… in DEFINE_TEST() 69 …r = systemf("%s -x -C xattrs_noxattrs -p --no-xattrs -f xattrs.tar >xattrs_noxattrs.out 2>xattrs_n… in DEFINE_TEST() 76 …r = systemf("%s -x -C noxattrs_xattrs --no-same-permissions --xattrs -f noxattrs.tar >noxattrs_xat… in DEFINE_TEST() 83 …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 | 55 systemf("%s -cf test.tar -C source dir dir2 dir3 file file2", in DEFINE_TEST() 60 systemf("%s -cf test2.tar -C source dir4", testprog)); in DEFINE_TEST() 86 assertEqualInt(0, systemf("%s -xf test.tar -C dest1", testprog)); in DEFINE_TEST() 126 assertEqualInt(0, systemf("%s -xPf test.tar -C dest2", testprog)); in DEFINE_TEST() 131 assertEqualInt(0, systemf("%s -xPf test2.tar -C dest2", testprog)); in DEFINE_TEST()
|
| H A D | test_missing_file.c | 33 assert(0 == systemf("%s -cf archive.tar file1 file2 2>stderr1", testprog)); in DEFINE_TEST() 35 assert(0 != systemf("%s -cf archive.tar file1 file2 file3 2>stderr2", testprog)); in DEFINE_TEST() 37 assert(0 != systemf("%s -cf archive.tar 2>stderr3", testprog)); in DEFINE_TEST() 39 assert(0 != systemf("%s -cf archive.tar file3 file4 2>stderr4", testprog)); in DEFINE_TEST()
|
| /freebsd-13.1/contrib/libarchive/cpio/test/ |
| H A D | test_cmdline.c | 42 assert(0 != systemf("%s -i -Q <empty >1.out 2>1.err", testprog)); in DEFINE_TEST() 46 assert(0 != systemf("%s -if <empty >2.out 2>2.err", testprog)); in DEFINE_TEST() 50 assert(0 != systemf("%s -i -f <empty >3.out 2>3.err", testprog)); in DEFINE_TEST() 66 assert(0 != systemf("%s -i --n <empty >7.out 2>7.err", testprog)); in DEFINE_TEST() 74 assert(0 == systemf("%s -i <empty >9.out 2>9.err", testprog)); in DEFINE_TEST() 78 assert(0 == systemf("%s -o <empty >10.out 2>10.err", testprog)); in DEFINE_TEST() 81 assert(0 != systemf("%s -i -p <empty >11.out 2>11.err", testprog)); in DEFINE_TEST() 85 assert(0 != systemf("%s -p -i <empty >12.out 2>12.err", testprog)); in DEFINE_TEST() 89 assert(0 != systemf("%s -i -o <empty >13.out 2>13.err", testprog)); in DEFINE_TEST() 93 assert(0 != systemf("%s -o -i <empty >14.out 2>14.err", testprog)); in DEFINE_TEST() [all …]
|
| H A D | test_option_L_upper.c | 61 r = systemf(CAT " filelist | %s -pd copy >copy.out 2>copy.err", testprog); in DEFINE_TEST() 68 r = systemf(CAT " filelist | %s -pd -L copy-L >copy-L.out 2>copy-L.err", testprog); in DEFINE_TEST() 75 r = systemf(CAT " filelist | %s -o >archive.out 2>archive.err", testprog); in DEFINE_TEST() 82 r = systemf(CAT " .." SEP "archive.out | %s -i >unpack.out 2>unpack.err", testprog); in DEFINE_TEST() 91 r = systemf(CAT " filelist | %s -oL >archive-L.out 2>archive-L.err", testprog); in DEFINE_TEST() 98 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 | 42 r = systemf("%s -it < test_option_t.cpio >it.out 2>it.err", testprog); in DEFINE_TEST() 51 r = systemf("%s -t < test_option_t.cpio >t.out 2>t.err", testprog); in DEFINE_TEST() 60 assert(0 != systemf("%s -ot < test_option_t.cpio >ot.out 2>ot.err", in DEFINE_TEST() 65 r = systemf("%s -itv < test_option_t.cpio >tv.out 2>tv.err", testprog); in DEFINE_TEST() 76 r = systemf("%s -itnv < test_option_t.cpio >itnv.out 2>itnv.err", in DEFINE_TEST() 101 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 | 39 r = systemf("echo file | %s -o > small.cpio 2>small.err", testprog); in DEFINE_TEST() 45 r = systemf("echo file | %s -o -C 513 > 513.cpio 2>513.err", in DEFINE_TEST() 52 r = systemf("echo file | %s -o -C12345 > 12345.cpio 2>12345.err", in DEFINE_TEST() 59 assert(0 != systemf("echo file | %s -o -C > bad.cpio 2>bad.err", in DEFINE_TEST()
|