summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-26 09:19:28 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-26 09:20:31 +0200
commitc92a9513c9e21691b36868052c2d9489ab4be87b (patch)
treef80c41c0debc23e66a76cd56b940dcd6d4922381
parente5fa4cdfb0469ed615d0f778b95b0755bfd7c9ca (diff)
Move tar_fuzz program over to tests
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--tar/Makemodule.am4
-rw-r--r--tests/Makemodule.am5
-rw-r--r--tests/tar_fuzz.c (renamed from tar/tar_fuzz.c)0
3 files changed, 4 insertions, 5 deletions
diff --git a/tar/Makemodule.am b/tar/Makemodule.am
index 551f4cd..b8674c2 100644
--- a/tar/Makemodule.am
+++ b/tar/Makemodule.am
@@ -8,8 +8,4 @@ tar2sqfs_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
tar2sqfs_LDADD += $(XZ_LIBS) $(ZLIB_LIBS) $(LZO_LIBS) $(LZ4_LIBS) $(ZSTD_LIBS)
tar2sqfs_LDADD += $(PTHREAD_LIBS)
-tar_fuzz_SOURCES = tar/tar_fuzz.c
-tar_fuzz_LDADD = libtar.a libutil.a
-
bin_PROGRAMS += sqfs2tar tar2sqfs
-noinst_PROGRAMS += tar_fuzz
diff --git a/tests/Makemodule.am b/tests/Makemodule.am
index f84852a..c6ba1d9 100644
--- a/tests/Makemodule.am
+++ b/tests/Makemodule.am
@@ -85,6 +85,9 @@ endif
fstree_fuzz_SOURCES = tests/fstree_fuzz.c
fstree_fuzz_LDADD = libfstree.a libutil.a
+tar_fuzz_SOURCES = tests/tar_fuzz.c
+tar_fuzz_LDADD = libtar.a libutil.a
+
check_PROGRAMS += test_canonicalize_name test_mknode_simple test_mknode_slink
check_PROGRAMS += test_mknode_reg test_mknode_dir test_gen_inode_table
check_PROGRAMS += test_add_by_path test_get_path test_fstree_sort
@@ -94,7 +97,7 @@ check_PROGRAMS += test_tar_sparse_gnu1 test_tar_sparse_gnu2
check_PROGRAMS += test_tar_xattr_bsd test_tar_xattr_schily test_str_table
check_PROGRAMS += test_blk_proc_order
-noinst_PROGRAMS += fstree_fuzz
+noinst_PROGRAMS += fstree_fuzz tar_fuzz
TESTS += test_canonicalize_name test_mknode_simple test_mknode_slink
TESTS += test_mknode_reg test_mknode_dir test_gen_inode_table
diff --git a/tar/tar_fuzz.c b/tests/tar_fuzz.c
index 4dc20f5..4dc20f5 100644
--- a/tar/tar_fuzz.c
+++ b/tests/tar_fuzz.c