aboutsummaryrefslogtreecommitdiff
path: root/lib/util/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-29 16:08:38 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-30 14:41:42 +0200
commit7a39921d7fff089c87ac183d3c0d6e42e5cbaa04 (patch)
tree723bce4ebe163fc939919bd877c2919f48d84534 /lib/util/Makemodule.am
parent4390eddccfb3918291e7b8e4d708411f9b828c04 (diff)
Move the pattern matching from gensquashfs to dir_tree_iterator_t
A simple unit test is added that mainly checks for the behavior of recursing into a sub-tree and only matching the children at the end, but not reporting the parents that don't match. The behavior is inteded to immitate the `find` command. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/util/Makemodule.am')
-rw-r--r--lib/util/Makemodule.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/util/Makemodule.am b/lib/util/Makemodule.am
index 37eac93..15c5b88 100644
--- a/lib/util/Makemodule.am
+++ b/lib/util/Makemodule.am
@@ -96,11 +96,16 @@ test_dir_tree_iterator2_LDADD = libutil.a libcompat.a
test_dir_tree_iterator2_CPPFLAGS = $(AM_CPPFLAGS)
test_dir_tree_iterator2_CPPFLAGS += -DTESTPATH=$(top_srcdir)/lib/util/test/testdir
+test_dir_tree_iterator3_SOURCES = lib/util/test/dir_tree_iterator3.c
+test_dir_tree_iterator3_LDADD = libutil.a libcompat.a
+test_dir_tree_iterator3_CPPFLAGS = $(AM_CPPFLAGS)
+test_dir_tree_iterator3_CPPFLAGS += -DTESTPATH=$(top_srcdir)/lib/util/test/testdir
+
LIBUTIL_TESTS = \
test_str_table test_rbtree test_xxhash test_threadpool test_ismemzero \
test_canonicalize_name test_filename_sane test_filename_sane_w32 \
test_sdate_epoch test_hex_decode test_base64_decode test_dir_iterator \
- test_dir_tree_iterator test_dir_tree_iterator2
+ test_dir_tree_iterator test_dir_tree_iterator2 test_dir_tree_iterator3
check_PROGRAMS += $(LIBUTIL_TESTS)
TESTS += $(LIBUTIL_TESTS)