aboutsummaryrefslogtreecommitdiff
path: root/tests/gensquashfs/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-11-16 10:45:30 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-11-16 15:06:52 +0100
commit0f68ca18f491b4e53cec788b327a752cbeb43377 (patch)
treeefdbc4e3628124e0260405439841d14333523ddd /tests/gensquashfs/Makemodule.am
parentdfba31880be3d3cc5d56707cd05ab306149392e2 (diff)
filemap xattr: Add a test case
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/gensquashfs/Makemodule.am')
-rw-r--r--tests/gensquashfs/Makemodule.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/gensquashfs/Makemodule.am b/tests/gensquashfs/Makemodule.am
new file mode 100644
index 0000000..a20e6ef
--- /dev/null
+++ b/tests/gensquashfs/Makemodule.am
@@ -0,0 +1,20 @@
+GENDATADIR=$(top_srcdir)/tests/gensquashfs
+
+test_filemap_xattr_SOURCES = tests/gensquashfs/filemap_xattr.c \
+ bin/gensquashfs/filemap_xattr.c \
+ bin/gensquashfs/mkfs.h
+test_filemap_xattr_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/bin/gensquashfs
+test_filemap_xattr_CPPFLAGS += -DTESTPATH=$(GENDATADIR)/xattr1.txt
+test_filemap_xattr_LDADD = libsquashfs.la libfstree.a libutil.a
+test_filemap_xattr_LDADD += libio.a libcompat.a
+
+GENSQUASHFS_TESTS = \
+ test_filemap_xattr
+
+if BUILD_TOOLS
+check_PROGRAMS += $(GENSQUASHFS_TESTS)
+TESTS += $(GENSQUASHFS_TESTS)
+endif
+
+EXTRA_DIST += $(GENDATADIR)/xattr1.txt
+