1# $NetBSD: Makefile,v 1.16 2024/11/21 20:14:07 riastradh Exp $ 2 3NOMAN= 4 5.include <bsd.own.mk> 6LIBARCHIVE=${NETBSDSRCDIR}/external/bsd/libarchive/dist 7 8TESTSDIR= ${TESTSBASE}/lib/libarchive 9 10BINDIR= ${TESTSDIR} 11PROGS+= h_libarchive 12TESTS_SH+= t_libarchive 13 14CPPFLAGS+=-I${LIBARCHIVE}/test_utils -I${LIBARCHIVE}/libarchive -I. 15CPPFLAGS+=-I${LIBARCHIVE}/libarchive/test -I${LIBARCHIVE}/../include 16 17.PATH: ${LIBARCHIVE}/libarchive/test ${LIBARCHIVE}/test_utils 18 19DPADD+= ${LIBARCHIVE} ${LIBEXPAT} ${LIBBZ2} ${LIBLZMA} ${LIBZ} \ 20 ${LIBCRYPTO} ${LIBPTHREAD} 21LDADD+= -Wl,--push-state,-Bstatic,-larchive,--pop-state # uses libarchive guts 22LDADD+= -lexpat -lbz2 -llzma -lz -lcrypto -lpthread 23 24.include "${NETBSDSRCDIR}/external/bsd/zstd/Makefile.zstd" 25PROGDPLIBS+= ${ZSTDDPLIBS} # needed by libarchive 26 27SRCS.h_libarchive= \ 28read_open_memory.c \ 29test_acl_nfs4.c \ 30test_acl_pax.c \ 31test_acl_platform_nfs4.c \ 32test_acl_platform_posix1e.c \ 33test_acl_posix1e.c \ 34test_acl_text.c \ 35test_archive_api_feature.c \ 36test_archive_clear_error.c \ 37test_archive_cmdline.c \ 38test_archive_digest.c \ 39test_archive_getdate.c \ 40test_archive_match_owner.c \ 41test_archive_match_path.c \ 42test_archive_match_time.c \ 43test_archive_pathmatch.c \ 44test_archive_read_add_passphrase.c \ 45test_archive_read_close_twice.c \ 46test_archive_read_close_twice_open_fd.c \ 47test_archive_read_close_twice_open_filename.c \ 48test_archive_read_multiple_data_objects.c \ 49test_archive_read_next_header_empty.c \ 50test_archive_read_next_header_raw.c \ 51test_archive_read_open2.c \ 52test_archive_read_set_filter_option.c \ 53test_archive_read_set_format_option.c \ 54test_archive_read_set_option.c \ 55test_archive_read_set_options.c \ 56test_archive_read_support.c \ 57test_archive_set_error.c \ 58test_archive_string.c \ 59test_archive_string_conversion.c \ 60test_archive_write_add_filter_by_name.c \ 61test_archive_write_set_filter_option.c \ 62test_archive_write_set_format_by_name.c \ 63test_archive_write_set_format_filter_by_ext.c \ 64test_archive_write_set_format_option.c \ 65test_archive_write_set_option.c \ 66test_archive_write_set_options.c \ 67test_archive_write_set_passphrase.c \ 68test_bad_fd.c \ 69test_compat_bzip2.c \ 70test_compat_cpio.c \ 71test_compat_gtar.c \ 72test_compat_gzip.c \ 73test_compat_lz4.c \ 74test_compat_lzip.c \ 75test_compat_lzma.c \ 76test_compat_lzop.c \ 77test_compat_mac.c \ 78test_compat_perl_archive_tar.c \ 79test_compat_plexus_archiver_tar.c \ 80test_compat_solaris_pax_sparse.c \ 81test_compat_solaris_tar_acl.c \ 82test_compat_star_acl.c \ 83test_compat_tar_hardlink.c \ 84test_compat_uudecode.c \ 85test_compat_uudecode_large.c \ 86test_compat_xz.c \ 87test_compat_zip.c \ 88test_compat_zstd.c \ 89test_empty_write.c \ 90test_entry.c \ 91test_entry_strmode.c \ 92test_extattr_freebsd.c \ 93test_filter_count.c \ 94test_fuzz.c \ 95test_gnutar_filename_encoding.c \ 96test_link_resolver.c \ 97test_main.c \ 98test_open_failure.c \ 99test_open_fd.c \ 100test_open_file.c \ 101test_open_filename.c \ 102test_pax_filename_encoding.c \ 103test_read_data_large.c \ 104test_read_disk.c \ 105test_read_disk_directory_traversals.c \ 106test_read_disk_entry_from_file.c \ 107test_read_extract.c \ 108test_read_file_nonexistent.c \ 109test_read_filter_compress.c \ 110test_read_filter_grzip.c \ 111test_read_filter_lrzip.c \ 112test_read_filter_lzop.c \ 113test_read_filter_lzop_multiple_parts.c \ 114test_read_filter_program.c \ 115test_read_filter_program_signature.c \ 116test_read_filter_uudecode.c \ 117test_read_format_7zip.c \ 118test_read_format_7zip_encryption_data.c \ 119test_read_format_7zip_encryption_header.c \ 120test_read_format_7zip_encryption_partially.c \ 121test_read_format_7zip_malformed.c \ 122test_read_format_ar.c \ 123test_read_format_cab.c \ 124test_read_format_cab_filename.c \ 125test_read_format_cpio_afio.c \ 126test_read_format_cpio_bin.c \ 127test_read_format_cpio_bin_Z.c \ 128test_read_format_cpio_bin_be.c \ 129test_read_format_cpio_bin_bz2.c \ 130test_read_format_cpio_bin_gz.c \ 131test_read_format_cpio_bin_le.c \ 132test_read_format_cpio_bin_lzip.c \ 133test_read_format_cpio_bin_lzma.c \ 134test_read_format_cpio_bin_xz.c \ 135test_read_format_cpio_filename.c \ 136test_read_format_cpio_odc.c \ 137test_read_format_cpio_svr4_bzip2_rpm.c \ 138test_read_format_cpio_svr4_gzip.c \ 139test_read_format_cpio_svr4_gzip_rpm.c \ 140test_read_format_cpio_svr4c_Z.c \ 141test_read_format_empty.c \ 142test_read_format_gtar_filename.c \ 143test_read_format_gtar_gz.c \ 144test_read_format_gtar_lzma.c \ 145test_read_format_gtar_sparse.c \ 146test_read_format_gtar_sparse_skip_entry.c \ 147test_read_format_iso_Z.c \ 148test_read_format_iso_multi_extent.c \ 149test_read_format_iso_xorriso.c \ 150test_read_format_isojoliet_bz2.c \ 151test_read_format_isojoliet_long.c \ 152test_read_format_isojoliet_rr.c \ 153test_read_format_isojoliet_versioned.c \ 154test_read_format_isorr_bz2.c \ 155test_read_format_isorr_ce.c \ 156test_read_format_isorr_new_bz2.c \ 157test_read_format_isorr_rr_moved.c \ 158test_read_format_isozisofs_bz2.c \ 159test_read_format_lha.c \ 160test_read_format_lha_bugfix_0.c \ 161test_read_format_lha_filename.c \ 162test_read_format_mtree.c \ 163test_read_format_mtree_crash747.c \ 164test_read_format_pax_bz2.c \ 165test_read_format_rar.c \ 166test_read_format_rar5.c \ 167test_read_format_rar_encryption_data.c \ 168test_read_format_rar_encryption_header.c \ 169test_read_format_rar_encryption_partially.c \ 170test_read_format_rar_invalid1.c \ 171test_read_format_raw.c \ 172test_read_format_tar.c \ 173test_read_format_tar_concatenated.c \ 174test_read_format_tar_empty_filename.c \ 175test_read_format_tar_empty_pax.c \ 176test_read_format_tar_empty_with_gnulabel.c \ 177test_read_format_tar_filename.c \ 178test_read_format_tbz.c \ 179test_read_format_tgz.c \ 180test_read_format_tlz.c \ 181test_read_format_txz.c \ 182test_read_format_tz.c \ 183test_read_format_ustar_filename.c \ 184test_read_format_warc.c \ 185test_read_format_xar.c \ 186test_read_format_zip.c \ 187test_read_format_zip_7075_utf8_paths.c \ 188test_read_format_zip_comment_stored.c \ 189test_read_format_zip_encryption_data.c \ 190test_read_format_zip_encryption_header.c \ 191test_read_format_zip_encryption_partially.c \ 192test_read_format_zip_extra_padding.c \ 193test_read_format_zip_filename.c \ 194test_read_format_zip_high_compression.c \ 195test_read_format_zip_jar.c \ 196test_read_format_zip_mac_metadata.c \ 197test_read_format_zip_malformed.c \ 198test_read_format_zip_msdos.c \ 199test_read_format_zip_nested.c \ 200test_read_format_zip_nofiletype.c \ 201test_read_format_zip_padded.c \ 202test_read_format_zip_sfx.c \ 203test_read_format_zip_traditional_encryption_data.c \ 204test_read_format_zip_winzip_aes.c \ 205test_read_format_zip_winzip_aes_large.c \ 206test_read_format_zip_with_invalid_traditional_eocd.c \ 207test_read_format_zip_zip64.c \ 208test_read_large.c \ 209test_read_pax_truncated.c \ 210test_read_position.c \ 211test_read_set_format.c \ 212test_read_too_many_filters.c \ 213test_read_truncated.c \ 214test_read_truncated_filter.c \ 215test_sparse_basic.c \ 216test_tar_filenames.c \ 217test_tar_large.c \ 218test_ustar_filename_encoding.c \ 219test_ustar_filenames.c \ 220test_utils.c \ 221test_warn_missing_hardlink_target.c \ 222test_write_disk.c \ 223test_write_disk_appledouble.c \ 224test_write_disk_failures.c \ 225test_write_disk_hardlink.c \ 226test_write_disk_hfs_compression.c \ 227test_write_disk_lookup.c \ 228test_write_disk_mac_metadata.c \ 229test_write_disk_no_hfs_compression.c \ 230test_write_disk_perms.c \ 231test_write_disk_secure.c \ 232test_write_disk_secure744.c \ 233test_write_disk_secure745.c \ 234test_write_disk_secure746.c \ 235test_write_disk_sparse.c \ 236test_write_disk_symlink.c \ 237test_write_disk_times.c \ 238test_write_filter_b64encode.c \ 239test_write_filter_bzip2.c \ 240test_write_filter_compress.c \ 241test_write_filter_gzip.c \ 242test_write_filter_gzip_timestamp.c \ 243test_write_filter_lrzip.c \ 244test_write_filter_lz4.c \ 245test_write_filter_lzip.c \ 246test_write_filter_lzma.c \ 247test_write_filter_lzop.c \ 248test_write_filter_program.c \ 249test_write_filter_uuencode.c \ 250test_write_filter_xz.c \ 251test_write_filter_zstd.c \ 252test_write_format_7zip.c \ 253test_write_format_7zip_empty.c \ 254test_write_format_7zip_large.c \ 255test_write_format_ar.c \ 256test_write_format_cpio.c \ 257test_write_format_cpio_empty.c \ 258test_write_format_cpio_newc.c \ 259test_write_format_cpio_odc.c \ 260test_write_format_gnutar.c \ 261test_write_format_gnutar_filenames.c \ 262test_write_format_iso9660.c \ 263test_write_format_iso9660_boot.c \ 264test_write_format_iso9660_empty.c \ 265test_write_format_iso9660_filename.c \ 266test_write_format_iso9660_zisofs.c \ 267test_write_format_mtree.c \ 268test_write_format_mtree_absolute_path.c \ 269test_write_format_mtree_classic.c \ 270test_write_format_mtree_classic_indent.c \ 271test_write_format_mtree_fflags.c \ 272test_write_format_mtree_no_separator.c \ 273test_write_format_mtree_quoted_filename.c \ 274test_write_format_pax.c \ 275test_write_format_raw.c \ 276test_write_format_raw_b64.c \ 277test_write_format_shar_empty.c \ 278test_write_format_tar.c \ 279test_write_format_tar_empty.c \ 280test_write_format_tar_sparse.c \ 281test_write_format_tar_ustar.c \ 282test_write_format_tar_v7tar.c \ 283test_write_format_warc.c \ 284test_write_format_warc_empty.c \ 285test_write_format_xar.c \ 286test_write_format_xar_empty.c \ 287test_write_format_zip.c \ 288test_write_format_zip_compression_store.c \ 289test_write_format_zip_empty.c \ 290test_write_format_zip_empty_zip64.c \ 291test_write_format_zip_file.c \ 292test_write_format_zip_file_zip64.c \ 293test_write_format_zip_large.c \ 294test_write_format_zip_zip64.c \ 295test_write_open_memory.c \ 296test_write_read_format_zip.c \ 297test_xattr_platform.c \ 298test_zip_filename_encoding.c 299 300FILESDIR= ${TESTSDIR} 301FILES=\ 302test_acl_pax_nfs4.tar.uu \ 303test_acl_pax_posix1e.tar.uu \ 304test_archive_string_conversion.txt.Z.uu \ 305test_compat_bzip2_1.tbz.uu \ 306test_compat_bzip2_2.tbz.uu \ 307test_compat_cpio_1.cpio.uu \ 308test_compat_gtar_1.tar.uu \ 309test_compat_gtar_2.tar.uu \ 310test_compat_gzip_1.tgz.uu \ 311test_compat_gzip_2.tgz.uu \ 312test_compat_lz4_1.tar.lz4.uu \ 313test_compat_lz4_2.tar.lz4.uu \ 314test_compat_lz4_3.tar.lz4.uu \ 315test_compat_lz4_B4.tar.lz4.uu \ 316test_compat_lz4_B4BD.tar.lz4.uu \ 317test_compat_lz4_B4BDBX.tar.lz4.uu \ 318test_compat_lz4_B5.tar.lz4.uu \ 319test_compat_lz4_B5BD.tar.lz4.uu \ 320test_compat_lz4_B6.tar.lz4.uu \ 321test_compat_lz4_B6BD.tar.lz4.uu \ 322test_compat_lz4_B7.tar.lz4.uu \ 323test_compat_lz4_B7BD.tar.lz4.uu \ 324test_compat_lzip_1.tlz.uu \ 325test_compat_lzip_2.tlz.uu \ 326test_compat_lzip_3.lz.uu \ 327test_compat_lzip_4.tlz.uu \ 328test_compat_lzma_1.tlz.uu \ 329test_compat_lzma_2.tlz.uu \ 330test_compat_lzma_3.tlz.uu \ 331test_compat_lzop_1.tar.lzo.uu \ 332test_compat_lzop_2.tar.lzo.uu \ 333test_compat_lzop_3.tar.lzo.uu \ 334test_compat_mac-1.tar.Z.uu \ 335test_compat_mac-2.tar.Z.uu \ 336test_compat_perl_archive_tar.tar.uu \ 337test_compat_plexus_archiver_tar.tar.uu \ 338test_compat_solaris_pax_sparse_1.pax.Z.uu \ 339test_compat_solaris_pax_sparse_2.pax.Z.uu \ 340test_compat_solaris_tar_acl.tar.uu \ 341test_compat_star_acl_nfs4.tar.uu \ 342test_compat_star_acl_posix1e.tar.uu \ 343test_compat_tar_directory_1.tar.uu \ 344test_compat_tar_hardlink_1.tar.uu \ 345test_compat_uudecode_large.tar.Z.uu \ 346test_compat_xz_1.txz.uu \ 347test_compat_zip_1.zip.uu \ 348test_compat_zip_2.zip.uu \ 349test_compat_zip_3.zip.uu \ 350test_compat_zip_4.zip.uu \ 351test_compat_zip_5.zip.uu \ 352test_compat_zip_6.zip.uu \ 353test_compat_zip_7.xps.uu \ 354test_compat_zip_8.zip.uu \ 355test_compat_zstd_1.tar.zst.uu \ 356test_compat_zstd_1.tar.zst.uu \ 357test_compat_zstd_2.tar.zst.uu \ 358test_fuzz.cab.uu \ 359test_fuzz.lzh.uu \ 360test_fuzz_1.iso.Z.uu \ 361test_pax_filename_encoding.tar.uu \ 362test_rar_multivolume_multiple_files.part1.rar.uu \ 363test_rar_multivolume_multiple_files.part2.rar.uu \ 364test_rar_multivolume_multiple_files.part3.rar.uu \ 365test_rar_multivolume_multiple_files.part4.rar.uu \ 366test_rar_multivolume_multiple_files.part5.rar.uu \ 367test_rar_multivolume_multiple_files.part6.rar.uu \ 368test_rar_multivolume_single_file.part1.rar.uu \ 369test_rar_multivolume_single_file.part2.rar.uu \ 370test_rar_multivolume_single_file.part3.rar.uu \ 371test_rar_multivolume_uncompressed_files.part01.rar.uu \ 372test_rar_multivolume_uncompressed_files.part02.rar.uu \ 373test_rar_multivolume_uncompressed_files.part03.rar.uu \ 374test_rar_multivolume_uncompressed_files.part04.rar.uu \ 375test_rar_multivolume_uncompressed_files.part05.rar.uu \ 376test_rar_multivolume_uncompressed_files.part06.rar.uu \ 377test_rar_multivolume_uncompressed_files.part07.rar.uu \ 378test_rar_multivolume_uncompressed_files.part08.rar.uu \ 379test_rar_multivolume_uncompressed_files.part09.rar.uu \ 380test_rar_multivolume_uncompressed_files.part10.rar.uu \ 381test_read_filter_grzip.tar.grz.uu \ 382test_read_filter_lrzip.tar.lrz.uu \ 383test_read_filter_lzop.tar.lzo.uu \ 384test_read_filter_lzop_multiple_parts.tar.lzo.uu \ 385test_read_format_7zip_bcj2_bzip2.7z.uu \ 386test_read_format_7zip_bcj2_copy_1.7z.uu \ 387test_read_format_7zip_bcj2_copy_2.7z.uu \ 388test_read_format_7zip_bcj2_copy_lzma.7z.uu \ 389test_read_format_7zip_bcj2_deflate.7z.uu \ 390test_read_format_7zip_bcj2_lzma1_1.7z.uu \ 391test_read_format_7zip_bcj2_lzma1_2.7z.uu \ 392test_read_format_7zip_bcj2_lzma2_1.7z.uu \ 393test_read_format_7zip_bcj2_lzma2_2.7z.uu \ 394test_read_format_7zip_bcj_bzip2.7z.uu \ 395test_read_format_7zip_bcj_copy.7z.uu \ 396test_read_format_7zip_bcj_deflate.7z.uu \ 397test_read_format_7zip_bcj_lzma1.7z.uu \ 398test_read_format_7zip_bcj_lzma2.7z.uu \ 399test_read_format_7zip_bzip2.7z.uu \ 400test_read_format_7zip_copy.7z.uu \ 401test_read_format_7zip_copy_2.7z.uu \ 402test_read_format_7zip_deflate.7z.uu \ 403test_read_format_7zip_deflate_arm64.7z.uu \ 404test_read_format_7zip_delta4_lzma1.7z.uu \ 405test_read_format_7zip_delta4_lzma2.7z.uu \ 406test_read_format_7zip_delta_lzma1.7z.uu \ 407test_read_format_7zip_delta_lzma2.7z.uu \ 408test_read_format_7zip_empty_archive.7z.uu \ 409test_read_format_7zip_empty_file.7z.uu \ 410test_read_format_7zip_encryption.7z.uu \ 411test_read_format_7zip_encryption_header.7z.uu \ 412test_read_format_7zip_encryption_partially.7z.uu \ 413test_read_format_7zip_extract_second.7z.uu \ 414test_read_format_7zip_lzma1.7z.uu \ 415test_read_format_7zip_lzma1_2.7z.uu \ 416test_read_format_7zip_lzma1_lzma2.7z.uu \ 417test_read_format_7zip_lzma2.7z.uu \ 418test_read_format_7zip_lzma2_arm.7z.uu \ 419test_read_format_7zip_malformed.7z.uu \ 420test_read_format_7zip_malformed2.7z.uu \ 421test_read_format_7zip_ppmd.7z.uu \ 422test_read_format_7zip_solid_zstd.7z.uu \ 423test_read_format_7zip_symbolic_name.7z.uu \ 424test_read_format_7zip_win_attrib.7z.uu \ 425test_read_format_7zip_zstd.7z.uu \ 426test_read_format_7zip_zstd_arm.7z.uu \ 427test_read_format_7zip_zstd_bcj.7z.uu \ 428test_read_format_7zip_zstd_nobcj.7z.uu \ 429test_read_format_ar.ar.uu \ 430test_read_format_cab_1.cab.uu \ 431test_read_format_cab_2.cab.uu \ 432test_read_format_cab_3.cab.uu \ 433test_read_format_cab_filename_cp932.cab.uu \ 434test_read_format_cpio_bin_be.cpio.uu \ 435test_read_format_cpio_bin_le.cpio.uu \ 436test_read_format_cpio_filename_cp866.cpio.uu \ 437test_read_format_cpio_filename_eucjp.cpio.uu \ 438test_read_format_cpio_filename_koi8r.cpio.uu \ 439test_read_format_cpio_filename_utf8_jp.cpio.uu \ 440test_read_format_cpio_filename_utf8_ru.cpio.uu \ 441test_read_format_cpio_svr4_bzip2_rpm.rpm.uu \ 442test_read_format_cpio_svr4_gzip_rpm.rpm.uu \ 443test_read_format_gtar_filename_cp866.tar.Z.uu \ 444test_read_format_gtar_filename_eucjp.tar.Z.uu \ 445test_read_format_gtar_filename_koi8r.tar.Z.uu \ 446test_read_format_gtar_sparse_1_13.tar.uu \ 447test_read_format_gtar_sparse_1_17.tar.uu \ 448test_read_format_gtar_sparse_1_17_posix00.tar.uu \ 449test_read_format_gtar_sparse_1_17_posix01.tar.uu \ 450test_read_format_gtar_sparse_1_17_posix10.tar.uu \ 451test_read_format_gtar_sparse_1_17_posix10_modified.tar.uu \ 452test_read_format_gtar_sparse_skip_entry.tar.Z.uu \ 453test_read_format_iso.iso.Z.uu \ 454test_read_format_iso_2.iso.Z.uu \ 455test_read_format_iso_3.iso.Z.uu \ 456test_read_format_iso_joliet.iso.Z.uu \ 457test_read_format_iso_joliet_by_nero.iso.Z.uu \ 458test_read_format_iso_joliet_long.iso.Z.uu \ 459test_read_format_iso_joliet_rockridge.iso.Z.uu \ 460test_read_format_iso_multi_extent.iso.Z.uu \ 461test_read_format_iso_rockridge.iso.Z.uu \ 462test_read_format_iso_rockridge_ce.iso.Z.uu \ 463test_read_format_iso_rockridge_new.iso.Z.uu \ 464test_read_format_iso_rockridge_rr_moved.iso.Z.uu \ 465test_read_format_iso_xorriso.iso.Z.uu \ 466test_read_format_iso_zisofs.iso.Z.uu \ 467test_read_format_lha_bugfix_0.lzh.uu \ 468test_read_format_lha_filename_cp932.lzh.uu \ 469test_read_format_lha_header0.lzh.uu \ 470test_read_format_lha_header1.lzh.uu \ 471test_read_format_lha_header2.lzh.uu \ 472test_read_format_lha_header3.lzh.uu \ 473test_read_format_lha_lh0.lzh.uu \ 474test_read_format_lha_lh6.lzh.uu \ 475test_read_format_lha_lh7.lzh.uu \ 476test_read_format_lha_withjunk.lzh.uu \ 477test_read_format_mtree.mtree.uu \ 478test_read_format_mtree_crash747.mtree.bz2.uu \ 479test_read_format_mtree_nomagic.mtree.uu \ 480test_read_format_mtree_nomagic2.mtree.uu \ 481test_read_format_mtree_nomagic3.mtree.uu \ 482test_read_format_mtree_noprint.mtree.uu \ 483test_read_format_rar.rar.uu \ 484test_read_format_rar5_arm.rar.uu \ 485test_read_format_rar5_arm_filter_on_window_boundary.rar.uu \ 486test_read_format_rar5_bad_window_sz_in_mltarc_file.rar.uu \ 487test_read_format_rar5_blake2.rar.uu \ 488test_read_format_rar5_block_size_is_too_small.rar.uu \ 489test_read_format_rar5_compressed.rar.uu \ 490test_read_format_rar5_data_ready_pointer_leak.rar.uu \ 491test_read_format_rar5_decode_number_out_of_bounds_read.rar.uu \ 492test_read_format_rar5_different_solid_window_size.rar.uu \ 493test_read_format_rar5_different_window_size.rar.uu \ 494test_read_format_rar5_different_winsize_on_merge.rar.uu \ 495test_read_format_rar5_distance_overflow.rar.uu \ 496test_read_format_rar5_extra_field_version.rar.uu \ 497test_read_format_rar5_fileattr.rar.uu \ 498test_read_format_rar5_hardlink.rar.uu \ 499test_read_format_rar5_invalid_dict_reference.rar.uu \ 500test_read_format_rar5_leftshift1.rar.uu \ 501test_read_format_rar5_leftshift2.rar.uu \ 502test_read_format_rar5_multiarchive.part01.rar.uu \ 503test_read_format_rar5_multiarchive.part02.rar.uu \ 504test_read_format_rar5_multiarchive.part03.rar.uu \ 505test_read_format_rar5_multiarchive.part04.rar.uu \ 506test_read_format_rar5_multiarchive.part05.rar.uu \ 507test_read_format_rar5_multiarchive.part06.rar.uu \ 508test_read_format_rar5_multiarchive.part07.rar.uu \ 509test_read_format_rar5_multiarchive.part08.rar.uu \ 510test_read_format_rar5_multiarchive_solid.part01.rar.uu \ 511test_read_format_rar5_multiarchive_solid.part02.rar.uu \ 512test_read_format_rar5_multiarchive_solid.part03.rar.uu \ 513test_read_format_rar5_multiarchive_solid.part04.rar.uu \ 514test_read_format_rar5_multiple_files.rar.uu \ 515test_read_format_rar5_multiple_files_solid.rar.uu \ 516test_read_format_rar5_nonempty_dir_stream.rar.uu \ 517test_read_format_rar5_owner.rar.uu \ 518test_read_format_rar5_readtables_overflow.rar.uu \ 519test_read_format_rar5_sfx.exe.uu \ 520test_read_format_rar5_solid.rar.uu \ 521test_read_format_rar5_stored.rar.uu \ 522test_read_format_rar5_stored_manyfiles.rar.uu \ 523test_read_format_rar5_symlink.rar.uu \ 524test_read_format_rar5_truncated_huff.rar.uu \ 525test_read_format_rar5_win32.rar.uu \ 526test_read_format_rar5_window_buf_and_size_desync.rar.uu \ 527test_read_format_rar_binary_data.rar.uu \ 528test_read_format_rar_compress_best.rar.uu \ 529test_read_format_rar_compress_normal.rar.uu \ 530test_read_format_rar_encryption_data.rar.uu \ 531test_read_format_rar_encryption_header.rar.uu \ 532test_read_format_rar_encryption_partially.rar.uu \ 533test_read_format_rar_invalid1.rar.uu \ 534test_read_format_rar_multi_lzss_blocks.rar.uu \ 535test_read_format_rar_multivolume.part0001.rar.uu \ 536test_read_format_rar_multivolume.part0002.rar.uu \ 537test_read_format_rar_multivolume.part0003.rar.uu \ 538test_read_format_rar_multivolume.part0004.rar.uu \ 539test_read_format_rar_noeof.rar.uu \ 540test_read_format_rar_ppmd_lzss_conversion.rar.uu \ 541test_read_format_rar_ppmd_use_after_free.rar.uu \ 542test_read_format_rar_ppmd_use_after_free2.rar.uu \ 543test_read_format_rar_sfx.exe.uu \ 544test_read_format_rar_subblock.rar.uu \ 545test_read_format_rar_unicode.rar.uu \ 546test_read_format_rar_windows.rar.uu \ 547test_read_format_raw.bufr.uu \ 548test_read_format_raw.data.Z.uu \ 549test_read_format_raw.data.gz.uu \ 550test_read_format_raw.data.uu \ 551test_read_format_tar_concatenated.tar.uu \ 552test_read_format_tar_empty_filename.tar.uu \ 553test_read_format_tar_empty_pax.tar.Z.uu \ 554test_read_format_tar_empty_with_gnulabel.tar.uu \ 555test_read_format_tar_filename_koi8r.tar.Z.uu \ 556test_read_format_ustar_filename_cp866.tar.Z.uu \ 557test_read_format_ustar_filename_eucjp.tar.Z.uu \ 558test_read_format_ustar_filename_koi8r.tar.Z.uu \ 559test_read_format_warc.warc.uu \ 560test_read_format_xar_duplicate_filename_node.xar.uu \ 561test_read_format_zip.zip.uu \ 562test_read_format_zip_7075_utf8_paths.zip.uu \ 563test_read_format_zip_7z_deflate.zip.uu \ 564test_read_format_zip_7z_lzma.zip.uu \ 565test_read_format_zip_bz2_hang.zip.uu \ 566test_read_format_zip_bzip2.zipx.uu \ 567test_read_format_zip_bzip2_multi.zipx.uu \ 568test_read_format_zip_comment_stored_1.zip.uu \ 569test_read_format_zip_comment_stored_2.zip.uu \ 570test_read_format_zip_encryption_data.zip.uu \ 571test_read_format_zip_encryption_header.zip.uu \ 572test_read_format_zip_encryption_partially.zip.uu \ 573test_read_format_zip_extra_padding.zip.uu \ 574test_read_format_zip_filename_cp866.zip.uu \ 575test_read_format_zip_filename_cp932.zip.uu \ 576test_read_format_zip_filename_koi8r.zip.uu \ 577test_read_format_zip_filename_utf8_jp.zip.uu \ 578test_read_format_zip_filename_utf8_ru.zip.uu \ 579test_read_format_zip_filename_utf8_ru2.zip.uu \ 580test_read_format_zip_high_compression.zip.uu \ 581test_read_format_zip_jar.jar.uu \ 582test_read_format_zip_length_at_end.zip.uu \ 583test_read_format_zip_lzma.zipx.uu \ 584test_read_format_zip_lzma_alone_leak.zipx.uu \ 585test_read_format_zip_lzma_multi.zipx.uu \ 586test_read_format_zip_lzma_stream_end.zipx.uu \ 587test_read_format_zip_mac_metadata.zip.uu \ 588test_read_format_zip_malformed1.zip.uu \ 589test_read_format_zip_msdos.zip.uu \ 590test_read_format_zip_nested.zip.uu \ 591test_read_format_zip_nofiletype.zip.uu \ 592test_read_format_zip_padded1.zip.uu \ 593test_read_format_zip_padded2.zip.uu \ 594test_read_format_zip_padded3.zip.uu \ 595test_read_format_zip_ppmd8.zipx.uu \ 596test_read_format_zip_ppmd8_crash_1.zipx.uu \ 597test_read_format_zip_ppmd8_crash_2.zipx.uu \ 598test_read_format_zip_ppmd8_multi.zipx.uu \ 599test_read_format_zip_sfx.uu \ 600test_read_format_zip_symlink.zip.uu \ 601test_read_format_zip_traditional_encryption_data.zip.uu \ 602test_read_format_zip_ux.zip.uu \ 603test_read_format_zip_winzip_aes128.zip.uu \ 604test_read_format_zip_winzip_aes256.zip.uu \ 605test_read_format_zip_winzip_aes256_large.zip.uu \ 606test_read_format_zip_winzip_aes256_stored.zip.uu \ 607test_read_format_zip_with_invalid_traditional_eocd.zip.uu \ 608test_read_format_zip_xz_multi.zipx.uu \ 609test_read_format_zip_zip64a.zip.uu \ 610test_read_format_zip_zip64b.zip.uu \ 611test_read_format_zip_zstd.zipx.uu \ 612test_read_format_zip_zstd_multi.zipx.uu \ 613test_read_large_splitted_rar_aa.uu \ 614test_read_large_splitted_rar_ab.uu \ 615test_read_large_splitted_rar_ac.uu \ 616test_read_large_splitted_rar_ad.uu \ 617test_read_large_splitted_rar_ae.uu \ 618test_read_splitted_rar_aa.uu \ 619test_read_splitted_rar_ab.uu \ 620test_read_splitted_rar_ac.uu \ 621test_read_splitted_rar_ad.uu \ 622test_read_too_many_filters.gz.uu \ 623test_splitted_rar_seek_support_aa.uu \ 624test_splitted_rar_seek_support_ab.uu \ 625test_splitted_rar_seek_support_ac.uu \ 626test_write_disk_appledouble.cpio.gz.uu \ 627test_write_disk_hfs_compression.tgz.uu \ 628test_write_disk_mac_metadata.tar.gz.uu \ 629test_write_disk_no_hfs_compression.tgz.uu 630 631.include <bsd.test.mk> 632 633test_main.o test_main.d: list.h 634 635CLEANFILES+=list.h 636 637# XXX: We skip the truncated filter tests because they are broken 638# for built-in decompressors. The reason is that the output buffer 639# size is 64K, the truncated files are < 64K and the built-in decompressors 640# bail out instead of returning incomplete results. 641list.h: ${SRCS.h_libarchive} Makefile 642 ${TOOL_GREP} -h '^DEFINE_TEST(' ${.ALLSRC} | \ 643 ${TOOL_GREP} -v _truncated_filter_ | \ 644 ${TOOL_GREP} -v test_compat_pax_libarchive_2x > ${.TARGET} 645 646COPTS.test_archive_string_conversion.c+= ${CC_WNO_STRINGOP_TRUNCATION} 647COPTS.test_main.c+= ${CC_WNO_STRINGOP_OVERFLOW} 648COPTS.test_write_disk_secure.c+= ${CC_WNO_STRINGOP_OVERFLOW} 649 650