Imported Upstream version 1.1.2
[platform/upstream/libzip.git] / regress / Makefile.am
1 AUTOMAKE_OPTIONS=       parallel-tests
2
3 noinst_SCRIPTS=         runtest
4
5 noinst_PROGRAMS= \
6         add_from_filep \
7         fopen_unchanged \
8         fread \
9         tryopen
10
11 pkglib_LTLIBRARIES=     malloc.la
12 malloc_la_SOURCES=      malloc.c
13 malloc_la_LDFLAGS=      -module -avoid-version
14
15 install-pkglibLTLIBRARIES:
16         @echo not installing shared objects needed only for testing
17
18 EXTRA_DIST= \
19         CMakeLists.txt \
20         NiHTest.pm \
21         runtest.in \
22         ${TESTS} \
23         bigstored.zh \
24         bigzero-zip.zip \
25         bogus.zip \
26         broken.zip \
27         cm-default.zip \
28         encrypt-aes.zip \
29         encrypt.zip \
30         encrypt_plus_extra.zip \
31         encrypt_plus_extra_modified_c.zip \
32         encrypt_plus_extra_modified_l.zip \
33         extra_field_align_1-0.zip \
34         extra_field_align_1-ff.zip \
35         extra_field_align_2-0.zip \
36         extra_field_align_2-ff.zip \
37         extra_field_align_3-0.zip \
38         extra_field_align_3-ff.zip \
39         extra_field_align_4-ff.zip \
40         extra_field_align_1-ef_00.zip \
41         extra_field_align_1-ef_ff.zip \
42         extra_field_align_2-ef_00.zip \
43         extra_field_align_2-ef_ff.zip \
44         extra_field_align_3-ef_00.zip \
45         extra_field_align_3-ef_ff.zip \
46         filename_duplicate.zip \
47         filename_duplicate_empty.zip \
48         filename_empty.zip \
49         fileorder.zip \
50         firstsecond.zip \
51         firstsecond-split-deflated.zip \
52         firstsecond-split-stored.zip \
53         foo-stored.zip \
54         incons-archive-comment-longer.zip \
55         incons-archive-comment-shorter.zip \
56         incons-cdoffset.zip \
57         incons-central-compression-method.zip \
58         incons-central-compsize-larger-toolarge.zip \
59         incons-central-compsize-larger.zip \
60         incons-central-compsize-smaller.zip \
61         incons-central-crc.zip \
62         incons-central-date.zip \
63         incons-central-file-comment-longer.zip \
64         incons-central-file-comment-shorter.zip \
65         incons-central-magic-bad.zip \
66         incons-central-magic-bad2.zip \
67         incons-central-size-larger.zip \
68         incons-data.zip \
69         incons-ef-central-size-wrong.zip \
70         incons-ef-local-id-size.zip \
71         incons-ef-local-id.zip \
72         incons-ef-local-size.zip \
73         incons-eocd-magic-bad.zip \
74         incons-file-count-high.zip \
75         incons-file-count-low.zip \
76         incons-file-count-overflow.zip \
77         incons-local-compression-method.zip \
78         incons-local-compsize-larger.zip \
79         incons-local-compsize-smaller.zip \
80         incons-local-crc.zip \
81         incons-local-filename-long.zip \
82         incons-local-filename-missing.zip \
83         incons-local-filename-short.zip \
84         incons-local-filename.zip \
85         incons-local-magic-bad.zip \
86         incons-local-size-larger.zip \
87         large-uncompressable \
88         manyfiles-zip.zip \
89         multidisk.zip \
90         rename_ok.zip \
91         streamed.zip \
92         streamed-zip64.zip \
93         test.zip \
94         test2.zip \
95         test-cp437.zip \
96         test-cp437-comment-utf-8.zip \
97         test-cp437-fc.zip \
98         test-cp437-fc-utf-8-filename.zip \
99         test-utf8.zip \
100         test-utf8-unmarked.zip \
101         testbuffer.zip \
102         testdir.zip \
103         testchanged.zip \
104         testchangedlocal.zip \
105         testcomment.zip \
106         testcomment13.zip \
107         testcommentremoved.zip \
108         testdeflated.zip \
109         testdeflated2.zip \
110         testempty.zip \
111         testextrabytes.zip \
112         testfile.txt \
113         testfile.zip \
114         testfile-cp437.zip \
115         testfile-plus-extra.zip \
116         testfile-UTF8.zip \
117         testfile2014.zip \
118         teststdin.zip \
119         teststored.zip \
120         utf-8-standardization-input.zip \
121         utf-8-standardization-output.zip \
122         zip-in-archive-comment.zip \
123         zip64.zip \
124         zip64-3mf.zip
125
126 TESTS_ENVIRONMENT=      ZIPCMP=${top_builddir}/src/zipcmp
127 # ${srcdir}/runtest
128 #LOG_COMPILER=  ${srcdir}/runtest
129 TEST_EXTENSIONS= .test
130 TEST_LOG_COMPILER= ${builddir}/runtest
131 #AM_TEST_LOG_FLAGS = -s
132
133 TESTS= \
134         add_dir.test \
135         add_from_buffer.test \
136         add_from_file.test \
137         add_from_file_duplicate.test \
138         add_from_file_twice_duplicate.test \
139         add_from_filep.test \
140         add_from_stdin.test \
141         add_from_zip_closed.test \
142         add_from_zip_deflated.test \
143         add_from_zip_deflated2.test \
144         add_from_zip_partial_deflated.test \
145         add_from_zip_partial_stored.test \
146         add_from_zip_stored.test \
147         add_stored.test \
148         add_stored_in_memory.test \
149         count_entries.test \
150         decrypt-aes-correct-password.test \
151         decrypt-aes-wrong-password.test \
152         decrypt-correct-password.test \
153         decrypt-wrong-password.test \
154         delete_add_same.test \
155         delete_invalid.test \
156         delete_last.test \
157         delete_multiple_last.test \
158         delete_multiple_partial.test \
159         delete_renamed_rename.test \
160         encrypt.test \
161         extra_add.test \
162         extra_add_multiple.test \
163         extra_count.test \
164         extra_count_by_id.test \
165         extra_count_ignore_zip64.test \
166         extra_delete.test \
167         extra_delete_by_id.test \
168         extra_field_align.test \
169         extra_get.test \
170         extra_get_by_id.test \
171         extra_set.test \
172         extra_set_modify_c.test \
173         extra_set_modify_l.test \
174         file_comment_encmismatch.test \
175         fopen_unchanged.test \
176         fread.test \
177         get_comment.test \
178         name_locate.test \
179         open_cons_extrabytes.test \
180         open_empty.test \
181         open_empty_2.test \
182         open_extrabytes.test \
183         open_file_count.test \
184         open_filename_duplicate.test \
185         open_filename_duplicate_consistency.test \
186         open_filename_duplicate_empty.test \
187         open_filename_duplicate_empty_consistency.test \
188         open_filename_empty.test \
189         open_incons.test \
190         open_many_ok.test \
191         open_multidisk.test \
192         open_new_but_exists.test \
193         open_new_ok.test \
194         open_nonarchive.test \
195         open_nosuchfile.test \
196         open_ok.test \
197         open_too_short.test \
198         open_truncate.test \
199         open_zip64_3mf.test \
200         open_zip64_ok.test \
201         rename_ascii.test \
202         rename_cp437.test \
203         rename_deleted.test \
204         rename_fail.test \
205         rename_ok.test \
206         rename_utf8.test \
207         rename_utf8_encmismatch.test \
208         set_comment_all.test \
209         set_comment_localonly.test \
210         set_comment_removeglobal.test \
211         set_comment_revert.test \
212         set_compression_deflate_to_deflate.test \
213         set_compression_deflate_to_store.test \
214         set_compression_store_to_deflate.test \
215         set_compression_store_to_store.test \
216         set_compression_unknown.test \
217         stat_index_cp437_guess.test \
218         stat_index_cp437_raw.test \
219         stat_index_cp437_strict.test \
220         stat_index_fileorder.test \
221         stat_index_streamed.test \
222         stat_index_streamed_zip64.test \
223         stat_index_utf8_guess.test \
224         stat_index_utf8_raw.test \
225         stat_index_utf8_strict.test \
226         stat_index_utf8_unmarked_strict.test \
227         stat_index_zip64.test \
228         utf-8-standardization.test \
229         zip-in-archive-comment.test \
230         zip64_creation.test \
231         zip64_stored_creation.test
232
233 #XFAIL_TESTS=
234
235
236 AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib -I${top_srcdir}/src
237 LDADD=${top_builddir}/lib/libzip.la
238
239 check-am: bigzero.zip manyfiles.zip runtest
240
241 bigzero.zip: bigzero-zip.zip
242         ${top_builddir}/src/ziptool ${srcdir}/bigzero-zip.zip cat 0 > ${builddir}/bigzero.zip
243
244 manyfiles.zip: manyfiles-zip.zip
245         ${top_builddir}/src/ziptool ${srcdir}/manyfiles-zip.zip cat 0 > ${builddir}/manyfiles.zip
246
247 runtest: runtest.in
248         sed -e 's!@[s]rcdir@!${srcdir}!g' -e 's!@[a]bs_srcdir@!${abs_srcdir}!g' ${srcdir}/runtest.in > runtest
249         chmod +x runtest
250
251 cleanup:
252         rm -rf ${builddir}/sandbox-*.d[0-9]*/
253
254 CLEANFILES=bigzero.zip manyfiles.zip runtest