aboutsummaryrefslogtreecommitdiff
path: root/tests/Makemodule.am
blob: 67f56426d52ce0ba0f373ecaf3e0a33c7eb3be26 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
test_canonicalize_name_SOURCES = tests/canonicalize_name.c
test_canonicalize_name_LDADD = libutil.a

test_mknode_simple_SOURCES = tests/mknode_simple.c
test_mknode_simple_LDADD = libfstree.a

test_mknode_slink_SOURCES = tests/mknode_slink.c
test_mknode_slink_LDADD = libfstree.a

test_mknode_reg_SOURCES = tests/mknode_reg.c
test_mknode_reg_LDADD = libfstree.a

test_mknode_dir_SOURCES = tests/mknode_dir.c
test_mknode_dir_LDADD = libfstree.a

test_gen_inode_table_SOURCES = tests/gen_inode_table.c
test_gen_inode_table_LDADD = libfstree.a libutil.a

test_add_by_path_SOURCES = tests/add_by_path.c
test_add_by_path_LDADD = libfstree.a libutil.a

test_get_path_SOURCES = tests/get_path.c
test_get_path_LDADD = libfstree.a libutil.a

test_fstree_sort_SOURCES = tests/fstree_sort.c
test_fstree_sort_LDADD = libfstree.a libutil.a

test_fstree_from_file_SOURCES = tests/fstree_from_file.c
test_fstree_from_file_LDADD = libfstree.a libutil.a

test_fstree_init_SOURCES = tests/fstree_init.c
test_fstree_init_LDADD = libfstree.a libutil.a

test_fstree_xattr_SOURCES = tests/fstree_xattr.c
test_fstree_xattr_LDADD = libfstree.a libutil.a

test_tar_gnu_SOURCES = tests/tar_gnu.c
test_tar_gnu_LDADD = libtar.a libutil.a
test_tar_gnu_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar

test_tar_pax_SOURCES = tests/tar_pax.c
test_tar_pax_LDADD = libtar.a libutil.a
test_tar_pax_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar

test_tar_ustar_SOURCES = tests/tar_ustar.c
test_tar_ustar_LDADD = libtar.a libutil.a
test_tar_ustar_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar

test_tar_sparse_gnu_SOURCES = tests/tar_sparse_gnu.c
test_tar_sparse_gnu_LDADD = libtar.a libutil.a
test_tar_sparse_gnu_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar

test_tar_sparse_gnu1_SOURCES = tests/tar_sparse_gnu1.c
test_tar_sparse_gnu1_LDADD = libtar.a libutil.a
test_tar_sparse_gnu1_CPPFLAGS = $(AM_CPPFLAGS)
test_tar_sparse_gnu1_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/tar

test_tar_sparse_gnu2_SOURCES = tests/tar_sparse_gnu1.c
test_tar_sparse_gnu2_LDADD = libtar.a libutil.a
test_tar_sparse_gnu2_CPPFLAGS = $(AM_CPPFLAGS)
test_tar_sparse_gnu2_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/tar

test_tar_xattr_bsd_SOURCES = tests/tar_xattr_bsd.c
test_tar_xattr_bsd_LDADD = libtar.a libutil.a
test_tar_xattr_bsd_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/tar

test_tar_xattr_schily_SOURCES = tests/tar_xattr_schily.c
test_tar_xattr_schily_LDADD = libtar.a libutil.a
test_tar_xattr_schily_CPPFLAGS = $(AM_CPPFLAGS)
test_tar_xattr_schily_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/tar

test_str_table_SOURCES = tests/str_table.c
test_str_table_LDADD = libutil.a
test_str_table_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests

test_blk_proc_order_SOURCES = tests/blk_proc_order.c
test_blk_proc_order_CPPFLAGS = $(AM_CPPFLAGS)
test_blk_proc_order_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
test_blk_proc_order_LDADD = libcompress.a libutil.a $(ZLIB_LIBS) $(PTHREAD_LIBS)

if HAVE_PTHREAD
test_blk_proc_order_CPPFLAGS += -DHAVE_PTHREAD
endif

check_PROGRAMS += test_canonicalize_name test_mknode_simple test_mknode_slink
check_PROGRAMS += test_mknode_reg test_mknode_dir test_gen_inode_table
check_PROGRAMS += test_add_by_path test_get_path test_fstree_sort
check_PROGRAMS += test_fstree_from_file test_fstree_init test_fstree_xattr
check_PROGRAMS += test_tar_ustar test_tar_pax test_tar_gnu test_tar_sparse_gnu
check_PROGRAMS += test_tar_sparse_gnu1 test_tar_sparse_gnu2
check_PROGRAMS += test_tar_xattr_bsd test_tar_xattr_schily test_str_table
check_PROGRAMS += test_blk_proc_order

TESTS += test_canonicalize_name test_mknode_simple test_mknode_slink
TESTS += test_mknode_reg test_mknode_dir test_gen_inode_table
TESTS += test_add_by_path test_get_path test_fstree_sort test_fstree_from_file
TESTS += test_fstree_init test_fstree_xattr test_tar_ustar test_tar_pax
TESTS += test_tar_gnu test_tar_sparse_gnu test_tar_sparse_gnu1
TESTS += test_tar_sparse_gnu2 test_tar_xattr_bsd test_tar_xattr_schily
TESTS += test_str_table test_blk_proc_order

EXTRA_DIST += $(top_srcdir)/tests/tar $(top_srcdir)/tests/words.txt