/freebsd/contrib/libarchive/tar/test/ |
H A D | test_option_s.c | 27 testprog); in DEFINE_TEST() 31 testprog); 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() [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() 72 testprog, testworkdir)); in DEFINE_TEST() 74 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 87 testprog, testworkdir)); in DEFINE_TEST() 89 systemf("%s -xf archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() [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() 68 "d2/file4 >c.out 2>c.err", testprog)); in DEFINE_TEST() 73 testprog)); in DEFINE_TEST() 85 ">test4.out 2>test4.err", testprog)); in DEFINE_TEST() 97 ">test5.out 2>test5.err", testprog)); in DEFINE_TEST() 107 testprog)); in DEFINE_TEST() 114 ">test7.out 2>test7.err", testprog); in DEFINE_TEST()
|
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() 39 testprog)); in DEFINE_TEST() 44 testprog)); in DEFINE_TEST() 50 testprog)); in DEFINE_TEST() 63 testprog)); in DEFINE_TEST() 87 testprog)); in DEFINE_TEST() 93 testprog)); in DEFINE_TEST() 111 testprog, mode)); in test_option_ignore_zeros_mode_ru() 118 testprog)); in test_option_ignore_zeros_mode_ru()
|
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() 52 testprog); 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_0.c | 23 failure("File %s does not exist?!", testprog); in DEFINE_TEST() 27 testprog); in DEFINE_TEST() 31 failure("%s is not executable?!", testprog); in DEFINE_TEST() 35 testprog); in DEFINE_TEST() 43 if (0 == systemf("%s --version >" DEV_NULL, testprog)) { in DEFINE_TEST() 45 } else if (0 == systemf("%s -W version >" DEV_NULL, testprog)) { in DEFINE_TEST() 51 testprog, testprog); in DEFINE_TEST()
|
H A D | test_option_group.c | 19 failure("Error invoking %s c", testprog); in DEFINE_TEST() 22 testprog)); in DEFINE_TEST() 28 failure("Error invoking %s c", testprog); in DEFINE_TEST() 31 testprog)); in DEFINE_TEST() 41 failure("Error invoking %s c", testprog); in DEFINE_TEST() 44 testprog)); in DEFINE_TEST() 54 failure("Error invoking %s c", testprog); in DEFINE_TEST() 57 testprog)); in DEFINE_TEST()
|
H A D | test_option_gid_gname.c | 18 failure("Error invoking %s c", testprog); in DEFINE_TEST() 21 testprog)); in DEFINE_TEST() 27 failure("Error invoking %s c", testprog); in DEFINE_TEST() 30 testprog)); in DEFINE_TEST() 40 failure("Error invoking %s c", testprog); in DEFINE_TEST() 43 testprog)); in DEFINE_TEST() 54 failure("Error invoking %s c", testprog); in DEFINE_TEST() 57 testprog)); in DEFINE_TEST()
|
H A D | test_option_owner.c | 19 failure("Error invoking %s c", testprog); in DEFINE_TEST() 22 testprog)); in DEFINE_TEST() 28 failure("Error invoking %s c", testprog); in DEFINE_TEST() 31 testprog)); in DEFINE_TEST() 41 failure("Error invoking %s c", testprog); in DEFINE_TEST() 44 testprog)); in DEFINE_TEST() 54 failure("Error invoking %s c", testprog); in DEFINE_TEST() 57 testprog)); in DEFINE_TEST()
|
H A D | test_option_uid_uname.c | 18 failure("Error invoking %s c", testprog); in DEFINE_TEST() 21 testprog)); in DEFINE_TEST() 27 failure("Error invoking %s c", testprog); in DEFINE_TEST() 30 testprog)); in DEFINE_TEST() 40 failure("Error invoking %s c", testprog); in DEFINE_TEST() 43 testprog)); in DEFINE_TEST() 53 failure("Error invoking %s c", testprog); in DEFINE_TEST() 56 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() 31 testprog); 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 …temf("%s -cf test3/archive.tar -H -C in ld1 d1 link2 linkY >test3/c.out 2>test3/c.err", testprog)); 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 …temf("%s -cf test3/archive.tar -L -C in ld1 d1 link2 linkY >test3/c.out 2>test3/c.err", testprog)); 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_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() 49 testprog, reffile2); in DEFINE_TEST() 61 testprog, reffile3); in DEFINE_TEST() 69 testprog, reffile3); in DEFINE_TEST() 76 testprog, reffile3); in DEFINE_TEST() 83 testprog, reffile3); in DEFINE_TEST() 96 testprog, reffile4); in DEFINE_TEST()
|
H A D | test_option_r.c | 26 r = systemf("%s cf archive.tar --format=ustar f1 >step1.out 2>step1.err", testprog); in DEFINE_TEST() 27 failure("Error invoking %s cf archive.tar f1", testprog); in DEFINE_TEST() 53 r = systemf("%s rf archive.tar --format=ustar f1 >step2.out 2>step2.err", testprog); in DEFINE_TEST() 54 failure("Error invoking %s rf archive.tar f1", testprog); in DEFINE_TEST() 79 r = systemf("%s rf archive.tar --format=ustar f2 >step3.out 2>step3.err", testprog); in DEFINE_TEST() 80 failure("Error invoking %s rf archive.tar f2", testprog); in DEFINE_TEST() 103 r = systemf("%s xf ../archive.tar >extract.out 2>extract.err", testprog); in DEFINE_TEST() 104 failure("Error invoking %s xf archive.tar", testprog); 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() 65 testprog)); in DEFINE_TEST() 78 testprog)); in DEFINE_TEST() 90 testprog)); 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()
|
/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() 57 failure("Error invoking %s -o ", testprog); in DEFINE_TEST() 63 r = systemf(CAT " .." SEP "archive.out | %s -i >unpack.out 2>unpack.err", testprog); in DEFINE_TEST() 65 failure("Error invoking %s -i", testprog); in DEFINE_TEST() 72 r = systemf(CAT " filelist | %s -oL >archive-L.out 2>archive-L.err", testprog); in DEFINE_TEST() 73 failure("Error invoking %s -oL", 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() 81 failure("Error invoking %s -i < archive-L.out", testprog); in DEFINE_TEST()
|
H A D | test_0.c | 27 testprog); in DEFINE_TEST() 35 testprog); in DEFINE_TEST() 43 if (0 == systemf("%s --version >" DEV_NULL, testprog)) { in DEFINE_TEST() 45 } else if (0 == systemf("%s -W version >" DEV_NULL, testprog)) { in DEFINE_TEST() 51 testprog, testprog); in DEFINE_TEST()
|
/freebsd/contrib/libarchive/cat/test/ |
H A D | test_0.c | 23 failure("File %s does not exist?!", testprog); in DEFINE_TEST() 27 testprog); in DEFINE_TEST() 31 failure("%s is not executable?!", testprog); in DEFINE_TEST() 35 testprog); in DEFINE_TEST() 43 if (0 != systemf("%s --version >" DEV_NULL, testprog)) { in DEFINE_TEST() 44 failure("Unable to successfully run: %s --version\n", testprog); in DEFINE_TEST()
|