Home
last modified time | relevance | path

Searched refs:assertA (Results 1 – 25 of 56) sorted by relevance

123

/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_read_format_rar5.c42 assertA(0 == archive_read_support_filter_all(a)); \
43 assertA(0 == archive_read_support_format_all(a)); \
44 assertA(0 == archive_read_open_filename(a, reffile, 10240))
55 assertA(0 == archive_read_support_filter_all(a)); \
56 assertA(0 == archive_read_support_format_all(a)); \
57 assertA(0 == archive_read_open_filenames(a, reffile, 10240))
127 assertA(0 == archive_read_support_filter_all(a)); in DEFINE_TEST()
128 assertA(0 == archive_read_set_format(a, ARCHIVE_FORMAT_RAR_V5)); in DEFINE_TEST()
129 assertA(0 == archive_read_open_filename(a, reffile, 10240)); in DEFINE_TEST()
130 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
[all …]
H A Dtest_archive_read_multiple_data_objects.c60 assertA(0 == archive_read_support_filter_all(a)); in test_splitted_file()
61 assertA(0 == archive_read_support_format_all(a)); in test_splitted_file()
62 assertA(0 == archive_read_open_filenames(a, reffiles, 10240)); in test_splitted_file()
65 assertA(0 == archive_read_next_header(a, &ae)); in test_splitted_file()
67 assertA((int)archive_entry_mtime(ae)); in test_splitted_file()
68 assertA((int)archive_entry_ctime(ae)); in test_splitted_file()
69 assertA((int)archive_entry_atime(ae)); in test_splitted_file()
72 assertA(size == archive_read_data(a, buff, size)); in test_splitted_file()
76 assertA(0 == archive_read_next_header(a, &ae)); in test_splitted_file()
78 assertA((int)archive_entry_mtime(ae)); in test_splitted_file()
[all …]
H A Dtest_read_format_rar.c39 assertA(0 == archive_read_support_filter_all(a)); in DEFINE_TEST()
40 assertA(0 == archive_read_set_format(a, ARCHIVE_FORMAT_RAR)); in DEFINE_TEST()
41 assertA(0 == archive_read_open_filename(a, reffile, 10240)); in DEFINE_TEST()
42 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
58 assertA(0 == archive_read_support_filter_all(a)); in DEFINE_TEST()
59 assertA(0 == archive_read_support_format_all(a)); in DEFINE_TEST()
60 assertA(0 == archive_read_open_filename(a, reffile, 10240)); in DEFINE_TEST()
63 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
65 assertA((int)archive_entry_mtime(ae)); in DEFINE_TEST()
66 assertA((in in DEFINE_TEST()
[all...]
H A Dtest_read_set_format.c40 assertA(0 == archive_read_set_format(a, ARCHIVE_FORMAT_RAR)); in DEFINE_TEST()
41 assertA(0 == archive_read_append_filter(a, ARCHIVE_FILTER_NONE)); in DEFINE_TEST()
42 assertA(0 == archive_read_open_filename(a, reffile, 10240)); in DEFINE_TEST()
45 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
47 assertA((int)archive_entry_mtime(ae)); in DEFINE_TEST()
48 assertA((int)archive_entry_ctime(ae)); in DEFINE_TEST()
49 assertA((int)archive_entry_atime(ae)); in DEFINE_TEST()
52 assertA(size == archive_read_data(a, buff, size)); in DEFINE_TEST()
56 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
58 assertA((int)archive_entry_mtime(ae)); in DEFINE_TEST()
[all …]
H A Dtest_read_extract.c46 assertA(0 == archive_write_set_format_ustar(a)); in DEFINE_TEST()
47 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
48 assertA(0 == archive_write_open_memory(a, buff, BUFF_SIZE, &used)); in DEFINE_TEST()
54 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
63 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
64 assertA(FILE_BUFF_SIZE == archive_write_data(a, file_buff, FILE_BUFF_SIZE)); in DEFINE_TEST()
71 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
78 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
85 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
92 assertA( in DEFINE_TEST()
[all...]
H A Dtest_acl_pax.c226 assertA(0 == archive_write_set_format_pax(a)); in DEFINE_TEST()
227 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
228 assertA(0 == archive_write_set_bytes_per_block(a, 1)); in DEFINE_TEST()
229 assertA(0 == archive_write_set_bytes_in_last_block(a, 1)); in DEFINE_TEST()
230 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
241 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
245 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
249 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
256 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
281 assertA( in DEFINE_TEST()
[all...]
H A Dtest_read_large.c49 assertA(0 == archive_write_set_format_ustar(a)); in DEFINE_TEST()
50 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
55 assertA(0 == archive_write_header(a, entry)); in DEFINE_TEST()
57 assertA((int)sizeof(testdata) == archive_write_data(a, testdata, sizeof(testdata))); in DEFINE_TEST()
61 assertA(0 == archive_read_support_format_all(a)); in DEFINE_TEST()
62 assertA(0 == archive_read_support_filter_all(a)); in DEFINE_TEST()
63 assertA(0 == archive_read_open_memory(a, buff, sizeof(buff))); in DEFINE_TEST()
64 assertA(0 == archive_read_next_header(a, &entry)); in DEFINE_TEST()
72 assertA(0 == archive_read_support_format_all(a)); in DEFINE_TEST()
73 assertA( in DEFINE_TEST()
[all...]
H A Dtest_read_data_large.c55 assertA(0 == archive_write_set_format_ustar(a)); in DEFINE_TEST()
56 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
57 assertA(0 == archive_write_open_memory(a, buff1, sizeof(buff1), &used)); in DEFINE_TEST()
67 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
69 assertA((int)sizeof(buff2) == archive_write_data(a, buff2, sizeof(buff2))); in DEFINE_TEST()
77 assertA(0 == archive_read_support_format_all(a)); in DEFINE_TEST()
78 assertA(0 == archive_read_support_filter_all(a)); in DEFINE_TEST()
79 assertA(0 == archive_read_open_memory(a, buff1, sizeof(buff1))); in DEFINE_TEST()
80 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
90 assertA( in DEFINE_TEST()
[all...]
H A Dtest_write_format_tar_empty.c40 assertA(0 == archive_write_set_format_ustar(a)); in DEFINE_TEST()
41 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
42 assertA(0 == archive_write_set_bytes_per_block(a, 512)); in DEFINE_TEST()
43 assertA(0 == archive_write_set_bytes_in_last_block(a, 512)); in DEFINE_TEST()
44 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
58 assertA(0 == archive_write_set_format_pax(a)); in DEFINE_TEST()
59 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
60 assertA(0 == archive_write_set_bytes_per_block(a, 512)); in DEFINE_TEST()
61 assertA(0 == archive_write_set_bytes_in_last_block(a, 512)); in DEFINE_TEST()
62 assertA( in DEFINE_TEST()
[all...]
H A Dtest_read_position.c44 assertA(0 == archive_read_next_header(a, &ae)); in verify_read_positions()
51 assertA(0 == archive_read_data_skip(a)); in verify_read_positions()
60 assertA(1 == archive_read_next_header(a, &ae)); in verify_read_positions()
79 assertA(0 == archive_write_set_format_pax_restricted(a)); in DEFINE_TEST()
80 assertA(0 == archive_write_set_bytes_per_block(a, 512)); in DEFINE_TEST()
81 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &write_pos)); in DEFINE_TEST()
89 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
91 assertA(data_sizes[i] in DEFINE_TEST()
99 assertA(0 == archive_read_support_format_tar(a)); in DEFINE_TEST()
100 assertA( in DEFINE_TEST()
[all...]
H A Dtest_read_format_ar.c39 assertA(0 == archive_read_support_filter_all(a)); in DEFINE_TEST()
40 assertA(0 == archive_read_support_format_all(a)); in DEFINE_TEST()
41 assertA(0 == archive_read_open_filename(a, reffile, 7)); in DEFINE_TEST()
44 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
54 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
60 assertA(8 == archive_read_data(a, buff, 10)); in DEFINE_TEST()
66 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
72 assertA(4 == archive_read_data(a, buff, 10)); in DEFINE_TEST()
78 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
84 assertA( in DEFINE_TEST()
[all...]
H A Dtest_tar_filenames.c63 assertA(0 == archive_write_set_format_pax_restricted(a)); in test_filename()
64 assertA(0 == archive_write_add_filter_none(a)); in test_filename()
65 assertA(0 == archive_write_set_bytes_per_block(a,0)); in test_filename()
66 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in test_filename()
75 assertA(0 == archive_write_header(a, ae)); in test_filename()
85 assertA(0 == archive_write_header(a, ae)); in test_filename()
98 assertA(0 == archive_write_header(a, ae)); in test_filename()
109 assertA(0 == archive_read_support_format_all(a)); in test_filename()
110 assertA(0 == archive_read_support_filter_all(a)); in test_filename()
111 assertA( in test_filename()
[all...]
H A Dtest_write_format_cpio.c43 assertA(0 == (*set_format)(a)); in test_format()
44 assertA(0 == archive_write_add_filter_none(a)); in test_format()
45 assertA(0 == archive_write_open_memory(a, buff, buffsize, &used)); in test_format()
63 assertA(0 == archive_write_header(a, ae)); in test_format()
65 assertA(8 == archive_write_data(a, "12345678", 9)); in test_format()
83 assertA(0 == archive_write_header(a, ae)); in test_format()
85 assertA(4 == archive_write_data(a, "1234", 5)); in test_format()
138 assertA(0 == archive_write_header(a, ae)); in test_format()
151 assertA(0 == archive_write_header(a, ae)); in test_format()
181 assertA( in test_format()
[all...]
H A Dtest_ustar_filenames.c61 assertA(0 == archive_write_set_format_ustar(a)); in test_filename()
62 assertA(0 == archive_write_add_filter_none(a)); in test_filename()
63 assertA(0 == archive_write_set_bytes_per_block(a,0)); in test_filename()
64 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in test_filename()
119 assertA(0 == archive_read_support_format_all(a)); in test_filename()
120 assertA(0 == archive_read_support_filter_all(a)); in test_filename()
121 assertA(0 == archive_read_open_memory(a, buff, used)); in test_filename()
125 assertA(0 == archive_read_next_header(a, &ae)); in test_filename()
139 assertA(0 == archive_read_next_header(a, &ae)); in test_filename()
146 assertA( in test_filename()
[all...]
H A Dtest_read_format_empty.c34 assertA(0 == archive_read_support_filter_all(a)); in DEFINE_TEST()
35 assertA(0 == archive_read_support_format_all(a)); in DEFINE_TEST()
36 assertA(0 == archive_read_open_memory(a, archive, 0)); in DEFINE_TEST()
37 assertA(ARCHIVE_EOF == archive_read_next_header(a, &ae)); in DEFINE_TEST()
38 assertA(archive_filter_code(a, 0) == ARCHIVE_FILTER_NONE); in DEFINE_TEST()
39 assertA(archive_format(a) == ARCHIVE_FORMAT_EMPTY); in DEFINE_TEST()
H A Dtest_write_filter_program.c56 assertA(0 == archive_write_set_format_ustar(a)); in DEFINE_TEST()
64 assertA(0 == archive_write_set_bytes_per_block(a, blocksize)); in DEFINE_TEST()
65 assertA(0 == archive_write_set_bytes_in_last_block(a, blocksize)); in DEFINE_TEST()
66 assertA(blocksize == archive_write_get_bytes_in_last_block(a)); in DEFINE_TEST()
67 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
68 assertA(blocksize == archive_write_get_bytes_in_last_block(a)); in DEFINE_TEST()
79 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
81 assertA(8 == archive_write_data(a, "12345678", 9)); in DEFINE_TEST()
H A Dtest_empty_write.c41 assertA(0 == archive_write_set_format_ustar(a)); in DEFINE_TEST()
57 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
75 assertA(0 == archive_write_set_format_ustar(a)); in DEFINE_TEST()
91 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
108 assertA(0 == archive_write_set_format_ustar(a)); in DEFINE_TEST()
109 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
110 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
116 assertA(0 == archive_write_header(a, ae)); in DEFINE_TEST()
H A Dtest_read_format_xar.c758 assertA(0 == archive_read_support_filter_all(a)); in verify()
771 assertA(0 == archive_read_support_format_all(a)); in verify()
772 assertA(0 == archive_read_open_memory(a, buff, s + 1024)); in verify()
773 assertA(0 == archive_read_next_header(a, &ae)); in verify()
781 assertA(0 == archive_read_next_header(a, &ae)); in verify()
824 assertA(0 == archive_read_open_memory(a, d, s)); in verifyB()
827 assertA(0 == archive_read_next_header(a, &entry)); in verifyB()
829 assertA(buf_size == 12); in verifyB()
831 assertA(NULL != buf); in verifyB()
832 assertA(buf_size == (size_t) archive_read_data(a, buf, buf_size)); in verifyB()
[all …]
H A Dtest_write_format_shar_empty.c39 assertA(0 == archive_write_set_format_shar(a)); in DEFINE_TEST()
40 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
43 assertA(0 == archive_write_set_bytes_per_block(a, 1)); in DEFINE_TEST()
44 assertA(0 == archive_write_set_bytes_in_last_block(a, 1)); in DEFINE_TEST()
45 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
H A Dtest_write_format_cpio_empty.c54 assertA(0 == archive_write_set_format_cpio_odc(a)); in DEFINE_TEST()
55 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
58 assertA(0 == archive_write_set_bytes_per_block(a, 1)); in DEFINE_TEST()
59 assertA(0 == archive_write_set_bytes_in_last_block(a, 1)); in DEFINE_TEST()
60 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); in DEFINE_TEST()
H A Dtest_read_format_cpio_odc.c53 assertA(0 == archive_read_support_filter_all(a)); in DEFINE_TEST()
54 assertA(0 == archive_read_support_format_all(a)); in DEFINE_TEST()
55 assertA(0 == archive_read_open_memory(a, archive, sizeof(archive))); in DEFINE_TEST()
57 assertA(archive_filter_code(a, 0) == ARCHIVE_FILTER_NONE); in DEFINE_TEST()
58 assertA(archive_format(a) == ARCHIVE_FORMAT_CPIO_POSIX); in DEFINE_TEST()
H A Dtest_read_format_rar_filter.c45 assertA(0 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
47 assertA((int)archive_entry_mtime(ae)); in DEFINE_TEST()
49 assertA(12 == archive_read_data(a, buff, 12)); in DEFINE_TEST()
52 assertA(1 == archive_read_next_header(a, &ae)); in DEFINE_TEST()
H A Dtest_write_format_gnutar_filenames.c65 assertA(0 == archive_write_set_format_gnutar(a)); in DEFINE_TEST()
66 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
67 assertA(0 == archive_write_open_memory(a, buff, buffsize, &used)); in DEFINE_TEST()
125 assertA(0 == archive_write_set_format_gnutar(a)); in DEFINE_TEST()
126 assertA(0 == archive_write_add_filter_none(a)); in DEFINE_TEST()
127 assertA(0 == archive_write_open_memory(a, buff, buffsize, &used)); in DEFINE_TEST()
H A Dtest_archive_string_conversion.c280 assertA(NULL != (f_sconv8 = in test_archive_string_normalization_nfc()
282 assertA(NULL != (f_sconv16be = in test_archive_string_normalization_nfc()
284 assertA(NULL != (f_sconv16le = in test_archive_string_normalization_nfc()
287 assertA(NULL != (t_sconv8 = in test_archive_string_normalization_nfc()
491 assertA(NULL != (f_sconv8 = in test_archive_string_normalization_mac_nfd()
493 assertA(NULL != (f_sconv16be = in test_archive_string_normalization_mac_nfd()
495 assertA(NULL != (f_sconv16le = in test_archive_string_normalization_mac_nfd()
498 assertA(NULL != (t_sconv8 = in test_archive_string_normalization_mac_nfd()
720 assertA(NULL != (sconv = in test_archive_string_canonicalization()
726 assertA(NULL != (sconv = in test_archive_string_canonicalization()
[all …]
H A Dtest_write_format_iso9660_boot.c106 assertA(0 == archive_write_set_format_iso9660(a)); in _test_write_format_iso9660_boot()
107 assertA(0 == archive_write_add_filter_none(a)); in _test_write_format_iso9660_boot()
108 assertA(0 == archive_write_set_option(a, NULL, "boot", "boot.img")); in _test_write_format_iso9660_boot()
110 assertA(0 == archive_write_set_option(a, NULL, "boot-info-table", "1")); in _test_write_format_iso9660_boot()
111 assertA(0 == archive_write_set_option(a, NULL, "pad", NULL)); in _test_write_format_iso9660_boot()
112 assertA(0 == archive_write_open_memory(a, buff, buffsize, &used)); in _test_write_format_iso9660_boot()

123