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