/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_write_format_cpio_newc.c | 122 assertEqualMem(e + 0, "070701", 6); /* Magic */ in DEFINE_TEST() 124 assertEqualMem(e + 14, "000081b4", 8); /* Mode */ in DEFINE_TEST() 125 assertEqualMem(e + 22, "00000050", 8); /* uid */ in DEFINE_TEST() 126 assertEqualMem(e + 30, "0000005a", 8); /* gid */ in DEFINE_TEST() 127 assertEqualMem(e + 38, "00000001", 8); /* nlink */ in DEFINE_TEST() 128 assertEqualMem(e + 46, "00000001", 8); /* mtime */ in DEFINE_TEST() 129 assertEqualMem(e + 54, "0000000a", 8); /* File size */ in DEFINE_TEST() 130 assertEqualMem(e + 62, "00000000", 8); /* devmajor */ in DEFINE_TEST() 131 assertEqualMem(e + 70, "0000000c", 8); /* devminor */ in DEFINE_TEST() 132 assertEqualMem( in DEFINE_TEST() [all...] |
H A D | test_write_format_cpio_odc.c | 148 assertEqualMem(e + 0, "070707", 6); /* Magic */ in DEFINE_TEST() 149 assertEqualMem(e + 6, "000014", 6); /* dev */ in DEFINE_TEST() 151 assertEqualMem(e + 18, "100664", 6); /* Mode */ in DEFINE_TEST() 152 assertEqualMem(e + 24, "000120", 6); /* uid */ in DEFINE_TEST() 153 assertEqualMem(e + 30, "000132", 6); /* gid */ in DEFINE_TEST() 154 assertEqualMem(e + 36, "000002", 6); /* nlink */ in DEFINE_TEST() 155 assertEqualMem(e + 42, "000000", 6); /* rdev */ in DEFINE_TEST() 156 assertEqualMem(e + 48, "00000000001", 11); /* mtime */ in DEFINE_TEST() 157 assertEqualMem(e + 59, "000005", 6); /* Name size */ in DEFINE_TEST() 158 assertEqualMem( in DEFINE_TEST() [all...] |
H A D | test_write_format_iso9660_boot.c | 138 assertEqualMem(buff+i, nullb, 2048); in _test_write_format_iso9660_boot() 143 assertEqualMem(buff+2048*16, primary_id, 8); in _test_write_format_iso9660_boot() 144 assertEqualMem(buff+2048*16+0x28, in _test_write_format_iso9660_boot() 146 assertEqualMem(buff+2048*16+0x50, volumesize, 8); in _test_write_format_iso9660_boot() 150 assertEqualMem(buff+2048*17, boot_id, sizeof(boot_id)); in _test_write_format_iso9660_boot() 168 assertEqualMem(buff+2048*18, supplementary_id, 8); in _test_write_format_iso9660_boot() 169 assertEqualMem(buff+2048*18+0x28, volumeidu16, 32); in _test_write_format_iso9660_boot() 170 assertEqualMem(buff+2048*18+0x50, volumesize, 8); in _test_write_format_iso9660_boot() 174 assertEqualMem(buff+2048*16+0x32d, buff+2048*18+0x32d, 0x44); in _test_write_format_iso9660_boot() 179 assertEqualMem(buff+2048*19, terminator_id, 8); in _test_write_format_iso9660_boot() [all …]
|
H A D | test_write_format_iso9660_zisofs.c | 202 assertEqualMem(buff+2048*16, primary_id, 8); in test_write_format_iso9660_zisofs_1() 203 assertEqualMem(buff+2048*16+0x28, in test_write_format_iso9660_zisofs_1() 205 assertEqualMem(buff+2048*16+0x50, volumesize, 8); in test_write_format_iso9660_zisofs_1() 210 assertEqualMem(buff+2048*17, supplementary_id, 8); in test_write_format_iso9660_zisofs_1() 211 assertEqualMem(buff+2048*17+0x28, volumeidu16, 32); in test_write_format_iso9660_zisofs_1() 212 assertEqualMem(buff+2048*17+0x50, volumesize, 8); in test_write_format_iso9660_zisofs_1() 216 assertEqualMem(buff+2048*16+0x32d, buff+2048*17+0x32d, 0x44); in test_write_format_iso9660_zisofs_1() 221 assertEqualMem(buff+2048*18, terminator_id, 8); in test_write_format_iso9660_zisofs_1() 230 assertEqualMem(buff+2048*31, zisofs_magic, 8); in test_write_format_iso9660_zisofs_1() 233 assertEqualMem(buff+2048*32, nullb, 8); in test_write_format_iso9660_zisofs_1() [all …]
|
H A D | test_zip_filename_encoding.c | 68 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6); in DEFINE_TEST() 93 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6); in DEFINE_TEST() 117 assertEqualMem(buff + 30, "abcABC", 6); in DEFINE_TEST() 160 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6); in DEFINE_TEST() 184 assertEqualMem(buff + 30, "\xD0\xD2\xC9", 3); in DEFINE_TEST() 214 assertEqualMem(buff + 30, "abcABC", 6); in DEFINE_TEST() 255 assertEqualMem(buff + 30, "\xEF\xF0\xE8", 3); in DEFINE_TEST() 304 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6); in DEFINE_TEST() 329 assertEqualMem(buff + 30, "\xAF\xE0\xA8", 3); in DEFINE_TEST() 372 assertEqualMem(buff + 30, "\xE8\xA1\xA8.txt", 7); in DEFINE_TEST() [all …]
|
H A D | test_write_format_zip_entry_size_unset.c | 117 assertEqualMem(end_of_central_dir, "PK\x5\x6", 4); in verify_contents() 136 assertEqualMem(central_directory, "PK\x1\x2", 4); in verify_contents() 166 assertEqualMem(central_directory + 46, file_name, strlen(file_name)); in verify_contents() 172 assertEqualMem(local_file_header, "PK\x3\x4", 4); in verify_contents() 192 assertEqualMem(local_file_header + 30, file_name, strlen(file_name)); in verify_contents() 197 assertEqualMem(data, file_data1, sizeof(file_data1)); in verify_contents() 198 assertEqualMem(data + sizeof(file_data1), file_data2, sizeof(file_data2)); in verify_contents() 203 assertEqualMem(data_descriptor, "PK\x7\x8", 4); in verify_contents() 218 assertEqualMem(central_directory_folder_entry, "PK\x1\x2", 4); in verify_contents() 248 assertEqualMem(central_directory_folder_entry + 46, folder_name, strlen(folder_name)); in verify_contents() [all …]
|
H A D | test_write_format_iso9660_empty.c | 145 assertEqualMem(buff+2048*16, primary_id, 8); in DEFINE_TEST() 146 assertEqualMem(buff+2048*16+0x28, in DEFINE_TEST() 148 assertEqualMem(buff+2048*16+0x50, volumesize, 8); in DEFINE_TEST() 153 assertEqualMem(buff+2048*17, supplementary_id, 8); in DEFINE_TEST() 154 assertEqualMem(buff+2048*17+0x28, volumeidu16, 32); in DEFINE_TEST() 155 assertEqualMem(buff+2048*17+0x50, volumesize, 8); in DEFINE_TEST() 159 assertEqualMem(buff+2048*16+0x32d, buff+2048*17+0x32d, 0x44); in DEFINE_TEST() 164 assertEqualMem(buff+2048*18, terminator_id, 8); in DEFINE_TEST()
|
H A D | test_archive_digest.c | 47 assertEqualMem(md, actualmd, sizeof(md)); in DEFINE_TEST() 64 assertEqualMem(md, actualmd, sizeof(md)); in DEFINE_TEST() 81 assertEqualMem(md, actualmd, sizeof(md)); in DEFINE_TEST() 100 assertEqualMem(md, actualmd, sizeof(md)); in DEFINE_TEST() 121 assertEqualMem(md, actualmd, sizeof(md)); in DEFINE_TEST() 144 assertEqualMem(md, actualmd, sizeof(md)); in DEFINE_TEST()
|
H A D | test_gnutar_filename_encoding.c | 66 assertEqualMem(buff, "\xAF\xE0\xA8", 3); in DEFINE_TEST() 107 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6); in DEFINE_TEST() 148 assertEqualMem(buff, "\xAF\xE0\xA8", 3); in DEFINE_TEST() 190 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6); in DEFINE_TEST() 228 assertEqualMem(buff, "\xEF\xF0\xE8", 3); in DEFINE_TEST() 268 assertEqualMem(buff, "\xAF\xE0\xA8", 3); in DEFINE_TEST() 308 assertEqualMem(buff, "\xE8\xA1\xA8.txt", 7); in DEFINE_TEST() 348 assertEqualMem(buff, "\x95\x5C.txt", 6); in DEFINE_TEST() 389 assertEqualMem(buff, "\xE8\xA1\xA8.txt", 7); in DEFINE_TEST() 431 assertEqualMem(buff, "\xE8\xA1\xA8.txt", 7); in DEFINE_TEST() [all …]
|
H A D | test_ustar_filename_encoding.c | 67 assertEqualMem(buff, "\xAF\xE0\xA8", 3); in DEFINE_TEST() 108 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6); in DEFINE_TEST() 149 assertEqualMem(buff, "\xAF\xE0\xA8", 3); in DEFINE_TEST() 191 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6); in DEFINE_TEST() 229 assertEqualMem(buff, "\xEF\xF0\xE8", 3); in DEFINE_TEST() 269 assertEqualMem(buff, "\xAF\xE0\xA8", 3); in DEFINE_TEST() 309 assertEqualMem(buff, "\xE8\xA1\xA8.txt", 7); in DEFINE_TEST() 349 assertEqualMem(buff, "\x95\x5C.txt", 6); in DEFINE_TEST() 390 assertEqualMem(buff, "\xE8\xA1\xA8.txt", 7); in DEFINE_TEST() 432 assertEqualMem(buff, "\xE8\xA1\xA8.txt", 7); in DEFINE_TEST() [all …]
|
H A D | test_read_disk_directory_traversals.c | 126 assertEqualMem(p, "0123456789", 10); in test_basic() 140 assertEqualMem(p, "hello world", 11); in test_basic() 158 assertEqualMem(p, "0123456789", 10); in test_basic() 176 assertEqualMem(p, "0123456789", 10); in test_basic() 190 assertEqualMem(p, "0123456789", 10); in test_basic() 216 assertEqualMem(p, "xyz", 3); in test_basic() 254 assertEqualMem(p, "0123456789", 10); in test_basic() 268 assertEqualMem(p, "hello world", 11); in test_basic() 286 assertEqualMem(p, "0123456789", 10); in test_basic() 304 assertEqualMem( in test_basic() [all...] |
H A D | test_write_format_zip_compression_store.c | 153 assertEqualMem(p, "PK\005\006", 4); in verify_uncompressed_contents() 173 assertEqualMem(p, "PK\001\002", 4); /* Signature */ in verify_uncompressed_contents() 192 assertEqualMem(p + 46, file_name, strlen(file_name)); /* Pathname */ in verify_uncompressed_contents() 208 assertEqualMem(q, "PK\003\004", 4); /* Signature */ in verify_uncompressed_contents() 219 assertEqualMem(q + 30, file_name, strlen(file_name)); /* Pathname */ in verify_uncompressed_contents() 250 assertEqualMem(q, file_data1, sizeof(file_data1)); in verify_uncompressed_contents() 251 assertEqualMem(q + sizeof(file_data1), file_data2, sizeof(file_data2)); in verify_uncompressed_contents() 255 assertEqualMem(q, "PK\007\010", 4); /* Signature */ in verify_uncompressed_contents() 262 assertEqualMem(p, "PK\001\002", 4); /* Signature */ in verify_uncompressed_contents() 280 assertEqualMem( in verify_uncompressed_contents() [all...] |
H A D | test_write_format_zip_large.c | 437 assertEqualMem(eocd, "PK\005\006\0\0\0\0", 8); in DEFINE_TEST() 438 assertEqualMem(eocd + 8, "\010\0\010\0", 4); /* 8 entries total */ in DEFINE_TEST() 441 assertEqualMem(eocd + 16, "\xff\xff\xff\xff", 4); in DEFINE_TEST() 442 assertEqualMem(eocd + 20, "\0\0", 2); /* No Zip comment */ in DEFINE_TEST() 446 assertEqualMem(zip64_locator, "PK\006\007\0\0\0\0", 8); in DEFINE_TEST() 448 assertEqualMem(zip64_locator + 16, "\001\0\0\0", 4); in DEFINE_TEST() 452 assertEqualMem(zip64_eocd, "PK\006\006", 4); in DEFINE_TEST() 454 assertEqualMem(zip64_eocd + 12, "\055\0", 2); // Made by version: 45 in DEFINE_TEST() 455 assertEqualMem(zip64_eocd + 14, "\055\0", 2); // Requires version: 45 in DEFINE_TEST() 456 assertEqualMem(zip64_eocd + 16, "\0\0\0\0", 4); // This disk in DEFINE_TEST() [all …]
|
H A D | test_write_format_zip_file_zip64.c | 135 assertEqualMem(p, "PK\005\006", 4); in DEFINE_TEST() 153 assertEqualMem(p, "PK\001\002", 4); /* Signature */ in DEFINE_TEST() 171 assertEqualMem(p + 46, file_name, strlen(file_name)); /* Pathname */ in DEFINE_TEST() 205 assertEqualMem(p, "PK\006\006", 4); /* Zip64 eocd */ in DEFINE_TEST() 217 assertEqualMem(p, "PK\006\007", 4); /* Zip64 eocd locator */ in DEFINE_TEST() 228 assertEqualMem(p, "PK\003\004", 4); /* Signature */ in DEFINE_TEST() 239 assertEqualMem(p + 30, file_name, strlen(file_name)); /* Pathname */ in DEFINE_TEST() 279 assertEqualMem(p, "PK\007\010", 4); in DEFINE_TEST()
|
H A D | test_write_format_tar_sparse.c | 137 assertEqualMem(buff2, buff3, 1024); in test_1() 144 assertEqualMem(buff2, buff3, 1024); in test_1() 151 assertEqualMem(buff2, buff3, 1024); in test_1() 158 assertEqualMem(buff2, buff3, 1024); in test_1() 266 assertEqualMem(buff2, buff3, 1024); in test_2() 273 assertEqualMem(buff2, buff3, 1024); in test_2() 280 assertEqualMem(buff2, buff3, 1024); in test_2() 287 assertEqualMem(buff2, buff3, 1024); in test_2()
|
/freebsd/contrib/libarchive/cpio/test/ |
H A D | test_option_c.c | 102 assertEqualMem(e + 0, "070707", 6); /* Magic */ in DEFINE_TEST() 109 assertEqualMem(e + 18, "100666", 6); /* Mode */ in DEFINE_TEST() 111 assertEqualMem(e + 18, "100644", 6); /* Mode */ in DEFINE_TEST() 118 assertEqualMem(e + 36, "000001", 6); /* nlink */ in DEFINE_TEST() 121 assertEqualMem(e + 42, "000000", 6); /* rdev */ in DEFINE_TEST() 125 assertEqualMem(e + 59, "000005", 6); /* Name size */ in DEFINE_TEST() 126 assertEqualMem(e + 65, "00000000012", 11); /* File size */ in DEFINE_TEST() 127 assertEqualMem(e + 76, "file\0", 5); /* Name contents */ in DEFINE_TEST() 128 assertEqualMem(e + 81, "1234567890", 10); /* File contents */ in DEFINE_TEST() 134 assertEqualMem(e + 0, "070707", 6); /* Magic */ in DEFINE_TEST() [all …]
|
H A D | test_format_newc.c | 176 assertEqualMem(e + 0, "070701", 6); /* Magic */ in DEFINE_TEST() 190 assertEqualMem(e + 38, "00000003", 8); /* nlink */ in DEFINE_TEST() 208 assertEqualMem(e + 94, "00000006", 8); /* Name size */ in DEFINE_TEST() 212 assertEqualMem(e + 110, "file1\0", 6); /* Name contents */ in DEFINE_TEST() 220 assertEqualMem(e + 0, "070701", 6); /* Magic */ in DEFINE_TEST() 230 assertEqualMem(e + 38, "00000001", 8); /* nlink */ in DEFINE_TEST() 235 assertEqualMem(e + 54, "00000005", 8); /* File size */ in DEFINE_TEST() 242 assertEqualMem(e + 94, "00000008", 8); /* Name size */ in DEFINE_TEST() 246 assertEqualMem(e + 110, "symlink\0\0\0", 10); /* Name contents */ in DEFINE_TEST() 247 assertEqualMem(e + 110 + ns, "file1\0\0\0", 8); /* symlink target */ in DEFINE_TEST() [all …]
|
H A D | test_option_u.c | 32 assertEqualMem(p, "a", 1); in DEFINE_TEST() 52 assertEqualMem(p, "a", 1); in DEFINE_TEST() 63 assertEqualMem(p, "b", 1); in DEFINE_TEST()
|
/freebsd/contrib/libarchive/tar/test/ |
H A D | test_option_r.c | 38 assertEqualMem(p0 + 0, "f1", 3); in DEFINE_TEST() 39 assertEqualMem(p0 + 512, "abc", 3); in DEFINE_TEST() 40 assertEqualMem(p0 + 1024, "\0\0\0\0\0\0\0\0", 8); in DEFINE_TEST() 41 assertEqualMem(p0 + 1536, "\0\0\0\0\0\0\0\0", 8); in DEFINE_TEST() 66 assertEqualMem(p0, p1, 1024); in DEFINE_TEST() 68 assertEqualMem(p1 + 1024, "f1", 3); in DEFINE_TEST() 69 assertEqualMem(p1 + 1536, buff, buff_size); in DEFINE_TEST() 71 assertEqualMem(p1 + 1536 + buff_size_rounded, "\0\0\0\0\0\0\0\0", 8); in DEFINE_TEST() 72 assertEqualMem(p1 + 2048 + buff_size_rounded, "\0\0\0\0\0\0\0\0", 8); in DEFINE_TEST() 91 assertEqualMem(p0, p1, 1536 + buff_size_rounded); in DEFINE_TEST() [all …]
|
H A D | test_option_a.c | 26 assertEqualMem(p, "\x1f\x9d", 2); in DEFINE_TEST() 37 assertEqualMem(p, "\x1f\x9d", 2); in DEFINE_TEST() 48 assertEqualMem(p, "begin 644 -\n", 12); in DEFINE_TEST() 59 assertEqualMem(p, "\x50\x4b\x03\x04", 4); in DEFINE_TEST() 71 assertEqualMem(p, "\x1f\x9d", 2); in DEFINE_TEST() 84 assertEqualMem(p, "begin 644 -\n", 12); in DEFINE_TEST() 96 assertEqualMem(p, "\x1f\x9d", 2); in DEFINE_TEST()
|
H A D | test_option_group.c | 35 assertEqualMem(data + 116, "000021 \0", 8); in DEFINE_TEST() 37 assertEqualMem(data + 297, "\0", 1); in DEFINE_TEST() 49 assertEqualMem(data + 116, reference + 116, 8); in DEFINE_TEST() 50 assertEqualMem(data + 297, "foofoofoo\0", 10); in DEFINE_TEST() 61 assertEqualMem(data + 116, "000021 \0", 8); in DEFINE_TEST() 62 assertEqualMem(data + 297, "foofoofoo\0", 10); in DEFINE_TEST()
|
H A D | test_option_gid_gname.c | 35 assertEqualMem(data + 116, "000021 \0", 8); in DEFINE_TEST() 36 assertEqualMem(data + 297, "foofoofoo\0", 10); in DEFINE_TEST() 48 assertEqualMem(data + 116, reference + 116, 8); in DEFINE_TEST() 49 assertEqualMem(data + 297, "foofoofoo\0", 10); in DEFINE_TEST() 61 assertEqualMem(data + 116, "000021 \0", 8); in DEFINE_TEST() 63 assertEqualMem(data + 297, "\0", 1); in DEFINE_TEST()
|
H A D | test_option_owner.c | 35 assertEqualMem(data + 108, "177143 \0", 8); in DEFINE_TEST() 37 assertEqualMem(data + 265, "\0", 1); in DEFINE_TEST() 49 assertEqualMem(data + 108, reference + 108, 8); in DEFINE_TEST() 50 assertEqualMem(data + 265, "foofoofoo\0", 10); in DEFINE_TEST() 61 assertEqualMem(data + 108, "177143 \0", 8); in DEFINE_TEST() 62 assertEqualMem(data + 265, "foofoofoo\0", 10); in DEFINE_TEST()
|
H A D | test_option_uid_uname.c | 35 assertEqualMem(data + 108, "177143 \0", 8); in DEFINE_TEST() 36 assertEqualMem(data + 265, "foofoofoo\0", 10); in DEFINE_TEST() 47 assertEqualMem(data + 108, "177143 \0", 8); in DEFINE_TEST() 49 assertEqualMem(data + 265, "\0", 1); in DEFINE_TEST() 61 assertEqualMem(data + 108, reference + 108, 8); in DEFINE_TEST() 62 assertEqualMem(data + 265, "foofoofoo\0", 10); in DEFINE_TEST()
|
H A D | test_option_C_mtree.c | 61 assertEqualMem(p0 + 0, "./foo", 5); in DEFINE_TEST() 62 assertEqualMem(p0 + 512, "abc", 3); in DEFINE_TEST() 63 assertEqualMem(p0 + 1024, "\0\0\0\0\0\0\0\0", 8); in DEFINE_TEST() 64 assertEqualMem(p0 + 1536, "\0\0\0\0\0\0\0\0", 8); in DEFINE_TEST()
|