aboutsummaryrefslogtreecommitdiff
path: root/tests/Makemodule.am
blob: 2fb765473ea970d4316b90065aa755c93f91defb (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
test_canonicalize_name_SOURCES = tests/canonicalize_name.c
test_canonicalize_name_LDADD = libfstree.a

test_str_table_SOURCES = tests/str_table.c lib/sqfs/str_table.c
test_str_table_SOURCES += lib/sqfs/alloc.c lib/sqfs/util.h
test_str_table_SOURCES += lib/sqfs/str_table.h
test_str_table_LDADD = libcompat.a
test_str_table_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests
test_str_table_CPPFLAGS += -I$(top_srcdir)/lib/sqfs

test_abi_SOURCES = tests/abi.c
test_abi_LDADD = libsquashfs.la

check_PROGRAMS += test_canonicalize_name test_str_table test_abi
TESTS += test_canonicalize_name test_str_table test_abi

if BUILD_TOOLS
test_mknode_simple_SOURCES = tests/mknode_simple.c
test_mknode_simple_LDADD = libfstree.a libcompat.a

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

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

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

test_gen_inode_numbers_SOURCES = tests/gen_inode_numbers.c
test_gen_inode_numbers_LDADD = libfstree.a libcompat.a

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

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

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

test_fstree_from_file_SOURCES = tests/fstree_from_file.c
test_fstree_from_file_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/tests/fstree1.txt
test_fstree_from_file_LDADD = libfstree.a libcompat.a

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

test_tar_gnu_SOURCES = tests/tar_gnu.c
test_tar_gnu_LDADD = libtar.a libcompat.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 libcompat.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 libcompat.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 libcompat.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 libcompat.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 libcompat.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 libcompat.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 libcompat.a
test_tar_xattr_schily_CPPFLAGS = $(AM_CPPFLAGS)
test_tar_xattr_schily_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/tar

test_tar_xattr_schily_bin_SOURCES = tests/tar_xattr_schily_bin.c
test_tar_xattr_schily_bin_LDADD = libtar.a libcompat.a
test_tar_xattr_schily_bin_CPPFLAGS = $(AM_CPPFLAGS)
test_tar_xattr_schily_bin_CPPFLAGS += -DTESTPATH=$(top_srcdir)/tests/tar

fstree_fuzz_SOURCES = tests/fstree_fuzz.c
fstree_fuzz_LDADD = libfstree.a libcompat.a

tar_fuzz_SOURCES = tests/tar_fuzz.c
tar_fuzz_LDADD = libtar.a libcompat.a

check_PROGRAMS += test_mknode_simple test_mknode_slink test_mknode_reg
check_PROGRAMS += test_mknode_dir test_gen_inode_numbers test_add_by_path
check_PROGRAMS += test_get_path test_fstree_sort test_fstree_from_file
check_PROGRAMS += test_fstree_init test_tar_ustar test_tar_pax test_tar_gnu
check_PROGRAMS += test_tar_sparse_gnu test_tar_sparse_gnu1 test_tar_sparse_gnu2
check_PROGRAMS += test_tar_xattr_bsd test_tar_xattr_schily
check_PROGRAMS += test_tar_xattr_schily_bin
check_SCRIPTS += tests/cantrbry.sh tests/test_tar_sqfs.sh

noinst_PROGRAMS += fstree_fuzz tar_fuzz

TESTS += test_mknode_simple test_mknode_slink
TESTS += test_mknode_reg test_mknode_dir test_gen_inode_numbers
TESTS += test_add_by_path test_get_path test_fstree_sort test_fstree_from_file
TESTS += test_fstree_init 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_tar_xattr_schily_bin tests/cantrbry.sh tests/test_tar_sqfs.sh
endif

EXTRA_DIST += $(top_srcdir)/tests/tar $(top_srcdir)/tests/words.txt
EXTRA_DIST += $(top_srcdir)/tests/fstree1.txt
EXTRA_DIST += $(top_srcdir)/tests/corpus/cantrbry.tar.xz
EXTRA_DIST += $(top_srcdir)/tests/corpus/cantrbry.sha512