summaryrefslogtreecommitdiff
path: root/tests/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 17:01:11 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 17:01:11 +0100
commit687b880ddb0d67253d8903f92910a1ca3bea65ef (patch)
tree7f2ab41aff608be87a45136d2ad181ef63442ab9 /tests/Makemodule.am
parent650b607f339cd0ffa32e205e4501ec3fcfa88fbf (diff)
Make sure the unit tests build with the mingw cross compiler
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/Makemodule.am')
-rw-r--r--tests/Makemodule.am40
1 files changed, 21 insertions, 19 deletions
diff --git a/tests/Makemodule.am b/tests/Makemodule.am
index 34b0238..93f286d 100644
--- a/tests/Makemodule.am
+++ b/tests/Makemodule.am
@@ -2,7 +2,7 @@ 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_LDADD = libutil.la libcompat.a
test_str_table_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests
test_abi_SOURCES = tests/abi.c
@@ -13,67 +13,68 @@ 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
+test_mknode_simple_LDADD = libfstree.a libcompat.a
test_mknode_slink_SOURCES = tests/mknode_slink.c
-test_mknode_slink_LDADD = libfstree.a
+test_mknode_slink_LDADD = libfstree.a libcompat.a
test_mknode_reg_SOURCES = tests/mknode_reg.c
-test_mknode_reg_LDADD = libfstree.a
+test_mknode_reg_LDADD = libfstree.a libcompat.a
test_mknode_dir_SOURCES = tests/mknode_dir.c
-test_mknode_dir_LDADD = libfstree.a
+test_mknode_dir_LDADD = libfstree.a libcompat.a
test_gen_inode_table_SOURCES = tests/gen_inode_table.c
-test_gen_inode_table_LDADD = libfstree.a libutil.la
+test_gen_inode_table_LDADD = libfstree.a libutil.la libcompat.a
test_add_by_path_SOURCES = tests/add_by_path.c
-test_add_by_path_LDADD = libfstree.a libutil.la
+test_add_by_path_LDADD = libfstree.a libutil.la libcompat.a
test_get_path_SOURCES = tests/get_path.c
-test_get_path_LDADD = libfstree.a libutil.la
+test_get_path_LDADD = libfstree.a libutil.la libcompat.a
test_fstree_sort_SOURCES = tests/fstree_sort.c
-test_fstree_sort_LDADD = libfstree.a libutil.la
+test_fstree_sort_LDADD = libfstree.a libutil.la libcompat.a
test_fstree_from_file_SOURCES = tests/fstree_from_file.c
-test_fstree_from_file_LDADD = libfstree.a libutil.la
+test_fstree_from_file_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/fstree1.txt
+test_fstree_from_file_LDADD = libfstree.a libutil.la libcompat.a
test_fstree_init_SOURCES = tests/fstree_init.c
-test_fstree_init_LDADD = libfstree.a libutil.la
+test_fstree_init_LDADD = libfstree.a libutil.la libcompat.a
test_tar_gnu_SOURCES = tests/tar_gnu.c
-test_tar_gnu_LDADD = libtar.a libutil.la
+test_tar_gnu_LDADD = libtar.a libcompat.a libutil.la
test_tar_gnu_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar
test_tar_pax_SOURCES = tests/tar_pax.c
-test_tar_pax_LDADD = libtar.a libutil.la
+test_tar_pax_LDADD = libtar.a libcompat.a libutil.la
test_tar_pax_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar
test_tar_ustar_SOURCES = tests/tar_ustar.c
-test_tar_ustar_LDADD = libtar.a libutil.la
+test_tar_ustar_LDADD = libtar.a libcompat.a libutil.la
test_tar_ustar_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar
test_tar_sparse_gnu_SOURCES = tests/tar_sparse_gnu.c
-test_tar_sparse_gnu_LDADD = libtar.a libutil.la
+test_tar_sparse_gnu_LDADD = libtar.a libcompat.a libutil.la
test_tar_sparse_gnu_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar
test_tar_sparse_gnu1_SOURCES = tests/tar_sparse_gnu1.c
-test_tar_sparse_gnu1_LDADD = libtar.a libutil.la
+test_tar_sparse_gnu1_LDADD = libtar.a libcompat.a libutil.la
test_tar_sparse_gnu1_CPPFLAGS = $(AM_CPPFLAGS)
test_tar_sparse_gnu1_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/tar
test_tar_sparse_gnu2_SOURCES = tests/tar_sparse_gnu1.c
-test_tar_sparse_gnu2_LDADD = libtar.a libutil.la
+test_tar_sparse_gnu2_LDADD = libtar.a libcompat.a libutil.la
test_tar_sparse_gnu2_CPPFLAGS = $(AM_CPPFLAGS)
test_tar_sparse_gnu2_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/tar
test_tar_xattr_bsd_SOURCES = tests/tar_xattr_bsd.c
-test_tar_xattr_bsd_LDADD = libtar.a libutil.la
+test_tar_xattr_bsd_LDADD = libtar.a libcompat.a libutil.la
test_tar_xattr_bsd_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar
test_tar_xattr_schily_SOURCES = tests/tar_xattr_schily.c
-test_tar_xattr_schily_LDADD = libtar.a libutil.la
+test_tar_xattr_schily_LDADD = libtar.a libcompat.a libutil.la
test_tar_xattr_schily_CPPFLAGS = $(AM_CPPFLAGS)
test_tar_xattr_schily_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/tar
@@ -101,3 +102,4 @@ TESTS += test_tar_sparse_gnu2 test_tar_xattr_bsd test_tar_xattr_schily
endif
EXTRA_DIST += $(top_srcdir)/tests/tar $(top_srcdir)/tests/words.txt
+EXTRA_DIST += $(top_srcdir)/tests/fstree1.txt