From 27dfe8bf61a40e6b1a7f736119bf21037eaea2b9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 22 Oct 2021 12:46:49 +0200 Subject: Add a unit test for the SOURCE_DATE_EPOCH logic Signed-off-by: David Oberhollenzer --- tests/libfstree/Makemodule.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/libfstree/Makemodule.am') diff --git a/tests/libfstree/Makemodule.am b/tests/libfstree/Makemodule.am index 022b8e4..d589026 100644 --- a/tests/libfstree/Makemodule.am +++ b/tests/libfstree/Makemodule.am @@ -57,6 +57,10 @@ test_filename_sane_w32_SOURCES += lib/fstree/filename_sane.c test_filename_sane_w32_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_WIN32=1 test_filename_sane_w32_LDADD = libcompat.a +test_fstree_epoch_SOURCES = tests/libfstree/epoch.c +test_fstree_epoch_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/lib/fstree +test_fstree_epoch_SOURCES += lib/fstree/source_date_epoch.c + fstree_fuzz_SOURCES = tests/libfstree/fstree_fuzz.c fstree_fuzz_LDADD = libfstree.a libfstream.a libcompat.a @@ -65,7 +69,7 @@ FSTREE_TESTS = \ test_mknode_reg test_mknode_dir test_gen_inode_numbers \ test_add_by_path test_get_path test_fstree_sort test_fstree_from_file \ test_fstree_init test_filename_sane test_filename_sane_w32 \ - test_fstree_from_dir test_fstree_glob1 + test_fstree_from_dir test_fstree_glob1 test_fstree_epoch if BUILD_TOOLS check_PROGRAMS += $(FSTREE_TESTS) -- cgit v1.2.3