libsodium: updated to 1.0.10
[tomato.git] / release / src / router / libsodium / test / default / Makefile.am
blob2889a86a67a5aac3a5f63db273055ed7bced082e
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.exp \
41         pwhash_scrypt_ll.exp \
42         randombytes.exp \
43         scalarmult.exp \
44         scalarmult2.exp \
45         scalarmult5.exp \
46         scalarmult6.exp \
47         scalarmult7.exp \
48         secretbox.exp \
49         secretbox2.exp \
50         secretbox7.exp \
51         secretbox8.exp \
52         secretbox_easy.exp \
53         secretbox_easy2.exp \
54         shorthash.exp \
55         sign.exp \
56         sodium_core.exp \
57         sodium_utils.exp \
58         sodium_utils2.exp \
59         sodium_utils3.exp \
60         sodium_version.exp \
61         stream.exp \
62         stream2.exp \
63         stream3.exp \
64         stream4.exp \
65         verify1.exp
67 DISTCLEANFILES = \
68         aead_aes256gcm.res \
69         aead_chacha20poly1305.res \
70         auth.res \
71         auth2.res \
72         auth3.res \
73         auth5.res \
74         auth6.res \
75         auth7.res \
76         box.res \
77         box2.res \
78         box7.res \
79         box8.res \
80         box_easy.res \
81         box_easy2.res \
82         box_seal.res \
83         box_seed.res \
84         chacha20.res \
85         core1.res \
86         core2.res \
87         core3.res \
88         core4.res \
89         core5.res \
90         core6.res \
91         ed25519_convert.res \
92         generichash.res \
93         generichash2.res \
94         generichash3.res \
95         hash.res \
96         hash2.res \
97         hash3.res \
98         onetimeauth.res \
99         onetimeauth2.res \
100         onetimeauth7.res \
101         pwhash.res \
102         pwhash_scrypt.res \
103         pwhash_scrypt_ll.res \
104         randombytes.res \
105         scalarmult.res \
106         scalarmult2.res \
107         scalarmult5.res \
108         scalarmult6.res \
109         scalarmult7.res \
110         secretbox.res \
111         secretbox2.res \
112         secretbox7.res \
113         secretbox8.res \
114         secretbox_easy.res \
115         secretbox_easy2.res \
116         shorthash.res \
117         sign.res \
118         sodium_core.res \
119         sodium_utils.res \
120         sodium_utils2.res \
121         sodium_utils3.res \
122         sodium_version.res \
123         stream.res \
124         stream2.res \
125         stream3.res \
126         stream4.res \
127         verify1.res
129 if NATIVECLIENT
130 CLEANFILES = \
131         aead_aes256gcm.final \
132         aead_chacha20poly1305.final \
133         auth.final \
134         auth2.final \
135         auth3.final \
136         auth5.final \
137         auth6.final \
138         auth7.final \
139         box.final \
140         box2.final \
141         box7.final \
142         box8.final \
143         box_easy.final \
144         box_easy2.final \
145         box_seal.final \
146         box_seed.final \
147         chacha20.final \
148         core1.final \
149         core2.final \
150         core3.final \
151         core4.final \
152         core5.final \
153         core6.final \
154         ed25519_convert.final \
155         generichash.final \
156         generichash2.final \
157         generichash3.final \
158         hash.final \
159         hash2.final \
160         hash3.final \
161         onetimeauth.final \
162         onetimeauth2.final \
163         onetimeauth7.final \
164         pwhash.final \
165         pwhash_scrypt.final \
166         pwhash_scrypt_ll.final \
167         randombytes.final \
168         scalarmult.final \
169         scalarmult2.final \
170         scalarmult5.final \
171         scalarmult6.final \
172         scalarmult7.final \
173         secretbox.final \
174         secretbox2.final \
175         secretbox7.final \
176         secretbox8.final \
177         secretbox_easy.final \
178         secretbox_easy2.final \
179         shorthash.final \
180         sign.final \
181         sodium_core.final \
182         sodium_utils.final \
183         sodium_version.final \
184         stream.final \
185         stream2.final \
186         stream3.final \
187         stream4.final \
188         verify1.final \
189         aead_aes256gcm.nexe \
190         aead_chacha20poly1305.nexe \
191         auth.nexe \
192         auth2.nexe \
193         auth3.nexe \
194         auth5.nexe \
195         auth6.nexe \
196         auth7.nexe \
197         box.nexe \
198         box2.nexe \
199         box7.nexe \
200         box8.nexe \
201         box_easy.nexe \
202         box_easy2.nexe \
203         box_seal.nexe \
204         box_seed.nexe \
205         chacha20.nexe \
206         core1.nexe \
207         core2.nexe \
208         core3.nexe \
209         core4.nexe \
210         core5.nexe \
211         core6.nexe \
212         ed25519_convert.nexe \
213         generichash.nexe \
214         generichash2.nexe \
215         generichash3.nexe \
216         hash.nexe \
217         hash2.nexe \
218         hash3.nexe \
219         onetimeauth.nexe \
220         onetimeauth2.nexe \
221         onetimeauth7.nexe \
222         pwhash.nexe \
223         pwhash_scrypt.nexe \
224         pwhash_scrypt_ll.nexe \
225         randombytes.nexe \
226         scalarmult.nexe \
227         scalarmult2.nexe \
228         scalarmult5.nexe \
229         scalarmult6.nexe \
230         scalarmult7.nexe \
231         secretbox.nexe \
232         secretbox2.nexe \
233         secretbox7.nexe \
234         secretbox8.nexe \
235         secretbox_easy.nexe \
236         secretbox_easy2.nexe \
237         shorthash.nexe \
238         sign.nexe \
239         sodium_core.nexe \
240         sodium_utils.nexe \
241         sodium_version.nexe \
242         stream.nexe \
243         stream2.nexe \
244         stream3.nexe \
245         stream4.nexe \
246         verify1.nexe
247 endif
249 AM_CPPFLAGS = \
250         -DTEST_SRCDIR=\"@srcdir@\" \
251         -I$(top_srcdir)/src/libsodium/include \
252         -I$(top_srcdir)/src/libsodium/include/sodium \
253         -I$(top_builddir)/src/libsodium/include \
254         -I$(top_builddir)/src/libsodium/include/sodium \
255         -I$(top_srcdir)/test/quirks
257 AM_LDFLAGS = @TEST_LDFLAGS@
259 TESTS_TARGETS = \
260         aead_aes256gcm \
261         aead_chacha20poly1305 \
262         auth \
263         auth2 \
264         auth3 \
265         auth5 \
266         auth6 \
267         auth7 \
268         box \
269         box2 \
270         box7 \
271         box8 \
272         box_easy \
273         box_easy2 \
274         box_seal \
275         box_seed \
276         chacha20 \
277         core1 \
278         core2 \
279         core3 \
280         core4 \
281         core5 \
282         core6 \
283         ed25519_convert \
284         generichash \
285         generichash2 \
286         generichash3 \
287         hash \
288         hash3 \
289         onetimeauth \
290         onetimeauth2 \
291         onetimeauth7 \
292         pwhash \
293         pwhash_scrypt \
294         pwhash_scrypt_ll \
295         randombytes \
296         scalarmult \
297         scalarmult2 \
298         scalarmult5 \
299         scalarmult6 \
300         scalarmult7 \
301         secretbox \
302         secretbox2 \
303         secretbox7 \
304         secretbox8 \
305         secretbox_easy \
306         secretbox_easy2 \
307         shorthash \
308         sign \
309         sodium_core \
310         sodium_utils \
311         sodium_version \
312         stream \
313         stream2 \
314         stream3 \
315         stream4 \
316         verify1
318 if !EMSCRIPTEN
319 if !NATIVECLIENT
320 TESTS_TARGETS += \
321         sodium_utils2 \
322         sodium_utils3
323 endif
324 endif
326 check_PROGRAMS = $(TESTS_TARGETS)
328 TESTS = $(TESTS_TARGETS)
330 TESTS_LDADD = \
331         ${top_builddir}/src/libsodium/libsodium.la
333 aead_aes256gcm_SOURCE                 = cmptest.h aead_aes256gcm.c
334 aead_aes256gcm_LDADD                  = $(TESTS_LDADD)
336 aead_chacha20poly1305_SOURCE          = cmptest.h aead_chacha20poly1305.c
337 aead_chacha20poly1305_LDADD           = $(TESTS_LDADD)
339 auth_SOURCE               = cmptest.h auth.c
340 auth_LDADD                = $(TESTS_LDADD)
342 auth2_SOURCE              = cmptest.h auth2.c
343 auth2_LDADD               = $(TESTS_LDADD)
345 auth3_SOURCE              = cmptest.h auth3.c
346 auth3_LDADD               = $(TESTS_LDADD)
348 auth5_SOURCE              = cmptest.h auth5.c quirks.h
349 auth5_LDADD               = $(TESTS_LDADD)
351 auth6_SOURCE              = cmptest.h auth6.c quirks.h
352 auth6_LDADD               = $(TESTS_LDADD)
354 auth7_SOURCE              = cmptest.h auth7.c quirks.h
355 auth7_LDADD               = $(TESTS_LDADD)
357 box_SOURCE                = cmptest.h box.c
358 box_LDADD                 = $(TESTS_LDADD)
360 box2_SOURCE               = cmptest.h box2.c
361 box2_LDADD                = $(TESTS_LDADD)
363 box7_SOURCE               = cmptest.h box7.c
364 box7_LDADD                = $(TESTS_LDADD)
366 box8_SOURCE               = cmptest.h box8.c
367 box8_LDADD                = $(TESTS_LDADD)
369 box_easy_SOURCE           = cmptest.h box_easy.c
370 box_easy_LDADD            = $(TESTS_LDADD)
372 box_easy2_SOURCE          = cmptest.h box_easy2.c
373 box_easy2_LDADD           = $(TESTS_LDADD)
375 box_seal_SOURCE           = cmptest.h box_seal.c
376 box_seal_LDADD            = $(TESTS_LDADD)
378 box_seed_SOURCE           = cmptest.h box_seed.c
379 box_seed_LDADD            = $(TESTS_LDADD)
381 chacha20_SOURCE           = cmptest.h chacha20.c
382 chacha20_LDADD            = $(TESTS_LDADD)
384 core1_SOURCE              = cmptest.h core1.c
385 core1_LDADD               = $(TESTS_LDADD)
387 core2_SOURCE              = cmptest.h core2.c
388 core2_LDADD               = $(TESTS_LDADD)
390 core3_SOURCE              = cmptest.h core3.c
391 core3_LDADD               = $(TESTS_LDADD)
393 core4_SOURCE              = cmptest.h core4.c
394 core4_LDADD               = $(TESTS_LDADD)
396 core5_SOURCE              = cmptest.h core5.c
397 core5_LDADD               = $(TESTS_LDADD)
399 core6_SOURCE              = cmptest.h core6.c
400 core6_LDADD               = $(TESTS_LDADD)
402 ed25519_convert_SOURCE    = cmptest.h ed25519_convert.c
403 ed25519_convert_LDADD     = $(TESTS_LDADD)
405 generichash_SOURCE        = cmptest.h generichash.c
406 generichash_LDADD         = $(TESTS_LDADD)
408 generichash2_SOURCE       = cmptest.h generichash2.c
409 generichash2_LDADD        = $(TESTS_LDADD)
411 generichash3_SOURCE       = cmptest.h generichash3.c
412 generichash3_LDADD        = $(TESTS_LDADD)
414 hash_SOURCE               = cmptest.h hash.c
415 hash_LDADD                = $(TESTS_LDADD)
417 hash3_SOURCE              = cmptest.h hash3.c
418 hash3_LDADD               = $(TESTS_LDADD)
420 onetimeauth_SOURCE        = cmptest.h onetimeauth.c
421 onetimeauth_LDADD         = $(TESTS_LDADD)
423 onetimeauth2_SOURCE       = cmptest.h onetimeauth2.c
424 onetimeauth2_LDADD        = $(TESTS_LDADD)
426 onetimeauth7_SOURCE       = cmptest.h onetimeauth7.c
427 onetimeauth7_LDADD        = $(TESTS_LDADD)
429 pwhash_SOURCE             = cmptest.h pwhash.c
430 pwhash_LDADD              = $(TESTS_LDADD)
432 pwhash_scrypt_SOURCE      = cmptest.h pwhash_scrypt.c
433 pwhash_scrypt_LDADD       = $(TESTS_LDADD)
435 pwhash_scrypt_ll_SOURCE   = cmptest.h pwhash_scrypt_ll.c
436 pwhash_scrypt_ll_LDADD    = $(TESTS_LDADD)
438 randombytes_SOURCE        = cmptest.h randombytes.c
439 randombytes_LDADD         = $(TESTS_LDADD)
441 scalarmult_SOURCE         = cmptest.h scalarmult.c
442 scalarmult_LDADD          = $(TESTS_LDADD)
444 scalarmult2_SOURCE        = cmptest.h scalarmult2.c
445 scalarmult2_LDADD         = $(TESTS_LDADD)
447 scalarmult5_SOURCE        = cmptest.h scalarmult5.c
448 scalarmult5_LDADD         = $(TESTS_LDADD)
450 scalarmult6_SOURCE        = cmptest.h scalarmult6.c
451 scalarmult6_LDADD         = $(TESTS_LDADD)
453 scalarmult7_SOURCE        = cmptest.h scalarmult7.c
454 scalarmult7_LDADD         = $(TESTS_LDADD)
456 secretbox_SOURCE          = cmptest.h secretbox.c
457 secretbox_LDADD           = $(TESTS_LDADD)
459 secretbox2_SOURCE         = cmptest.h secretbox2.c
460 secretbox2_LDADD          = $(TESTS_LDADD)
462 secretbox7_SOURCE         = cmptest.h secretbox7.c
463 secretbox7_LDADD          = $(TESTS_LDADD)
465 secretbox8_SOURCE         = cmptest.h secretbox8.c
466 secretbox8_LDADD          = $(TESTS_LDADD)
468 secretbox_easy_SOURCE     = cmptest.h secretbox_easy.c
469 secretbox_easy_LDADD      = $(TESTS_LDADD)
471 secretbox_easy2_SOURCE    = cmptest.h secretbox_easy2.c
472 secretbox_easy2_LDADD     = $(TESTS_LDADD)
474 shorthash_SOURCE          = cmptest.h shorthash.c
475 shorthash_LDADD           = $(TESTS_LDADD)
477 sign_SOURCE               = cmptest.h sign.c
478 sign_LDADD                = $(TESTS_LDADD)
480 sodium_core_SOURCE        = cmptest.h sodium_core.c
481 sodium_core_LDADD         = $(TESTS_LDADD)
483 sodium_utils_SOURCE       = cmptest.h sodium_utils.c
484 sodium_utils_LDADD        = $(TESTS_LDADD)
486 sodium_utils2_SOURCE      = cmptest.h sodium_utils2.c
487 sodium_utils2_LDADD       = $(TESTS_LDADD)
489 sodium_utils3_SOURCE      = cmptest.h sodium_utils3.c
490 sodium_utils3_LDADD       = $(TESTS_LDADD)
492 sodium_version_SOURCE     = cmptest.h sodium_version.c
493 sodium_version_LDADD      = $(TESTS_LDADD)
495 stream_SOURCE             = cmptest.h stream.c
496 stream_LDADD              = $(TESTS_LDADD)
498 stream2_SOURCE            = cmptest.h stream2.c
499 stream2_LDADD             = $(TESTS_LDADD)
501 stream3_SOURCE            = cmptest.h stream3.c
502 stream3_LDADD             = $(TESTS_LDADD)
504 stream4_SOURCE            = cmptest.h stream4.c
505 stream4_LDADD             = $(TESTS_LDADD)
507 verify1_SOURCE            = cmptest.h verify1.c
508 verify1_LDADD             = $(TESTS_LDADD)
510 if NATIVECLIENT
511 LOG_COMPILER = ./nacl-test-wrapper.sh
512 endif
514 verify: check
516 @VALGRIND_CHECK_RULES@