libsodium 1.0.8
[tomato.git] / release / src / router / libsodium / test / default / Makefile.am
blob9c24295e663f730ec2f8815d3bd3094fdec67b0d
2 EXTRA_DIST = \
3         cmptest.h \
4         wintest.bat \
5         pre.js.inc \
6         aead_aes256gcm.exp \
7         aead_chacha20poly1305.exp \
8         auth.exp \
9         auth2.exp \
10         auth3.exp \
11         auth5.exp \
12         auth6.exp \
13         auth7.exp \
14         box.exp \
15         box2.exp \
16         box7.exp \
17         box8.exp \
18         box_easy.exp \
19         box_easy2.exp \
20         box_seal.exp \
21         box_seed.exp \
22         chacha20.exp \
23         core1.exp \
24         core2.exp \
25         core3.exp \
26         core4.exp \
27         core5.exp \
28         core6.exp \
29         ed25519_convert.exp \
30         generichash.exp \
31         generichash2.exp \
32         generichash3.exp \
33         hash.exp \
34         hash2.exp \
35         hash3.exp \
36         onetimeauth.exp \
37         onetimeauth2.exp \
38         onetimeauth7.exp \
39         pwhash.exp \
40         pwhash_scrypt_ll.exp \
41         randombytes.exp \
42         scalarmult.exp \
43         scalarmult2.exp \
44         scalarmult5.exp \
45         scalarmult6.exp \
46         scalarmult7.exp \
47         secretbox.exp \
48         secretbox2.exp \
49         secretbox7.exp \
50         secretbox8.exp \
51         secretbox_easy.exp \
52         secretbox_easy2.exp \
53         shorthash.exp \
54         sign.exp \
55         sodium_core.exp \
56         sodium_utils.exp \
57         sodium_utils2.exp \
58         sodium_utils3.exp \
59         sodium_version.exp \
60         stream.exp \
61         stream2.exp \
62         stream3.exp \
63         stream4.exp \
64         verify1.exp
66 DISTCLEANFILES = \
67         aead_aes256gcm.res \
68         aead_chacha20poly1305.res \
69         auth.res \
70         auth2.res \
71         auth3.res \
72         auth5.res \
73         auth6.res \
74         auth7.res \
75         box.res \
76         box2.res \
77         box7.res \
78         box8.res \
79         box_easy.res \
80         box_easy2.res \
81         box_seal.res \
82         box_seed.res \
83         chacha20.res \
84         core1.res \
85         core2.res \
86         core3.res \
87         core4.res \
88         core5.res \
89         core6.res \
90         ed25519_convert.res \
91         generichash.res \
92         generichash2.res \
93         generichash3.res \
94         hash.res \
95         hash2.res \
96         hash3.res \
97         onetimeauth.res \
98         onetimeauth2.res \
99         onetimeauth7.res \
100         pwhash.res \
101         pwhash_scrypt_ll.res \
102         randombytes.res \
103         scalarmult.res \
104         scalarmult2.res \
105         scalarmult5.res \
106         scalarmult6.res \
107         scalarmult7.res \
108         secretbox.res \
109         secretbox2.res \
110         secretbox7.res \
111         secretbox8.res \
112         secretbox_easy.res \
113         secretbox_easy2.res \
114         shorthash.res \
115         sign.res \
116         sodium_core.res \
117         sodium_utils.res \
118         sodium_utils2.res \
119         sodium_utils3.res \
120         sodium_version.res \
121         stream.res \
122         stream2.res \
123         stream3.res \
124         stream4.res \
125         verify1.res
127 if NATIVECLIENT
128 CLEANFILES = \
129         aead_aes256gcm.final \
130         aead_chacha20poly1305.final \
131         auth.final \
132         auth2.final \
133         auth3.final \
134         auth5.final \
135         auth6.final \
136         auth7.final \
137         box.final \
138         box2.final \
139         box7.final \
140         box8.final \
141         box_easy.final \
142         box_easy2.final \
143         box_seal.final \
144         box_seed.final \
145         chacha20.final \
146         core1.final \
147         core2.final \
148         core3.final \
149         core4.final \
150         core5.final \
151         core6.final \
152         ed25519_convert.final \
153         generichash.final \
154         generichash2.final \
155         generichash3.final \
156         hash.final \
157         hash2.final \
158         hash3.final \
159         onetimeauth.final \
160         onetimeauth2.final \
161         onetimeauth7.final \
162         pwhash.final \
163         pwhash_scrypt_ll.final \
164         randombytes.final \
165         scalarmult.final \
166         scalarmult2.final \
167         scalarmult5.final \
168         scalarmult6.final \
169         scalarmult7.final \
170         secretbox.final \
171         secretbox2.final \
172         secretbox7.final \
173         secretbox8.final \
174         secretbox_easy.final \
175         secretbox_easy2.final \
176         shorthash.final \
177         sign.final \
178         sodium_core.final \
179         sodium_utils.final \
180         sodium_version.final \
181         stream.final \
182         stream2.final \
183         stream3.final \
184         stream4.final \
185         verify1.final \
186         aead_aes256gcm.nexe \
187         aead_chacha20poly1305.nexe \
188         auth.nexe \
189         auth2.nexe \
190         auth3.nexe \
191         auth5.nexe \
192         auth6.nexe \
193         auth7.nexe \
194         box.nexe \
195         box2.nexe \
196         box7.nexe \
197         box8.nexe \
198         box_easy.nexe \
199         box_easy2.nexe \
200         box_seal.nexe \
201         box_seed.nexe \
202         chacha20.nexe \
203         core1.nexe \
204         core2.nexe \
205         core3.nexe \
206         core4.nexe \
207         core5.nexe \
208         core6.nexe \
209         ed25519_convert.nexe \
210         generichash.nexe \
211         generichash2.nexe \
212         generichash3.nexe \
213         hash.nexe \
214         hash2.nexe \
215         hash3.nexe \
216         onetimeauth.nexe \
217         onetimeauth2.nexe \
218         onetimeauth7.nexe \
219         pwhash.nexe \
220         pwhash_scrypt_ll.nexe \
221         randombytes.nexe \
222         scalarmult.nexe \
223         scalarmult2.nexe \
224         scalarmult5.nexe \
225         scalarmult6.nexe \
226         scalarmult7.nexe \
227         secretbox.nexe \
228         secretbox2.nexe \
229         secretbox7.nexe \
230         secretbox8.nexe \
231         secretbox_easy.nexe \
232         secretbox_easy2.nexe \
233         shorthash.nexe \
234         sign.nexe \
235         sodium_core.nexe \
236         sodium_utils.nexe \
237         sodium_version.nexe \
238         stream.nexe \
239         stream2.nexe \
240         stream3.nexe \
241         stream4.nexe \
242         verify1.nexe
243 endif
245 AM_CPPFLAGS = \
246         -DTEST_SRCDIR=\"@srcdir@\" \
247         -I$(top_srcdir)/src/libsodium/include \
248         -I$(top_srcdir)/src/libsodium/include/sodium \
249         -I$(top_builddir)/src/libsodium/include \
250         -I$(top_builddir)/src/libsodium/include/sodium \
251         -I$(top_srcdir)/test/quirks
253 AM_LDFLAGS = @TEST_LDFLAGS@
255 TESTS_TARGETS = \
256         aead_aes256gcm \
257         aead_chacha20poly1305 \
258         auth \
259         auth2 \
260         auth3 \
261         auth5 \
262         auth6 \
263         auth7 \
264         box \
265         box2 \
266         box7 \
267         box8 \
268         box_easy \
269         box_easy2 \
270         box_seal \
271         box_seed \
272         chacha20 \
273         core1 \
274         core2 \
275         core3 \
276         core4 \
277         core5 \
278         core6 \
279         ed25519_convert \
280         generichash \
281         generichash2 \
282         generichash3 \
283         hash \
284         hash3 \
285         onetimeauth \
286         onetimeauth2 \
287         onetimeauth7 \
288         pwhash \
289         pwhash_scrypt_ll \
290         randombytes \
291         scalarmult \
292         scalarmult2 \
293         scalarmult5 \
294         scalarmult6 \
295         scalarmult7 \
296         secretbox \
297         secretbox2 \
298         secretbox7 \
299         secretbox8 \
300         secretbox_easy \
301         secretbox_easy2 \
302         shorthash \
303         sign \
304         sodium_core \
305         sodium_utils \
306         sodium_version \
307         stream \
308         stream2 \
309         stream3 \
310         stream4 \
311         verify1
313 if !EMSCRIPTEN
314 if !NATIVECLIENT
315 TESTS_TARGETS += \
316         sodium_utils2 \
317         sodium_utils3
318 endif
319 endif
321 check_PROGRAMS = $(TESTS_TARGETS)
323 TESTS = $(TESTS_TARGETS)
325 TESTS_LDADD = \
326         ${top_builddir}/src/libsodium/libsodium.la
328 aead_aes256gcm_SOURCE                 = cmptest.h aead_aes256gcm.c
329 aead_aes256gcm_LDADD                  = $(TESTS_LDADD)
331 aead_chacha20poly1305_SOURCE          = cmptest.h aead_chacha20poly1305.c
332 aead_chacha20poly1305_LDADD           = $(TESTS_LDADD)
334 auth_SOURCE               = cmptest.h auth.c
335 auth_LDADD                = $(TESTS_LDADD)
337 auth2_SOURCE              = cmptest.h auth2.c
338 auth2_LDADD               = $(TESTS_LDADD)
340 auth3_SOURCE              = cmptest.h auth3.c
341 auth3_LDADD               = $(TESTS_LDADD)
343 auth5_SOURCE              = cmptest.h auth5.c quirks.h
344 auth5_LDADD               = $(TESTS_LDADD)
346 auth6_SOURCE              = cmptest.h auth6.c quirks.h
347 auth6_LDADD               = $(TESTS_LDADD)
349 auth7_SOURCE              = cmptest.h auth7.c quirks.h
350 auth7_LDADD               = $(TESTS_LDADD)
352 box_SOURCE                = cmptest.h box.c
353 box_LDADD                 = $(TESTS_LDADD)
355 box2_SOURCE               = cmptest.h box2.c
356 box2_LDADD                = $(TESTS_LDADD)
358 box7_SOURCE               = cmptest.h box7.c
359 box7_LDADD                = $(TESTS_LDADD)
361 box8_SOURCE               = cmptest.h box8.c
362 box8_LDADD                = $(TESTS_LDADD)
364 box_easy_SOURCE           = cmptest.h box_easy.c
365 box_easy_LDADD            = $(TESTS_LDADD)
367 box_easy2_SOURCE          = cmptest.h box_easy2.c
368 box_easy2_LDADD           = $(TESTS_LDADD)
370 box_seal_SOURCE           = cmptest.h box_seal.c
371 box_seal_LDADD            = $(TESTS_LDADD)
373 box_seed_SOURCE           = cmptest.h box_seed.c
374 box_seed_LDADD            = $(TESTS_LDADD)
376 chacha20_SOURCE           = cmptest.h chacha20.c
377 chacha20_LDADD            = $(TESTS_LDADD)
379 core1_SOURCE              = cmptest.h core1.c
380 core1_LDADD               = $(TESTS_LDADD)
382 core2_SOURCE              = cmptest.h core2.c
383 core2_LDADD               = $(TESTS_LDADD)
385 core3_SOURCE              = cmptest.h core3.c
386 core3_LDADD               = $(TESTS_LDADD)
388 core4_SOURCE              = cmptest.h core4.c
389 core4_LDADD               = $(TESTS_LDADD)
391 core5_SOURCE              = cmptest.h core5.c
392 core5_LDADD               = $(TESTS_LDADD)
394 core6_SOURCE              = cmptest.h core6.c
395 core6_LDADD               = $(TESTS_LDADD)
397 ed25519_convert_SOURCE    = cmptest.h ed25519_convert.c
398 ed25519_convert_LDADD     = $(TESTS_LDADD)
400 generichash_SOURCE        = cmptest.h generichash.c
401 generichash_LDADD         = $(TESTS_LDADD)
403 generichash2_SOURCE       = cmptest.h generichash2.c
404 generichash2_LDADD        = $(TESTS_LDADD)
406 generichash3_SOURCE       = cmptest.h generichash3.c
407 generichash3_LDADD        = $(TESTS_LDADD)
409 hash_SOURCE               = cmptest.h hash.c
410 hash_LDADD                = $(TESTS_LDADD)
412 hash3_SOURCE              = cmptest.h hash3.c
413 hash3_LDADD               = $(TESTS_LDADD)
415 onetimeauth_SOURCE        = cmptest.h onetimeauth.c
416 onetimeauth_LDADD         = $(TESTS_LDADD)
418 onetimeauth2_SOURCE       = cmptest.h onetimeauth2.c
419 onetimeauth2_LDADD        = $(TESTS_LDADD)
421 onetimeauth7_SOURCE       = cmptest.h onetimeauth7.c
422 onetimeauth7_LDADD        = $(TESTS_LDADD)
424 pwhash_SOURCE             = cmptest.h pwhash.c
425 pwhash_LDADD              = $(TESTS_LDADD)
427 pwhash_scrypt_ll_SOURCE   = cmptest.h pwhash_scrypt_ll.c
428 pwhash_scrypt_ll_LDADD    = $(TESTS_LDADD)
430 randombytes_SOURCE        = cmptest.h randombytes.c
431 randombytes_LDADD         = $(TESTS_LDADD)
433 scalarmult_SOURCE         = cmptest.h scalarmult.c
434 scalarmult_LDADD          = $(TESTS_LDADD)
436 scalarmult2_SOURCE        = cmptest.h scalarmult2.c
437 scalarmult2_LDADD         = $(TESTS_LDADD)
439 scalarmult5_SOURCE        = cmptest.h scalarmult5.c
440 scalarmult5_LDADD         = $(TESTS_LDADD)
442 scalarmult6_SOURCE        = cmptest.h scalarmult6.c
443 scalarmult6_LDADD         = $(TESTS_LDADD)
445 scalarmult7_SOURCE        = cmptest.h scalarmult7.c
446 scalarmult7_LDADD         = $(TESTS_LDADD)
448 secretbox_SOURCE          = cmptest.h secretbox.c
449 secretbox_LDADD           = $(TESTS_LDADD)
451 secretbox2_SOURCE         = cmptest.h secretbox2.c
452 secretbox2_LDADD          = $(TESTS_LDADD)
454 secretbox7_SOURCE         = cmptest.h secretbox7.c
455 secretbox7_LDADD          = $(TESTS_LDADD)
457 secretbox8_SOURCE         = cmptest.h secretbox8.c
458 secretbox8_LDADD          = $(TESTS_LDADD)
460 secretbox_easy_SOURCE     = cmptest.h secretbox_easy.c
461 secretbox_easy_LDADD      = $(TESTS_LDADD)
463 secretbox_easy2_SOURCE    = cmptest.h secretbox_easy2.c
464 secretbox_easy2_LDADD     = $(TESTS_LDADD)
466 shorthash_SOURCE          = cmptest.h shorthash.c
467 shorthash_LDADD           = $(TESTS_LDADD)
469 sign_SOURCE               = cmptest.h sign.c
470 sign_LDADD                = $(TESTS_LDADD)
472 sodium_core_SOURCE        = cmptest.h sodium_core.c
473 sodium_core_LDADD         = $(TESTS_LDADD)
475 sodium_utils_SOURCE       = cmptest.h sodium_utils.c
476 sodium_utils_LDADD        = $(TESTS_LDADD)
478 sodium_utils2_SOURCE      = cmptest.h sodium_utils2.c
479 sodium_utils2_LDADD       = $(TESTS_LDADD)
481 sodium_utils3_SOURCE      = cmptest.h sodium_utils3.c
482 sodium_utils3_LDADD       = $(TESTS_LDADD)
484 sodium_version_SOURCE     = cmptest.h sodium_version.c
485 sodium_version_LDADD      = $(TESTS_LDADD)
487 stream_SOURCE             = cmptest.h stream.c
488 stream_LDADD              = $(TESTS_LDADD)
490 stream2_SOURCE            = cmptest.h stream2.c
491 stream2_LDADD             = $(TESTS_LDADD)
493 stream3_SOURCE            = cmptest.h stream3.c
494 stream3_LDADD             = $(TESTS_LDADD)
496 stream4_SOURCE            = cmptest.h stream4.c
497 stream4_LDADD             = $(TESTS_LDADD)
499 verify1_SOURCE            = cmptest.h verify1.c
500 verify1_LDADD             = $(TESTS_LDADD)
502 if NATIVECLIENT
503 LOG_COMPILER = ./nacl-test-wrapper.sh
504 endif
506 verify: check