aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makemodule.am36
1 files changed, 19 insertions, 17 deletions
diff --git a/tests/Makemodule.am b/tests/Makemodule.am
index 8a2241f..45565bb 100644
--- a/tests/Makemodule.am
+++ b/tests/Makemodule.am
@@ -1,6 +1,17 @@
test_canonicalize_name_SOURCES = tests/canonicalize_name.c
test_canonicalize_name_LDADD = libutil.la
+test_str_table_SOURCES = tests/str_table.c
+test_str_table_LDADD = libutil.la
+test_str_table_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests
+
+test_abi_SOURCES = tests/abi.c
+test_abi_LDADD = libsquashfs.la
+
+check_PROGRAMS += test_canonicalize_name test_str_table test_abi
+TESTS += test_canonicalize_name test_str_table test_abi
+
+if BUILD_TOOLS
test_mknode_simple_SOURCES = tests/mknode_simple.c
test_mknode_simple_LDADD = libfstree.a
@@ -66,36 +77,27 @@ test_tar_xattr_schily_LDADD = libtar.a libutil.la
test_tar_xattr_schily_CPPFLAGS = $(AM_CPPFLAGS)
test_tar_xattr_schily_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/tar
-test_str_table_SOURCES = tests/str_table.c
-test_str_table_LDADD = libutil.la
-test_str_table_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests
-
-test_abi_SOURCES = tests/abi.c
-test_abi_LDADD = libsquashfs.la
-
fstree_fuzz_SOURCES = tests/fstree_fuzz.c
fstree_fuzz_LDADD = libfstree.a libutil.la
tar_fuzz_SOURCES = tests/tar_fuzz.c
tar_fuzz_LDADD = libtar.a libutil.la
-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
-check_PROGRAMS += test_fstree_from_file test_fstree_init
-check_PROGRAMS += test_tar_ustar test_tar_pax test_tar_gnu test_tar_sparse_gnu
-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_abi
+check_PROGRAMS += test_mknode_simple test_mknode_slink test_mknode_reg
+check_PROGRAMS += test_mknode_dir test_gen_inode_table test_add_by_path
+check_PROGRAMS += test_get_path test_fstree_sort test_fstree_from_file
+check_PROGRAMS += test_fstree_init test_tar_ustar test_tar_pax test_tar_gnu
+check_PROGRAMS += test_tar_sparse_gnu test_tar_sparse_gnu1 test_tar_sparse_gnu2
+check_PROGRAMS += test_tar_xattr_bsd test_tar_xattr_schily
noinst_PROGRAMS += fstree_fuzz tar_fuzz
-TESTS += test_canonicalize_name test_mknode_simple test_mknode_slink
+TESTS += test_mknode_simple test_mknode_slink
TESTS += test_mknode_reg test_mknode_dir test_gen_inode_table
TESTS += test_add_by_path test_get_path test_fstree_sort test_fstree_from_file
TESTS += test_fstree_init test_tar_ustar test_tar_pax
TESTS += test_tar_gnu test_tar_sparse_gnu test_tar_sparse_gnu1
TESTS += test_tar_sparse_gnu2 test_tar_xattr_bsd test_tar_xattr_schily
-TESTS += test_str_table test_abi
+endif
EXTRA_DIST += $(top_srcdir)/tests/tar $(top_srcdir)/tests/words.txt