/freebsd/contrib/libarchive/libarchive/test/ |
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_read_format_isorr_rr_moved.c | 85 if (strcmp(".", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 98 } else if (strcmp("dir1", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 100 assertEqualString("dir1", archive_entry_pathname(ae)); in DEFINE_TEST() 109 archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 112 archive_entry_pathname(ae)); in DEFINE_TEST() 121 archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 124 archive_entry_pathname(ae)); in DEFINE_TEST() 133 archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 136 archive_entry_pathname(ae)); in DEFINE_TEST() 145 archive_entry_pathname(a in DEFINE_TEST() [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_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("Metadata/Job_PT.xml", archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_read_disk_directory_traversals.c | 115 if (strcmp(archive_entry_pathname(ae), "dir1") == 0) { in test_basic() 118 } else if (strcmp(archive_entry_pathname(ae), in test_basic() 132 } else if (strcmp(archive_entry_pathname(ae), in test_basic() 146 } else if (strcmp(archive_entry_pathname(ae), in test_basic() 150 } else if (strcmp(archive_entry_pathname(ae), in test_basic() 164 } else if (strcmp(archive_entry_pathname(ae), in test_basic() 168 } else if (strcmp(archive_entry_pathname(ae), in test_basic() 182 } else if (strcmp(archive_entry_pathname(ae), in test_basic() 196 } else if (strcmp(archive_entry_pathname(ae), in test_basic() 200 } else if (strcmp(archive_entry_pathname(a in test_basic() [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() 265 archive_entry_pathname(ae)); in DEFINE_TEST() 278 archive_entry_pathname(ae)); in DEFINE_TEST() 291 archive_entry_pathname(ae)); in DEFINE_TEST() 304 archive_entry_pathname(ae)); in DEFINE_TEST() 317 archive_entry_pathname(ae)); in DEFINE_TEST() 330 archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_read_format_isorr_new_bz2.c | 79 if (strcmp(".", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 92 } else if (strcmp("dir", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 94 assertEqualString("dir", archive_entry_pathname(ae)); in DEFINE_TEST() 102 } else if (strcmp("file", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 104 assertEqualString("file", archive_entry_pathname(ae)); in DEFINE_TEST() 116 } else if (strcmp("hardlink", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 123 assertEqualString("hardlink", archive_entry_pathname(ae)); in DEFINE_TEST() 133 } else if (strcmp("symlink", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 143 } else if (strcmp("symlink2", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 151 } else if (strcmp("symlink3", archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_read_format_isorr_bz2.c | 79 if (strcmp(".", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 92 } else if (strcmp("dir", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 94 assertEqualString("dir", archive_entry_pathname(ae)); in DEFINE_TEST() 102 } else if (strcmp("file", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 104 assertEqualString("file", archive_entry_pathname(ae)); in DEFINE_TEST() 116 } else if (strcmp("hardlink", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 123 assertEqualString("hardlink", archive_entry_pathname(ae)); in DEFINE_TEST() 133 } else if (strcmp("symlink", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 143 } else if (strcmp("symlink2", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 151 } else if (strcmp("symlink3", archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_read_format_isozisofs_bz2.c | 78 if (strcmp(".", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 91 } else if (strcmp("dir", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 93 assertEqualString("dir", archive_entry_pathname(ae)); in DEFINE_TEST() 101 } else if (strcmp("file", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 104 assertEqualString("file", archive_entry_pathname(ae)); in DEFINE_TEST() 120 } else if (strcmp("hardlink", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 127 assertEqualString("hardlink", archive_entry_pathname(ae)); in DEFINE_TEST() 136 } else if (strcmp("symlink", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 146 } else if (strcmp("symlink2", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 154 } else if (strcmp("symlink3", archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_read_format_isorr_ce.c | 115 if (strcmp(".", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 128 } else if (strcmp("dir", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 130 assertEqualString("dir", archive_entry_pathname(ae)); in DEFINE_TEST() 138 } else if (strcmp(path1, archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 140 assertEqualString(path1, archive_entry_pathname(ae)); in DEFINE_TEST() 152 } else if (strcmp(path2, archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 154 assertEqualString(path2, archive_entry_pathname(ae)); in DEFINE_TEST() 166 } else if (strcmp(path3, archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 168 assertEqualString(path3, archive_entry_pathname(ae)); in DEFINE_TEST() 180 } else if (strcmp("sym1", archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_read_format_zip_filename.c | 59 archive_entry_pathname(ae)); in DEFINE_TEST() 68 archive_entry_pathname(ae)); in DEFINE_TEST() 124 archive_entry_pathname(ae)); in DEFINE_TEST() 130 archive_entry_pathname(ae)); in DEFINE_TEST() 143 archive_entry_pathname(ae)); in DEFINE_TEST() 149 archive_entry_pathname(ae)); in DEFINE_TEST() 203 archive_entry_pathname(ae)); in DEFINE_TEST() 213 archive_entry_pathname(ae)); in DEFINE_TEST() 223 archive_entry_pathname(ae)); in DEFINE_TEST() 272 archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_read_format_iso_xorriso.c | 90 if (strcmp(".", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 102 } else if (strcmp("./dir", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 109 } else if (strcmp("./dir2", archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 117 archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 129 archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 144 archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 153 archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 161 archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 173 archive_entry_pathname(ae)) == 0) { in DEFINE_TEST() 185 archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_read_format_cpio_filename.c | 58 archive_entry_pathname(ae)); 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() 167 archive_entry_pathname(ae)); in DEFINE_TEST() 173 assertEqualString("\xe8\xa1\xa8.txt", archive_entry_pathname(ae)); in DEFINE_TEST() 220 archive_entry_pathname(ae)); in DEFINE_TEST() 226 archive_entry_pathname(ae)); in DEFINE_TEST() 272 archive_entry_pathname(ae)); in DEFINE_TEST() 278 archive_entry_pathname(a in DEFINE_TEST() [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() 65 assertEqualString("test2", archive_entry_pathname(entry)); in test_linkify_tar() 79 assertEqualString("test3", archive_entry_pathname(entry)); in test_linkify_tar() 85 assertEqualString("test3", archive_entry_pathname(entry)); in test_linkify_tar() 114 assertEqualString("test1", archive_entry_pathname(entry)); in test_linkify_old_cpio() 119 assertEqualString("test1", archive_entry_pathname(entry)); in test_linkify_old_cpio() 149 assertEqualString("test1", archive_entry_pathname(entry)); in test_linkify_new_cpio() 171 assertEqualString("test2", archive_entry_pathname(entry)); in test_linkify_new_cpio() 187 assertEqualString("test3", archive_entry_pathname(entry)); in test_linkify_new_cpio() [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_read_format_gtar_filename.c | 58 archive_entry_pathname(ae)); in DEFINE_TEST() 63 assertEqualString("\xe8\xa1\xa8.txt", archive_entry_pathname(ae)); in DEFINE_TEST() 112 archive_entry_pathname(ae)); in DEFINE_TEST() 118 archive_entry_pathname(ae)); in DEFINE_TEST() 164 archive_entry_pathname(ae)); in DEFINE_TEST() 170 archive_entry_pathname(ae)); in DEFINE_TEST() 217 archive_entry_pathname(ae)); in DEFINE_TEST() 223 archive_entry_pathname(ae)); in DEFINE_TEST() 269 archive_entry_pathname(ae)); in DEFINE_TEST() 275 archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_read_format_zip_msdos.c | 48 assertEqualString("abc", archive_entry_pathname(ae)); in verify() 54 assertEqualString("def", archive_entry_pathname(ae)); in verify() 58 assertEqualString("def/", archive_entry_pathname(ae)); in verify() 63 assertEqualString("def/foo", archive_entry_pathname(ae)); in verify() 68 assertEqualString("ghi/", archive_entry_pathname(ae)); in verify() 75 assertEqualString("jkl/", archive_entry_pathname(ae)); in verify() 81 assertEqualString("mno/", archive_entry_pathname(ae)); in verify()
|
H A D | test_read_format_zip.c | 114 assertEqualString("dir/", archive_entry_pathname(ae)); in verify_basic() 127 assertEqualString("file1", archive_entry_pathname(ae)); in verify_basic() 147 assertEqualString("file2", archive_entry_pathname(ae)); in verify_basic() 216 assertEqualString("file1", archive_entry_pathname(ae)); in verify_info_zip_ux() 288 assertEqualString("hello.txt", archive_entry_pathname(ae)); in verify_extract_length_at_end() 357 assertEqualString("file", archive_entry_pathname(ae)); in test_symlink() 363 assertEqualString("symlink", archive_entry_pathname(ae)); in test_symlink() 398 assertEqualString("vimrc", archive_entry_pathname(ae)); in DEFINE_TEST() 418 assertEqualString("vimrc", archive_entry_pathname(ae)); in DEFINE_TEST() 439 assertEqualString("smartd.conf", archive_entry_pathname(a in DEFINE_TEST() [all...] |
H A D | test_write_format_7zip.c | 65 assertEqualString("empty", archive_entry_pathname(ae)); in test_basic() 80 assertEqualString("empty2", archive_entry_pathname(ae)); in test_basic() 95 assertEqualString("file", archive_entry_pathname(ae)); in test_basic() 113 assertEqualString("file2", archive_entry_pathname(ae)); in test_basic() 131 assertEqualString("symbolic", archive_entry_pathname(ae)); in test_basic() 207 assertEqualString("file", archive_entry_pathname(ae)); in test_basic() 223 assertEqualString("file2", archive_entry_pathname(ae)); in test_basic() 238 assertEqualString("symbolic", archive_entry_pathname(ae)); in test_basic() 251 assertEqualString("empty", archive_entry_pathname(ae)); in test_basic() 263 assertEqualString("empty2", archive_entry_pathname(a in test_basic() [all...] |
H A D | test_read_format_ustar_filename.c | 57 archive_entry_pathname(ae)); in test_read_format_ustar_filename_eucJP_UTF8() 64 assertEqualString("\xe8\xa1\xa8.txt", archive_entry_pathname(ae)); in test_read_format_ustar_filename_eucJP_UTF8() 112 archive_entry_pathname(ae)); in test_read_format_ustar_filename_CP866_KOI8R() 120 archive_entry_pathname(ae)); in test_read_format_ustar_filename_CP866_KOI8R() 166 archive_entry_pathname(ae)); in test_read_format_ustar_filename_CP866_UTF8() 174 archive_entry_pathname(ae)); in test_read_format_ustar_filename_CP866_UTF8() 222 archive_entry_pathname(ae)); in test_read_format_ustar_filename_KOI8R_CP866() 230 archive_entry_pathname(ae)); in test_read_format_ustar_filename_KOI8R_CP866() 277 archive_entry_pathname(ae)); in test_read_format_ustar_filename_KOI8R_UTF8() 285 archive_entry_pathname(a in test_read_format_ustar_filename_KOI8R_UTF8() [all...] |
H A D | test_read_format_lha_filename_utf16.c | 92 assertEqualString(UMLAUT_DIRNAME UMLAUT_FNAME, archive_entry_pathname(ae)); in test_read_format_lha_filename_UTF16_UTF8() 97 assertEqualString(UMLAUT_DIRNAME, archive_entry_pathname(ae)); in test_read_format_lha_filename_UTF16_UTF8() 103 archive_entry_pathname(ae)); in test_read_format_lha_filename_UTF16_UTF8() 109 archive_entry_pathname(ae)); in test_read_format_lha_filename_UTF16_UTF8() 114 assertEqualString(KATAKANA_DIRNAME, archive_entry_pathname(ae)); in test_read_format_lha_filename_UTF16_UTF8() 119 assertEqualString(UMLAUT_FNAME, archive_entry_pathname(ae)); in test_read_format_lha_filename_UTF16_UTF8()
|
H A D | test_read_format_tar_filename.c | 80 archive_entry_pathname(ae)); in test_read_format_tar_filename_KOI8R_CP866() 88 archive_entry_pathname(ae)); in test_read_format_tar_filename_KOI8R_CP866() 127 archive_entry_pathname(ae)); in test_read_format_tar_filename_KOI8R_CP866() 138 archive_entry_pathname(ae)); in test_read_format_tar_filename_KOI8R_CP866() 187 archive_entry_pathname(ae)); in test_read_format_tar_filename_KOI8R_UTF8() 195 archive_entry_pathname(ae)); in test_read_format_tar_filename_KOI8R_UTF8() 239 archive_entry_pathname(ae)); in test_read_format_tar_filename_KOI8R_UTF8() 251 archive_entry_pathname(ae)); in test_read_format_tar_filename_KOI8R_UTF8() 309 archive_entry_pathname(ae)); in test_read_format_tar_filename_KOI8R_CP1251() 317 archive_entry_pathname(a in test_read_format_tar_filename_KOI8R_CP1251() [all...] |
H A D | test_read_format_cab_filename.c | 58 archive_entry_pathname(ae)); in test_read_format_cab_filename_CP932_eucJP() 67 archive_entry_pathname(ae)); in test_read_format_cab_filename_CP932_eucJP() 118 archive_entry_pathname(ae)); in test_read_format_cab_filename_CP932_UTF8() 125 archive_entry_pathname(ae)); in test_read_format_cab_filename_CP932_UTF8() 138 archive_entry_pathname(ae)); in test_read_format_cab_filename_CP932_UTF8() 144 archive_entry_pathname(ae)); in test_read_format_cab_filename_CP932_UTF8()
|
H A D | test_compat_mac.c | 60 assertEqualString(TESTPATH, archive_entry_pathname(ae)); in test_compat_mac_1() 73 assertEqualString(TESTPATH "dir/", archive_entry_pathname(ae)); in test_compat_mac_1() 86 assertEqualString(TESTPATH "file", archive_entry_pathname(ae)); in test_compat_mac_1() 99 assertEqualString("dir/", archive_entry_pathname(ae)); in test_compat_mac_1() 113 assertEqualString("file", archive_entry_pathname(ae)); in test_compat_mac_1() 157 assertEqualString("./", archive_entry_pathname(ae)); in test_compat_mac_2() 170 assertEqualString("./mydir/", archive_entry_pathname(ae)); in test_compat_mac_2() 184 assertEqualString("./myfile", archive_entry_pathname(ae)); in test_compat_mac_2()
|
H A D | test_archive_read_multiple_data_objects.c | 66 assertEqualString("test.txt", archive_entry_pathname(ae)); in test_splitted_file() 77 assertEqualString("testlink", archive_entry_pathname(ae)); in test_splitted_file() 88 assertEqualString("testdir/test.txt", archive_entry_pathname(ae)); in test_splitted_file() 99 assertEqualString("testdir", archive_entry_pathname(ae)); in test_splitted_file() 108 assertEqualString("testemptydir", archive_entry_pathname(ae)); in test_splitted_file() 149 archive_entry_pathname(ae)); in test_large_splitted_file() 303 assertEqualString("test.txt", archive_entry_pathname(ae)); in test_customized_multiple_data_objects() 314 assertEqualString("testlink", archive_entry_pathname(ae)); in test_customized_multiple_data_objects() 325 assertEqualString("testdir/test.txt", archive_entry_pathname(ae)); in test_customized_multiple_data_objects() 336 assertEqualString("testdir", archive_entry_pathname(ae)); in test_customized_multiple_data_objects() [all …]
|