diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-02-12 12:28:40 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-02-12 12:28:40 +0100 |
commit | b635c78530d5d7f27f9805790c1f7ca227959177 (patch) | |
tree | 9581e10402219bcae6009c81087a9f525e8cece3 /lib/tar/Makemodule.am | |
parent | 9a7a07d047b6baffb095f16074402630fe2f0270 (diff) |
libtar: Add a test for the tar writing code
Generate a simple tarball and compare it with a reference.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/tar/Makemodule.am')
-rw-r--r-- | lib/tar/Makemodule.am | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/tar/Makemodule.am b/lib/tar/Makemodule.am index 9faeecf..07eb497 100644 --- a/lib/tar/Makemodule.am +++ b/lib/tar/Makemodule.am @@ -179,6 +179,11 @@ test_tar_istream3_CPPFLAGS += -DTESTFILE=istream/sparse.tar tar_fuzz_SOURCES = lib/tar/test/tar_fuzz.c tar_fuzz_LDADD = libtar.a libio.a libutil.a libcompat.a +test_tar_write_simple_SOURCES = lib/tar/test/tar_write_simple.c +test_tar_write_simple_LDADD = libtar.a libio.a libutil.a libcompat.a +test_tar_write_simple_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(TARDATADIR) +test_tar_write_simple_CPPFLAGS += -DTESTFILE=write/simple.tar + LIBTAR_TESTS = \ test_tar_ustar0 test_tar_ustar1 test_tar_ustar2 test_tar_ustar3 \ test_tar_ustar4 test_tar_ustar5 test_tar_ustar6 \ @@ -190,7 +195,8 @@ LIBTAR_TESTS = \ test_tar_sparse_gnu2 test_tar_sparse_gnu3 \ test_tar_xattr_bsd test_tar_xattr_schily test_tar_xattr_schily_bin \ test_tar_target_filled \ - test_tar_istream test_tar_istream2 test_tar_istream3 + test_tar_istream test_tar_istream2 test_tar_istream3 \ + test_tar_write_simple check_PROGRAMS += $(LIBTAR_TESTS) TESTS += $(LIBTAR_TESTS) |