From cdf61c556f95b0fc8a8ecf187d9f61e60bf99c53 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 1 Sep 2023 14:29:28 +0200 Subject: gensquashfs: add a test for fstree_from_dir file source path Signed-off-by: David Oberhollenzer --- bin/gensquashfs/Makemodule.am | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bin/gensquashfs/Makemodule.am') diff --git a/bin/gensquashfs/Makemodule.am b/bin/gensquashfs/Makemodule.am index dd32d5a..5246abf 100644 --- a/bin/gensquashfs/Makemodule.am +++ b/bin/gensquashfs/Makemodule.am @@ -38,6 +38,16 @@ test_fstree_from_file_CPPFLAGS += -I$(top_srcdir)/bin/gensquashfs/src test_fstree_from_file_LDADD = libio.a libsquashfs.la libcommon.a libfstree.a \ libutil.a libcompat.a +test_fstree_from_file2_SOURCES = bin/gensquashfs/test/fstree_from_file2.c \ + bin/gensquashfs/src/fstree_from_file.c \ + bin/gensquashfs/src/fstree_from_dir.c \ + bin/gensquashfs/src/glob.c \ + bin/gensquashfs/src/mkfs.h +test_fstree_from_file2_CPPFLAGS = $(AM_CPPFLAGS) +test_fstree_from_file2_CPPFLAGS += -I$(top_srcdir)/bin/gensquashfs/src +test_fstree_from_file2_LDADD = libio.a libsquashfs.la libcommon.a libfstree.a \ + libutil.a libcompat.a + test_fstree_glob1_SOURCES = bin/gensquashfs/test/fstree_glob1.c \ bin/gensquashfs/src/fstree_from_file.c \ bin/gensquashfs/src/fstree_from_dir.c \ @@ -68,7 +78,7 @@ fstree_fuzz_LDADD = libio.a libsquashfs.la libcommon.a libfstree.a \ libutil.a libcompat.a GENSQUASHFS_TESTS = \ - test_filemap_xattr test_fstree_from_file \ + test_filemap_xattr test_fstree_from_file test_fstree_from_file2 \ test_fstree_glob1 test_sort_file noinst_PROGRAMS += fstree_fuzz -- cgit v1.2.3