summaryrefslogtreecommitdiff
path: root/tests/libfstree/Makemodule.am
blob: d5890263b502f605c4ca444bb8f25c81cb4d6d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
FSTDATADIR=$(top_srcdir)/tests/libfstree

test_canonicalize_name_SOURCES = tests/libfstree/canonicalize_name.c
test_canonicalize_name_SOURCES += tests/test.h
test_canonicalize_name_LDADD = libfstree.a libcompat.a

test_mknode_simple_SOURCES = tests/libfstree/mknode_simple.c tests/test.h
test_mknode_simple_LDADD = libfstree.a libcompat.a

test_mknode_slink_SOURCES = tests/libfstree/mknode_slink.c tests/test.h
test_mknode_slink_LDADD = libfstree.a libcompat.a

test_mknode_reg_SOURCES = tests/libfstree/mknode_reg.c tests/test.h
test_mknode_reg_LDADD = libfstree.a libcompat.a

test_mknode_dir_SOURCES = tests/libfstree/mknode_dir.c tests/test.h
test_mknode_dir_LDADD = libfstree.a libcompat.a

test_gen_inode_numbers_SOURCES = tests/libfstree/gen_inode_numbers.c
test_gen_inode_numbers_SOURCES += tests/test.h
test_gen_inode_numbers_LDADD = libfstree.a libcompat.a

test_add_by_path_SOURCES = tests/libfstree/add_by_path.c tests/test.h
test_add_by_path_LDADD = libfstree.a libcompat.a

test_get_path_SOURCES = tests/libfstree/get_path.c tests/test.h
test_get_path_LDADD = libfstree.a libcompat.a

test_fstree_sort_SOURCES = tests/libfstree/fstree_sort.c tests/test.h
test_fstree_sort_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/lib/fstree
test_fstree_sort_LDADD = libfstree.a libfstream.a libcompat.a

test_fstree_from_file_SOURCES = tests/libfstree/fstree_from_file.c tests/test.h
test_fstree_from_file_CPPFLAGS = $(AM_CPPFLAGS)
test_fstree_from_file_CPPFLAGS += -DTESTPATH=$(FSTDATADIR)/fstree1.txt
test_fstree_from_file_LDADD = libfstree.a libfstream.a libcompat.a

test_fstree_glob1_SOURCES = tests/libfstree/fstree_glob1.c tests/test.h
test_fstree_glob1_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(FSTDATADIR)
test_fstree_glob1_LDADD = libfstree.a libfstream.a libcompat.a

test_fstree_from_dir_SOURCES = tests/libfstree/fstree_from_dir.c tests/test.h
test_fstree_from_dir_CPPFLAGS = $(AM_CPPFLAGS)
test_fstree_from_dir_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/libtar/data
test_fstree_from_dir_LDADD = libfstree.a libcompat.a

test_fstree_init_SOURCES = tests/libfstree/fstree_init.c tests/test.h
test_fstree_init_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/lib/fstree
test_fstree_init_LDADD = libfstree.a libfstream.a libcompat.a

test_filename_sane_SOURCES = tests/libfstree/filename_sane.c
test_filename_sane_SOURCES += lib/fstree/filename_sane.c
test_filename_sane_LDADD = libcompat.a

test_filename_sane_w32_SOURCES = tests/libfstree/filename_sane.c
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

FSTREE_TESTS = \
	test_canonicalize_name test_mknode_simple test_mknode_slink \
	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_epoch

if BUILD_TOOLS
check_PROGRAMS += $(FSTREE_TESTS)
noinst_PROGRAMS += fstree_fuzz

TESTS += $(FSTREE_TESTS)
endif

EXTRA_DIST += $(FSTDATADIR)/fstree1.txt
EXTRA_DIST += $(FSTDATADIR)/fstree_glob1.txt $(FSTDATADIR)/fstree_glob2.txt
EXTRA_DIST += $(FSTDATADIR)/fstree_glob3.txt