/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_entry.c | 178 assertEqualString(archive_entry_gname(e), "group"); in DEFINE_TEST() 179 assertEqualString(archive_entry_gname_utf8(e), "group"); in DEFINE_TEST() 186 assertEqualString(archive_entry_gname_utf8(e), "wgroup"); in DEFINE_TEST() 187 assertEqualString(archive_entry_gname(e), "wgroup"); in DEFINE_TEST() 189 assertEqualString(archive_entry_gname_utf8(e), "group"); in DEFINE_TEST() 191 assertEqualString(archive_entry_gname(e), "group"); in DEFINE_TEST() 193 assertEqualString(archive_entry_gname_utf8(e), "group2"); in DEFINE_TEST() 195 assertEqualString(archive_entry_gname(e), "group2"); in DEFINE_TEST() 199 assertEqualString(archive_entry_hardlink(e), "hardlinkname"); in DEFINE_TEST() 200 assertEqualString(archive_entry_hardlink_utf8(e), "hardlinkname"); in DEFINE_TEST() [all …]
|
H A D | test_read_format_rar5.c | 143 assertEqualString("helloworld.txt", archive_entry_pathname(ae)); in DEFINE_TEST() 166 assertEqualString("test.bin", archive_entry_pathname(ae)); in DEFINE_TEST() 187 assertEqualString("test1.bin", archive_entry_pathname(ae)); in DEFINE_TEST() 193 assertEqualString("test2.bin", archive_entry_pathname(ae)); in DEFINE_TEST() 199 assertEqualString("test3.bin", archive_entry_pathname(ae)); in DEFINE_TEST() 205 assertEqualString("test4.bin", archive_entry_pathname(ae)); in DEFINE_TEST() 230 assertEqualString("test1.bin", archive_entry_pathname(ae)); in DEFINE_TEST() 236 assertEqualString("test2.bin", archive_entry_pathname(ae)); in DEFINE_TEST() 242 assertEqualString("test3.bin", archive_entry_pathname(ae)); in DEFINE_TEST() 248 assertEqualString("test4.bin", archive_entry_pathname(ae)); in DEFINE_TEST() [all …]
|
H A D | test_archive_read_add_passphrase.c | 67 assertEqualString(NULL, __archive_read_next_passphrase(ar)); in DEFINE_TEST() 81 assertEqualString("pass1", __archive_read_next_passphrase(ar)); in DEFINE_TEST() 84 assertEqualString(NULL, __archive_read_next_passphrase(ar)); in DEFINE_TEST() 99 assertEqualString("pass1", __archive_read_next_passphrase(ar)); in DEFINE_TEST() 101 assertEqualString("pass2", __archive_read_next_passphrase(ar)); in DEFINE_TEST() 104 assertEqualString(NULL, __archive_read_next_passphrase(ar)); in DEFINE_TEST() 127 assertEqualString("passCallBack", __archive_read_next_passphrase(ar)); in DEFINE_TEST() 129 assertEqualString("passCallBack", __archive_read_next_passphrase(ar)); in DEFINE_TEST() 140 assertEqualString("passCallBack", __archive_read_next_passphrase(ar)); in DEFINE_TEST() 142 assertEqualString("passCallBac in DEFINE_TEST() [all...] |
H A D | test_archive_cmdline.c | 41 assertEqualString("gzip", cl->path); in DEFINE_TEST() 42 assertEqualString("gzip", cl->argv[0]); in DEFINE_TEST() 51 assertEqualString("gzip", cl->path); in DEFINE_TEST() 53 assertEqualString("gzip", cl->argv[0]); in DEFINE_TEST() 63 assertEqualString("/usr/bin/gzip", cl->path); in DEFINE_TEST() 65 assertEqualString("gzip", cl->argv[0]); in DEFINE_TEST() 75 assertEqualString("gzip ", cl->path); in DEFINE_TEST() 77 assertEqualString("gzip ", cl->argv[0]); in DEFINE_TEST() 87 assertEqualString("gzip x", cl->path); in DEFINE_TEST() 89 assertEqualString("gzi in DEFINE_TEST() [all...] |
H A D | test_read_format_tar.c | 73 assertEqualString(archive_filter_name(a, 0), "none"); in verifyEmpty() 107 assertEqualString(archive_entry_uname(ae), "tim"); in verify1() 108 assertEqualString(archive_entry_gname(ae), "tim"); in verify1() 109 assertEqualString(archive_entry_pathname(ae), "hardlink"); in verify1() 110 assertEqualString(archive_entry_hardlink(ae), "file"); in verify1() 136 assertEqualString(archive_entry_uname(ae), "tim"); in verify2() 137 assertEqualString(archive_entry_gname(ae), "tim"); in verify2() 138 assertEqualString(archive_entry_pathname(ae), "symlink"); in verify2() 139 assertEqualString(archive_entry_symlink(ae), "file"); in verify2() 165 assertEqualString(archive_entry_uname(ae), "tim"); in verify3() [all …]
|
H A D | test_archive_read_set_options.c | 50 assertEqualString("Unknown module name: `fubar'", in test() 53 assertEqualString("Unknown module name: `fubar'", in test() 58 assertEqualString("Undefined option: `snafu'", in test() 61 assertEqualString("Undefined option: `snafu'", in test() 67 assertEqualString("Unknown module name: `iso9660'", in test() 72 assertEqualString("Unknown module name: `iso9660'", in test() 77 assertEqualString("Undefined option: `joliet'", in test() 82 assertEqualString("Undefined option: `joliet'", in test() 91 assertEqualString("Undefined option: `joliet'", in test() 96 assertEqualString("Undefine in test() [all...] |
H A D | test_archive_write_set_options.c | 50 assertEqualString("Unknown module name: `fubar'", in test() 53 assertEqualString("Unknown module name: `fubar'", in test() 58 assertEqualString("Undefined option: `snafu'", in test() 61 assertEqualString("Undefined option: `snafu'", in test() 67 assertEqualString("Unknown module name: `iso9660'", in test() 72 assertEqualString("Unknown module name: `iso9660'", in test() 77 assertEqualString("Undefined option: `joliet'", in test() 82 assertEqualString("Undefined option: `joliet'", in test() 91 assertEqualString("Undefined option: `joliet'", in test() 96 assertEqualString("Undefine in test() [all...] |
H A D | test_compat_mac.c | 60 assertEqualString(TESTPATH, archive_entry_pathname(ae)); in test_compat_mac_1() 63 assertEqualString("kientzle", archive_entry_uname(ae)); in test_compat_mac_1() 65 assertEqualString("", archive_entry_gname(ae)); in test_compat_mac_1() 73 assertEqualString(TESTPATH "dir/", archive_entry_pathname(ae)); in test_compat_mac_1() 76 assertEqualString("kientzle", archive_entry_uname(ae)); in test_compat_mac_1() 78 assertEqualString("", archive_entry_gname(ae)); in test_compat_mac_1() 86 assertEqualString(TESTPATH "file", archive_entry_pathname(ae)); in test_compat_mac_1() 89 assertEqualString("kientzle", archive_entry_uname(ae)); in test_compat_mac_1() 91 assertEqualString("", archive_entry_gname(ae)); in test_compat_mac_1() 99 assertEqualString("di in test_compat_mac_1() [all...] |
H A D | test_read_format_zip.c | 113 assertEqualString("ZIP 1.0 (uncompressed)", archive_format_name(a)); in verify_basic() 114 assertEqualString("dir/", archive_entry_pathname(ae)); in verify_basic() 126 assertEqualString("ZIP 2.0 (deflation)", archive_format_name(a)); in verify_basic() 127 assertEqualString("file1", archive_entry_pathname(ae)); in verify_basic() 140 assertEqualString(archive_error_string(a), in verify_basic() 146 assertEqualString("ZIP 2.0 (deflation)", archive_format_name(a)); in verify_basic() 147 assertEqualString("file2", archive_entry_pathname(ae)); in verify_basic() 163 assertEqualString(archive_error_string(a), in verify_basic() 168 assertEqualString("ZIP 2.0 (deflation)", archive_format_name(a)); in verify_basic() 216 assertEqualString("file in verify_info_zip_ux() [all...] |
H A D | test_read_format_mtree.c | 73 assertEqualString(archive_entry_pathname(ae), "file"); in test_read_format_mtree1() 84 assertEqualString(archive_entry_pathname(ae), "dir"); in test_read_format_mtree1() 90 assertEqualString(archive_entry_pathname(ae), "dir/file with space"); in test_read_format_mtree1() 95 assertEqualString(archive_entry_pathname(ae), "file with space"); in test_read_format_mtree1() 100 assertEqualString(archive_entry_pathname(ae), "dir2"); in test_read_format_mtree1() 105 assertEqualString(archive_entry_pathname(ae), "dir2/dir3a"); in test_read_format_mtree1() 110 assertEqualString(archive_entry_pathname(ae), "dir2/dir3a/indir3a"); in test_read_format_mtree1() 115 assertEqualString(archive_entry_pathname(ae), "dir2/fullindir2"); in test_read_format_mtree1() 121 assertEqualString(archive_entry_pathname(ae), "dir2/indir2"); in test_read_format_mtree1() 126 assertEqualString(archive_entry_pathname(ae), "dir2/dir3b"); in test_read_format_mtree1() [all …]
|
H A D | test_entry_strmode.c | 34 assertEqualString(archive_entry_strmode(entry), "-rw-r---w- "); in DEFINE_TEST() 39 assertEqualString(archive_entry_strmode(entry), "-rw-r--r-- "); in DEFINE_TEST() 43 assertEqualString(archive_entry_strmode(entry), "hrw-r----- "); in DEFINE_TEST() 47 assertEqualString(archive_entry_strmode(entry), "drwxrwxrwx "); in DEFINE_TEST() 50 assertEqualString(archive_entry_strmode(entry), "brw-r-S-wT "); in DEFINE_TEST() 53 assertEqualString(archive_entry_strmode(entry), "crwsrwxrwt "); in DEFINE_TEST() 56 assertEqualString(archive_entry_strmode(entry), "s-w--w--w- "); in DEFINE_TEST() 59 assertEqualString(archive_entry_strmode(entry), "pr--r--r-- "); in DEFINE_TEST() 62 assertEqualString(archive_entry_strmode(entry), "l--S------ "); in DEFINE_TEST() 66 assertEqualString(archive_entry_strmod in DEFINE_TEST() [all...] |
H A D | test_compat_zip.c | 43 assertEqualString("META-INF/MANIFEST.MF", archive_entry_pathname(ae)); in DEFINE_TEST() 53 assertEqualString("tmp.class", archive_entry_pathname(ae)); in DEFINE_TEST() 85 assertEqualString("file1", archive_entry_pathname(ae)); in DEFINE_TEST() 89 assertEqualString("file2", archive_entry_pathname(ae)); in DEFINE_TEST() 114 assertEqualString("soapui-4.0.0/", archive_entry_pathname(ae)); in DEFINE_TEST() 121 assertEqualString("soapui-4.0.0/soapui-settings.xml", archive_entry_pathname(ae)); in DEFINE_TEST() 168 assertEqualString("foo", archive_entry_pathname(ae)); in DEFINE_TEST() 176 assertEqualString("bar", archive_entry_pathname(ae)); in DEFINE_TEST() 184 assertEqualString("baz", archive_entry_pathname(ae)); in DEFINE_TEST() 226 assertEqualString("Metadat in DEFINE_TEST() [all...] |
H A D | test_write_format_iso9660.c | 216 assertEqualString(".", archive_entry_pathname(ae)); in DEFINE_TEST() 228 assertEqualString("dir0", archive_entry_pathname(ae)); in DEFINE_TEST() 240 assertEqualString("dir0/dir1", archive_entry_pathname(ae)); in DEFINE_TEST() 252 assertEqualString("dir0/dir1/dir2", archive_entry_pathname(ae)); in DEFINE_TEST() 264 assertEqualString("dir0/dir1/dir2/dir3", in DEFINE_TEST() 277 assertEqualString("dir0/dir1/dir2/dir3/dir4", in DEFINE_TEST() 290 assertEqualString("dir0/dir1/dir2/dir3/dir4/dir5", in DEFINE_TEST() 303 assertEqualString("dir0/dir1/dir2/dir3/dir4/dir5/dir6", in DEFINE_TEST() 316 assertEqualString("dir0/dir1/dir2/dir3/dir4/dir5/dir6/dir7", in DEFINE_TEST() 329 assertEqualString("dir in DEFINE_TEST() [all...] |
H A D | test_read_format_xar.c | 91 assertEqualString(archive_entry_uname(ae), UNAME); in verify0() 92 assertEqualString(archive_entry_gname(ae), GNAME); in verify0() 93 assertEqualString(archive_entry_pathname(ae), "f1"); in verify0() 114 assertEqualString(archive_entry_uname(ae), UNAME); in verify1() 115 assertEqualString(archive_entry_gname(ae), GNAME); in verify1() 116 assertEqualString(archive_entry_pathname(ae), "hardlink"); in verify1() 117 assertEqualString(archive_entry_hardlink(ae), "f1"); in verify1() 180 assertEqualString(archive_entry_uname(ae), UNAME); in verify2() 181 assertEqualString(archive_entry_gname(ae), GNAME); in verify2() 182 assertEqualString(archive_entry_pathname(ae), "symlink"); in verify2() [all …]
|
H A D | test_link_resolver.c | 49 assertEqualString("test1", archive_entry_pathname(entry)); in test_linkify_tar() 58 assertEqualString("test2", archive_entry_pathname(entry)); in test_linkify_tar() 59 assertEqualString(NULL, archive_entry_hardlink(entry)); in test_linkify_tar() 65 assertEqualString("test2", archive_entry_pathname(entry)); in test_linkify_tar() 66 assertEqualString("test2", archive_entry_hardlink(entry)); in test_linkify_tar() 79 assertEqualString("test3", archive_entry_pathname(entry)); in test_linkify_tar() 80 assertEqualString(NULL, archive_entry_hardlink(entry)); in test_linkify_tar() 85 assertEqualString("test3", archive_entry_pathname(entry)); in test_linkify_tar() 86 assertEqualString(NULL, archive_entry_hardlink(entry)); in test_linkify_tar() 114 assertEqualString("test1", archive_entry_pathname(entry)); in test_linkify_old_cpio() [all …]
|
H A D | test_pax_filename_encoding.c | 70 assertEqualString(filename, archive_entry_pathname(entry)); in test_pax_filename_encoding_1() 78 assertEqualString(filename, archive_entry_pathname(entry)); in test_pax_filename_encoding_1() 164 assertEqualString(filename, archive_entry_pathname(entry)); in test_pax_filename_encoding_2() 165 assertEqualString(filename, archive_entry_gname(entry)); in test_pax_filename_encoding_2() 166 assertEqualString(filename, archive_entry_uname(entry)); in test_pax_filename_encoding_2() 167 assertEqualString(filename, archive_entry_hardlink(entry)); in test_pax_filename_encoding_2() 170 assertEqualString(filename, archive_entry_pathname(entry)); in test_pax_filename_encoding_2() 171 assertEqualString(filename, archive_entry_gname(entry)); in test_pax_filename_encoding_2() 172 assertEqualString(filename, archive_entry_uname(entry)); in test_pax_filename_encoding_2() 173 assertEqualString(filename, archive_entry_symlink(entry)); in test_pax_filename_encoding_2() [all …]
|
H A D | test_read_format_7zip.c | 64 assertEqualString("file1", archive_entry_pathname(ae)); in test_copy() 140 assertEqualString("empty", archive_entry_pathname(ae)); in test_empty_file() 181 assertEqualString("file1", archive_entry_pathname(ae)); in test_plain_header() 224 assertEqualString("dir1/file1", archive_entry_pathname(ae)); in test_extract_all_files() 235 assertEqualString("file2", archive_entry_pathname(ae)); in test_extract_all_files() 246 assertEqualString("file3", archive_entry_pathname(ae)); in test_extract_all_files() 257 assertEqualString("file4", archive_entry_pathname(ae)); in test_extract_all_files() 269 assertEqualString("dir1/", archive_entry_pathname(ae)); in test_extract_all_files() 309 assertEqualString("dir1/", archive_entry_pathname(ae)); in test_extract_all_files_zstd() 317 assertEqualString("dir1/file1", archive_entry_pathname(ae)); in test_extract_all_files_zstd() [all …]
|
H A D | test_compat_cpio.c | 57 assertEqualString("foo1", archive_entry_pathname(ae)); in test_compat_cpio_1() 58 assertEqualString(NULL, archive_entry_hardlink(ae)); in test_compat_cpio_1() 66 assertEqualString("foo2", archive_entry_pathname(ae)); in test_compat_cpio_1() 67 assertEqualString(NULL, archive_entry_hardlink(ae)); in test_compat_cpio_1() 75 assertEqualString("bar1", archive_entry_pathname(ae)); in test_compat_cpio_1() 76 assertEqualString(NULL, archive_entry_hardlink(ae)); in test_compat_cpio_1() 84 assertEqualString("bar2", archive_entry_pathname(ae)); in test_compat_cpio_1() 85 assertEqualString("bar1", archive_entry_hardlink(ae)); in test_compat_cpio_1()
|
H A D | test_read_format_cpio_filename.c | 57 assertEqualString("\xe6\xbc\xa2\xe5\xad\x97.txt", in DEFINE_TEST() 65 assertEqualString("\xe8\xa1\xa8.txt", archive_entry_pathname(ae)); in DEFINE_TEST() 114 assertEqualString("\xb4\xc1\xbb\xfa.txt", archive_entry_pathname(ae)); in DEFINE_TEST() 120 assertEqualString("\xc9\xbd.txt", archive_entry_pathname(ae)); in DEFINE_TEST() 166 assertEqualString("\xe6\xbc\xa2\xe5\xad\x97.txt", in DEFINE_TEST() 173 assertEqualString("\xe8\xa1\xa8.txt", archive_entry_pathname(ae)); in DEFINE_TEST() 219 assertEqualString("\xf0\xf2\xe9\xf7\xe5\xf4", in DEFINE_TEST() 225 assertEqualString("\xd0\xd2\xc9\xd7\xc5\xd4", in DEFINE_TEST() 271 assertEqualString("\xd0\x9f\xd0\xa0\xd0\x98\xd0\x92\xd0\x95\xd0\xa2", in DEFINE_TEST() 277 assertEqualString("\xd in DEFINE_TEST() [all...] |
H A D | test_read_format_isorr_new_bz2.c | 94 assertEqualString("dir", archive_entry_pathname(ae)); in DEFINE_TEST() 104 assertEqualString("file", archive_entry_pathname(ae)); in DEFINE_TEST() 123 assertEqualString("hardlink", archive_entry_pathname(ae)); in DEFINE_TEST() 125 assertEqualString("file", archive_entry_hardlink(ae)); in DEFINE_TEST() 136 assertEqualString("file", archive_entry_symlink(ae)); in DEFINE_TEST() 146 assertEqualString("/tmp/", archive_entry_symlink(ae)); in DEFINE_TEST() 154 assertEqualString("/tmp/../", archive_entry_symlink(ae)); in DEFINE_TEST() 162 assertEqualString(".././../tmp/", in DEFINE_TEST() 171 assertEqualString(".///file", archive_entry_symlink(ae)); in DEFINE_TEST() 182 assertEqualString("/tm in DEFINE_TEST() [all...] |
H A D | test_read_format_isorr_bz2.c | 94 assertEqualString("dir", archive_entry_pathname(ae)); in DEFINE_TEST() 104 assertEqualString("file", archive_entry_pathname(ae)); in DEFINE_TEST() 123 assertEqualString("hardlink", archive_entry_pathname(ae)); in DEFINE_TEST() 125 assertEqualString("file", archive_entry_hardlink(ae)); in DEFINE_TEST() 136 assertEqualString("file", archive_entry_symlink(ae)); in DEFINE_TEST() 146 assertEqualString("/tmp", archive_entry_symlink(ae)); in DEFINE_TEST() 154 assertEqualString("/tmp/..", archive_entry_symlink(ae)); in DEFINE_TEST() 162 assertEqualString(".././../tmp", in DEFINE_TEST() 171 assertEqualString(".///file", archive_entry_symlink(ae)); in DEFINE_TEST() 182 assertEqualString("/tm in DEFINE_TEST() [all...] |
H A D | test_read_format_isorr_rr_moved.c | 100 assertEqualString("dir1", archive_entry_pathname(ae)); in DEFINE_TEST() 111 assertEqualString("dir1/dir2", in DEFINE_TEST() 123 assertEqualString("dir1/dir2/dir3", in DEFINE_TEST() 135 assertEqualString("dir1/dir2/dir3/dir4", in DEFINE_TEST() 147 assertEqualString("dir1/dir2/dir3/dir4/dir5", in DEFINE_TEST() 159 assertEqualString("dir1/dir2/dir3/dir4/dir5/dir6", in DEFINE_TEST() 171 assertEqualString("dir1/dir2/dir3/dir4/dir5/dir6/dir7", in DEFINE_TEST() 184 assertEqualString("dir1/dir2/dir3/dir4/dir5/dir6/dir7" in DEFINE_TEST() 198 assertEqualString("dir1/dir2/dir3/dir4/dir5/dir6/dir7" in DEFINE_TEST() 212 assertEqualString("dir in DEFINE_TEST() [all...] |
H A D | test_read_format_zip_winzip_aes_large.c | 66 assertEqualString("Makefile", archive_entry_pathname(ae)); in DEFINE_TEST() 76 assertEqualString("NEWS", archive_entry_pathname(ae)); in DEFINE_TEST() 86 assertEqualString("README", archive_entry_pathname(ae)); in DEFINE_TEST() 96 assertEqualString("config.h", archive_entry_pathname(ae)); in DEFINE_TEST() 134 assertEqualString("Makefile", archive_entry_pathname(ae)); in DEFINE_TEST() 144 assertEqualString(archive_error_string(a), in DEFINE_TEST() 152 assertEqualString("NEWS", archive_entry_pathname(ae)); in DEFINE_TEST() 162 assertEqualString(archive_error_string(a), in DEFINE_TEST() 170 assertEqualString("README", archive_entry_pathname(ae)); in DEFINE_TEST() 180 assertEqualString(archive_error_string(a), in DEFINE_TEST() [all …]
|
H A D | test_archive_read_next_header_empty.c | 36 assertEqualString(NULL, archive_error_string(a)); in test_empty_file1() 50 assertEqualString(NULL, archive_error_string(a)); in test_empty_file2_check() 54 assertEqualString(NULL, archive_error_string(a)); in test_empty_file2_check() 58 assertEqualString(NULL, archive_error_string(a)); in test_empty_file2_check() 91 assertEqualString(NULL, archive_error_string(a)); in test_empty_tarfile() 95 assertEqualString(NULL, archive_error_string(a)); in test_empty_tarfile() 99 assertEqualString(NULL, archive_error_string(a)); in test_empty_tarfile()
|
H A D | test_read_format_gtar_filename.c | 57 assertEqualString("\xe6\xbc\xa2\xe5\xad\x97.txt", in DEFINE_TEST() 63 assertEqualString("\xe8\xa1\xa8.txt", archive_entry_pathname(ae)); in DEFINE_TEST() 111 assertEqualString("\xf0\xf2\xe9\xf7\xe5\xf4", in DEFINE_TEST() 117 assertEqualString("\xd0\xd2\xc9\xd7\xc5\xd4", in DEFINE_TEST() 163 assertEqualString("\xd0\x9f\xd0\xa0\xd0\x98\xd0\x92\xd0\x95\xd0\xa2", in DEFINE_TEST() 169 assertEqualString("\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82", in DEFINE_TEST() 216 assertEqualString("\xaf\xe0\xa8\xa2\xa5\xe2", in DEFINE_TEST() 222 assertEqualString("\x8f\x90\x88\x82\x85\x92", in DEFINE_TEST() 268 assertEqualString("\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82", in DEFINE_TEST() 274 assertEqualString("\xd in DEFINE_TEST() [all...] |