NameDateSize

..20-Dec-201693

main.cH A D08-Mar-201552.2 KiB

read_open_memory.cH A D08-Mar-20155.1 KiB

READMEH A D08-Mar-20152.4 KiB

test.hH A D08-Mar-201511.8 KiB

test_acl_basic.cH A D08-Mar-20158 KiB

test_acl_freebsd.cH A D08-Mar-20157.7 KiB

test_acl_pax.cH A D08-Mar-201526.7 KiB

test_archive_api_feature.cH A D08-Mar-20153.2 KiB

test_bad_fd.cH A D08-Mar-20151.8 KiB

test_compat_bzip2.cH A D08-Mar-20153 KiB

test_compat_bzip2_1.tbz.uuH A D08-Mar-20151.2 KiB

test_compat_bzip2_2.tbz.uuH A D08-Mar-2015395

test_compat_cpio.cH A D08-Mar-20154.2 KiB

test_compat_cpio_1.cpio.uuH A D08-Mar-2015879

test_compat_gtar.cH A D08-Mar-20154.3 KiB

test_compat_gtar_1.tar.uuH A D08-Mar-201513.8 KiB

test_compat_gzip.cH A D08-Mar-20153.5 KiB

test_compat_gzip_1.tgz.uuH A D08-Mar-20151.2 KiB

test_compat_gzip_2.tgz.uuH A D08-Mar-2015406

test_compat_lzma.cH A D08-Mar-20155.1 KiB

test_compat_lzma_1.tlz.uuH A D08-Mar-2015352

test_compat_lzma_2.tlz.uuH A D08-Mar-2015274

test_compat_lzma_3.tlz.uuH A D08-Mar-2015274

test_compat_solaris_tar_acl.cH A D08-Mar-20154.8 KiB

test_compat_solaris_tar_acl.tar.uuH A D08-Mar-20153.5 KiB

test_compat_tar_hardlink.cH A D08-Mar-20154.3 KiB

test_compat_tar_hardlink_1.tar.uuH A D08-Mar-20152.1 KiB

test_compat_xz.cH A D08-Mar-20153.1 KiB

test_compat_xz_1.txz.uuH A D08-Mar-2015559

test_compat_zip.cH A D08-Mar-20153.9 KiB

test_compat_zip_1.zip.uuH A D08-Mar-2015726

test_compat_zip_2.zip.uuH A D08-Mar-2015335

test_empty_write.cH A D08-Mar-20154.1 KiB

test_entry.cH A D08-Mar-201532.2 KiB

test_entry_strmode.cH A D08-Mar-20152.9 KiB

test_extattr_freebsd.cH A D08-Mar-20155.8 KiB

test_fuzz.cH A D08-Mar-20155.6 KiB

test_fuzz_1.iso.Z.uuH A D08-Mar-201529.7 KiB

test_link_resolver.cH A D08-Mar-20157.2 KiB

test_open_failure.cH A D08-Mar-20156.6 KiB

test_open_fd.cH A D08-Mar-20154.6 KiB

test_open_file.cH A D08-Mar-20154 KiB

test_open_filename.cH A D08-Mar-20154.3 KiB

test_pax_filename_encoding.cH A D08-Mar-201512.6 KiB

test_pax_filename_encoding.tar.uuH A D08-Mar-20156.9 KiB

test_read_compress_program.cH A D08-Mar-20153.2 KiB

test_read_data_large.cH A D08-Mar-20154.5 KiB

test_read_disk.cH A D08-Mar-20155.6 KiB

test_read_disk_entry_from_file.cH A D08-Mar-20152.7 KiB

test_read_extract.cH A D08-Mar-20156.4 KiB

test_read_file_nonexistent.cH A D08-Mar-20151.6 KiB

test_read_format_ar.ar.uuH A D08-Mar-2015480

test_read_format_ar.cH A D08-Mar-20153.4 KiB

test_read_format_cpio_bin.cH A D08-Mar-20153.1 KiB

test_read_format_cpio_bin_be.cH A D08-Mar-20152.5 KiB

test_read_format_cpio_bin_be.cpio.uuH A D08-Mar-2015276

test_read_format_cpio_bin_bz2.cH A D08-Mar-20152.4 KiB

test_read_format_cpio_bin_gz.cH A D08-Mar-20152.6 KiB

test_read_format_cpio_bin_lzma.cH A D08-Mar-20152.6 KiB

test_read_format_cpio_bin_xz.cH A D08-Mar-20153 KiB

test_read_format_cpio_bin_Z.cH A D08-Mar-20152.6 KiB

test_read_format_cpio_odc.cH A D08-Mar-20153.3 KiB

test_read_format_cpio_svr4_bzip2_rpm.cH A D08-Mar-20154.5 KiB

test_read_format_cpio_svr4_bzip2_rpm.rpm.uuH A D08-Mar-20152.7 KiB

test_read_format_cpio_svr4_gzip.cH A D08-Mar-20152.6 KiB

test_read_format_cpio_svr4_gzip_rpm.cH A D08-Mar-20154.5 KiB

test_read_format_cpio_svr4_gzip_rpm.rpm.uuH A D08-Mar-20152.6 KiB

test_read_format_cpio_svr4c_Z.cH A D08-Mar-20152.8 KiB

test_read_format_empty.cH A D08-Mar-20152 KiB

test_read_format_gtar_gz.cH A D08-Mar-20152.6 KiB

test_read_format_gtar_lzma.cH A D08-Mar-20153.1 KiB

test_read_format_gtar_sparse.cH A D08-Mar-20158.5 KiB

test_read_format_gtar_sparse_1_13.tar.uuH A D08-Mar-201582.7 KiB

test_read_format_gtar_sparse_1_17.tar.uuH A D08-Mar-201582.7 KiB

test_read_format_gtar_sparse_1_17_posix00.tar.uuH A D08-Mar-201596.5 KiB

test_read_format_gtar_sparse_1_17_posix01.tar.uuH A D08-Mar-201582.7 KiB

test_read_format_gtar_sparse_1_17_posix10.tar.uuH A D08-Mar-201582.7 KiB

test_read_format_gtar_sparse_1_17_posix10_modified.tar.uuH A D08-Mar-201582.7 KiB

test_read_format_iso.iso.Z.uuH A D08-Mar-20151.3 KiB

test_read_format_iso_2.iso.Z.uuH A D08-Mar-20152 KiB

test_read_format_iso_joliet.iso.Z.uuH A D08-Mar-20153.7 KiB

test_read_format_iso_joliet_long.iso.Z.uuH A D08-Mar-20154 KiB

test_read_format_iso_joliet_rockridge.iso.Z.uuH A D08-Mar-20153.8 KiB

test_read_format_iso_multi_extent.cH A D08-Mar-20153.7 KiB

test_read_format_iso_multi_extent.iso.Z.uuH A D08-Mar-20153.8 KiB

test_read_format_iso_rockridge.iso.Z.uuH A D08-Mar-201512.2 KiB

test_read_format_iso_rockridge_ce.iso.Z.uuH A D08-Mar-20153.5 KiB

test_read_format_iso_rockridge_new.iso.Z.uuH A D08-Mar-201512.3 KiB

test_read_format_iso_rockridge_rr_moved.iso.Z.uuH A D08-Mar-201518.1 KiB

test_read_format_iso_Z.cH A D08-Mar-20153.5 KiB

test_read_format_iso_zisofs.iso.Z.uuH A D08-Mar-20153.6 KiB

test_read_format_isojoliet_bz2.cH A D08-Mar-20155.4 KiB

test_read_format_isojoliet_long.cH A D08-Mar-20155.1 KiB

test_read_format_isojoliet_rr.cH A D08-Mar-20156.4 KiB

test_read_format_isorr_bz2.cH A D08-Mar-20158.7 KiB

test_read_format_isorr_ce.cH A D08-Mar-20157.9 KiB

test_read_format_isorr_new_bz2.cH A D08-Mar-20158.8 KiB

test_read_format_isorr_rr_moved.cH A D08-Mar-201511.4 KiB

test_read_format_isozisofs_bz2.cH A D08-Mar-20157.8 KiB

test_read_format_mtree.cH A D08-Mar-20156.7 KiB

test_read_format_mtree.mtree.uuH A D08-Mar-2015520

test_read_format_pax_bz2.cH A D08-Mar-20153 KiB

test_read_format_raw.cH A D08-Mar-20153.7 KiB

test_read_format_raw.data.uuH A D08-Mar-201562

test_read_format_raw.data.Z.uuH A D08-Mar-201568

test_read_format_tar.cH A D08-Mar-201524.7 KiB

test_read_format_tar_empty_filename.cH A D08-Mar-20152.7 KiB

test_read_format_tar_empty_filename.tar.uuH A D08-Mar-20152.1 KiB

test_read_format_tbz.cH A D08-Mar-20152.5 KiB

test_read_format_tgz.cH A D08-Mar-20152.5 KiB

test_read_format_tlz.cH A D08-Mar-20152.6 KiB

test_read_format_txz.cH A D08-Mar-20152.8 KiB

test_read_format_tz.cH A D08-Mar-20152.7 KiB

test_read_format_xar.cH A D08-Mar-201537 KiB

test_read_format_zip.cH A D08-Mar-20153.6 KiB

test_read_format_zip.zip.uuH A D08-Mar-2015647

test_read_large.cH A D08-Mar-20153.6 KiB

test_read_pax_truncated.cH A D08-Mar-20159.7 KiB

test_read_position.cH A D08-Mar-20153.6 KiB

test_read_truncated.cH A D08-Mar-20155 KiB

test_read_uu.cH A D08-Mar-20154.7 KiB

test_tar_filenames.cH A D08-Mar-20155.4 KiB

test_tar_large.cH A D08-Mar-20158.5 KiB

test_ustar_filenames.cH A D08-Mar-20155.8 KiB

test_write_compress.cH A D08-Mar-20153.2 KiB

test_write_compress_bzip2.cH A D08-Mar-20158.3 KiB

test_write_compress_gzip.cH A D08-Mar-20159.1 KiB

test_write_compress_lzma.cH A D08-Mar-20159 KiB

test_write_compress_program.cH A D08-Mar-20154.3 KiB

test_write_compress_xz.cH A D08-Mar-20159.2 KiB

test_write_disk.cH A D08-Mar-201511.7 KiB

test_write_disk_failures.cH A D08-Mar-20152.6 KiB

test_write_disk_hardlink.cH A D08-Mar-20157.5 KiB

test_write_disk_perms.cH A D08-Mar-201516 KiB

test_write_disk_secure.cH A D01-Jun-20169 KiB

test_write_disk_sparse.cH A D08-Mar-20158.6 KiB

test_write_disk_symlink.cH A D08-Mar-20154 KiB

test_write_disk_times.cH A D08-Mar-20155.8 KiB

test_write_format_ar.cH A D08-Mar-20157.7 KiB

test_write_format_cpio.cH A D08-Mar-20156 KiB

test_write_format_cpio_empty.cH A D08-Mar-20152.7 KiB

test_write_format_cpio_newc.cH A D08-Mar-20158 KiB

test_write_format_cpio_odc.cH A D08-Mar-20159.2 KiB

test_write_format_mtree.cH A D08-Mar-20155.4 KiB

test_write_format_pax.cH A D08-Mar-20155.3 KiB

test_write_format_shar_empty.cH A D08-Mar-20152.3 KiB

test_write_format_tar.cH A D08-Mar-20154.1 KiB

test_write_format_tar_empty.cH A D08-Mar-20153.2 KiB

test_write_format_tar_ustar.cH A D08-Mar-201513.1 KiB

test_write_format_zip.cH A D08-Mar-20156.3 KiB

test_write_format_zip_empty.cH A D08-Mar-20152.2 KiB

test_write_format_zip_no_compression.cH A D08-Mar-201512.9 KiB

test_write_open_memory.cH A D08-Mar-20152.9 KiB

README

1$FreeBSD$
2
3This is the test harness for libarchive.
4
5It compiles into a single program "libarchive_test" that is intended
6to exercise as much of the library as possible.  It is, of course,
7very much a work in progress.
8
9Each test is a function named test_foo in a file named test_foo.c.
10Note that the file name is the same as the function name.
11Each file must start with this line:
12
13  #include "test.h"
14
15The test function must be declared with a line of this form
16
17  DEFINE_TEST(test_foo)
18
19Nothing else should appear on that line.
20
21When you add a test, please update the Makefile to add your
22file to the list of tests.  The Makefile and main.c use various
23macro trickery to automatically collect a list of test functions
24to be invoked.
25
26Each test function can rely on the following:
27
28  * The current directory will be a freshly-created empty directory
29    suitable for that test.  (The top-level main() creates a
30    directory for each separate test and chdir()s to that directory
31    before running the test.)
32
33  * The test function should use assert(), assertA() and similar macros
34    defined in test.h.  If you need to add new macros of this form, feel
35    free to do so.  The current macro set includes assertEqualInt() and
36    assertEqualString() that print out additional detail about their
37    arguments if the assertion does fail.  'A' versions also accept
38    a struct archive * and display any error message from there on
39    failure.
40
41  * You are encouraged to document each assertion with a failure() call
42    just before the assert.  The failure() function is a printf-like
43    function whose text is displayed only if the assertion fails.  It
44    can be used to display additional information relevant to the failure:
45
46       failure("The data read from file %s did not match the data written to that file.", filename);
47       assert(strcmp(buff1, buff2) == 0);
48
49  * Tests are encouraged to be economical with their memory and disk usage,
50    though this is not essential.  The test is occasionally run under
51    a memory debugger to try to locate memory leaks in the library;
52    as a result, tests should be careful to release any memory they
53    allocate.
54
55  * Disable tests on specific platforms as necessary.  Please don't
56    use config.h to adjust feature requirements, as I want the tests
57    to also serve as a check on the configure process.  The following
58    form is appropriate:
59
60#if !defined(__PLATFORM) && !defined(__Platform2__)
61    assert(xxxx)
62#endif
63
64