]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/contrib/libsodium/test/default/Makefile.am
Import DTS from Linux 4.20
[FreeBSD/FreeBSD.git] / sys / contrib / libsodium / test / default / Makefile.am
1
2 EXTRA_DIST = \
3         cmptest.h \
4         wintest.bat \
5         pre.js.inc \
6         aead_aes256gcm.exp \
7         aead_chacha20poly1305.exp \
8         aead_xchacha20poly1305.exp \
9         auth.exp \
10         auth2.exp \
11         auth3.exp \
12         auth5.exp \
13         auth6.exp \
14         auth7.exp \
15         box.exp \
16         box2.exp \
17         box7.exp \
18         box8.exp \
19         box_easy.exp \
20         box_easy2.exp \
21         box_seal.exp \
22         box_seed.exp \
23         chacha20.exp \
24         codecs.exp \
25         core_ed25519.exp \
26         core1.exp \
27         core2.exp \
28         core3.exp \
29         core4.exp \
30         core5.exp \
31         core6.exp \
32         ed25519_convert.exp \
33         generichash.exp \
34         generichash2.exp \
35         generichash3.exp \
36         hash.exp \
37         hash2.exp \
38         hash3.exp \
39         kdf.exp \
40         keygen.exp \
41         kx.exp \
42         metamorphic.exp \
43         misuse.exp \
44         onetimeauth.exp \
45         onetimeauth2.exp \
46         onetimeauth7.exp \
47         pwhash_argon2i.exp \
48         pwhash_argon2id.exp \
49         pwhash_scrypt.exp \
50         pwhash_scrypt_ll.exp \
51         randombytes.exp \
52         scalarmult.exp \
53         scalarmult_ed25519.exp \
54         scalarmult2.exp \
55         scalarmult5.exp \
56         scalarmult6.exp \
57         scalarmult7.exp \
58         secretbox.exp \
59         secretbox2.exp \
60         secretbox7.exp \
61         secretbox8.exp \
62         secretbox_easy.exp \
63         secretbox_easy2.exp \
64         secretstream.exp \
65         shorthash.exp \
66         sign.exp \
67         siphashx24.exp \
68         sodium_core.exp \
69         sodium_utils.exp \
70         sodium_utils2.exp \
71         sodium_utils3.exp \
72         sodium_version.exp \
73         stream.exp \
74         stream2.exp \
75         stream3.exp \
76         stream4.exp \
77         verify1.exp \
78         xchacha20.exp
79
80 DISTCLEANFILES = \
81         aead_aes256gcm.res \
82         aead_chacha20poly1305.res \
83         aead_xchacha20poly1305.res \
84         auth.res \
85         auth2.res \
86         auth3.res \
87         auth5.res \
88         auth6.res \
89         auth7.res \
90         box.res \
91         box2.res \
92         box7.res \
93         box8.res \
94         box_easy.res \
95         box_easy2.res \
96         box_seal.res \
97         box_seed.res \
98         chacha20.res \
99         codecs.res \
100         core_ed25519.res \
101         core1.res \
102         core2.res \
103         core3.res \
104         core4.res \
105         core5.res \
106         core6.res \
107         ed25519_convert.res \
108         generichash.res \
109         generichash2.res \
110         generichash3.res \
111         hash.res \
112         hash2.res \
113         hash3.res \
114         kdf.res \
115         keygen.res \
116         kx.res \
117         metamorphic.res \
118         misuse.res \
119         onetimeauth.res \
120         onetimeauth2.res \
121         onetimeauth7.res \
122         pwhash_argon2i.res \
123         pwhash_argon2id.res \
124         pwhash_scrypt.res \
125         pwhash_scrypt_ll.res \
126         randombytes.res \
127         scalarmult.res \
128         scalarmult_ed25519.res \
129         scalarmult2.res \
130         scalarmult5.res \
131         scalarmult6.res \
132         scalarmult7.res \
133         secretbox.res \
134         secretbox2.res \
135         secretbox7.res \
136         secretbox8.res \
137         secretbox_easy.res \
138         secretbox_easy2.res \
139         secretstream.res \
140         shorthash.res \
141         sign.res \
142         siphashx24.res \
143         sodium_core.res \
144         sodium_utils.res \
145         sodium_utils2.res \
146         sodium_utils3.res \
147         sodium_version.res \
148         stream.res \
149         stream2.res \
150         stream3.res \
151         stream4.res \
152         verify1.res \
153         xchacha20.res
154
155 if NATIVECLIENT
156 CLEANFILES = \
157         aead_aes256gcm.final \
158         aead_chacha20poly1305.final \
159         aead_xchacha20poly1305.final \
160         auth.final \
161         auth2.final \
162         auth3.final \
163         auth5.final \
164         auth6.final \
165         auth7.final \
166         box.final \
167         box2.final \
168         box7.final \
169         box8.final \
170         box_easy.final \
171         box_easy2.final \
172         box_seal.final \
173         box_seed.final \
174         chacha20.final \
175         codecs.final \
176         core_ed25519.final \
177         core1.final \
178         core2.final \
179         core3.final \
180         core4.final \
181         core5.final \
182         core6.final \
183         ed25519_convert.final \
184         generichash.final \
185         generichash2.final \
186         generichash3.final \
187         hash.final \
188         hash2.final \
189         hash3.final \
190         kdf.final \
191         keygen.final \
192         kx.final \
193         metamorphic.final \
194         misuse.final \
195         onetimeauth.final \
196         onetimeauth2.final \
197         onetimeauth7.final \
198         pwhash_argon2i.final \
199         pwhash_argon2id.final \
200         pwhash_scrypt.final \
201         pwhash_scrypt_ll.final \
202         randombytes.final \
203         scalarmult.final \
204         scalarmult_ed25519.final \
205         scalarmult2.final \
206         scalarmult5.final \
207         scalarmult6.final \
208         scalarmult7.final \
209         secretbox.final \
210         secretbox2.final \
211         secretbox7.final \
212         secretbox8.final \
213         secretbox_easy.final \
214         secretbox_easy2.final \
215         secretstream.final \
216         shorthash.final \
217         sign.final \
218         siphashx24.final \
219         sodium_core.final \
220         sodium_utils.final \
221         sodium_version.final \
222         stream.final \
223         stream2.final \
224         stream3.final \
225         stream4.final \
226         verify1.final \
227         xchacha20.final \
228         aead_aes256gcm.nexe \
229         aead_chacha20poly1305.nexe \
230         aead_xchacha20poly1305.nexe \
231         auth.nexe \
232         auth2.nexe \
233         auth3.nexe \
234         auth5.nexe \
235         auth6.nexe \
236         auth7.nexe \
237         box.nexe \
238         box2.nexe \
239         box7.nexe \
240         box8.nexe \
241         box_easy.nexe \
242         box_easy2.nexe \
243         box_seal.nexe \
244         box_seed.nexe \
245         chacha20.nexe \
246         codecs.nexe \
247         core_ed25519.nexe \
248         core1.nexe \
249         core2.nexe \
250         core3.nexe \
251         core4.nexe \
252         core5.nexe \
253         core6.nexe \
254         ed25519_convert.nexe \
255         generichash.nexe \
256         generichash2.nexe \
257         generichash3.nexe \
258         hash.nexe \
259         hash2.nexe \
260         hash3.nexe \
261         kdf.nexe \
262         keygen.nexe \
263         kx.nexe \
264         metamorphic.nexe \
265         misuse.nexe \
266         onetimeauth.nexe \
267         onetimeauth2.nexe \
268         onetimeauth7.nexe \
269         pwhash_argon2i.nexe \
270         pwhash_argon2id.nexe \
271         pwhash_scrypt.nexe \
272         pwhash_scrypt_ll.nexe \
273         randombytes.nexe \
274         scalarmult.nexe \
275         scalarmult_ed25519.nexe \
276         scalarmult2.nexe \
277         scalarmult5.nexe \
278         scalarmult6.nexe \
279         scalarmult7.nexe \
280         secretbox.nexe \
281         secretbox2.nexe \
282         secretbox7.nexe \
283         secretbox8.nexe \
284         secretbox_easy.nexe \
285         secretbox_easy2.nexe \
286         secretstream.nexe \
287         shorthash.nexe \
288         sign.nexe \
289         siphashx24.nexe \
290         sodium_core.nexe \
291         sodium_utils.nexe \
292         sodium_version.nexe \
293         stream.nexe \
294         stream2.nexe \
295         stream3.nexe \
296         stream4.nexe \
297         verify1.nexe \
298         xchacha20.nexe
299 endif
300
301 AM_CPPFLAGS = \
302         -DTEST_SRCDIR=\"@srcdir@\" \
303         -I$(top_srcdir)/src/libsodium/include \
304         -I$(top_srcdir)/src/libsodium/include/sodium \
305         -I$(top_builddir)/src/libsodium/include \
306         -I$(top_builddir)/src/libsodium/include/sodium \
307         -I$(top_srcdir)/test/quirks
308
309 AM_LDFLAGS = @TEST_LDFLAGS@
310
311 TESTS_TARGETS = \
312         aead_aes256gcm \
313         aead_chacha20poly1305 \
314         aead_xchacha20poly1305 \
315         auth \
316         auth2 \
317         auth3 \
318         auth5 \
319         auth6 \
320         auth7 \
321         box \
322         box2 \
323         box7 \
324         box8 \
325         box_easy \
326         box_easy2 \
327         box_seal \
328         box_seed \
329         chacha20 \
330         codecs \
331         core1 \
332         core2 \
333         core3 \
334         core4 \
335         core5 \
336         core6 \
337         ed25519_convert \
338         generichash \
339         generichash2 \
340         generichash3 \
341         hash \
342         hash3 \
343         kdf \
344         keygen \
345         kx \
346         metamorphic \
347         misuse \
348         onetimeauth \
349         onetimeauth2 \
350         onetimeauth7 \
351         pwhash_argon2i \
352         pwhash_argon2id \
353         randombytes \
354         scalarmult \
355         scalarmult2 \
356         scalarmult5 \
357         scalarmult6 \
358         scalarmult7 \
359         secretbox \
360         secretbox2 \
361         secretbox7 \
362         secretbox8 \
363         secretbox_easy \
364         secretbox_easy2 \
365         secretstream \
366         shorthash \
367         sign \
368         sodium_core \
369         sodium_utils \
370         sodium_version \
371         stream \
372         stream2 \
373         stream3 \
374         stream4 \
375         verify1
376
377 if !EMSCRIPTEN
378 if !NATIVECLIENT
379 TESTS_TARGETS += \
380         sodium_utils2 \
381         sodium_utils3
382 endif
383 endif
384
385 check_PROGRAMS = $(TESTS_TARGETS)
386
387 TESTS = $(TESTS_TARGETS)
388
389 TESTS_LDADD = \
390         ${top_builddir}/src/libsodium/libsodium.la
391
392 aead_aes256gcm_SOURCE                 = cmptest.h aead_aes256gcm.c
393 aead_aes256gcm_LDADD                  = $(TESTS_LDADD)
394
395 aead_chacha20poly1305_SOURCE          = cmptest.h aead_chacha20poly1305.c
396 aead_chacha20poly1305_LDADD           = $(TESTS_LDADD)
397
398 aead_xchacha20poly1305_SOURCE         = cmptest.h aead_xchacha20poly1305.c
399 aead_xchacha20poly1305_LDADD          = $(TESTS_LDADD)
400
401 auth_SOURCE               = cmptest.h auth.c
402 auth_LDADD                = $(TESTS_LDADD)
403
404 auth2_SOURCE              = cmptest.h auth2.c
405 auth2_LDADD               = $(TESTS_LDADD)
406
407 auth3_SOURCE              = cmptest.h auth3.c
408 auth3_LDADD               = $(TESTS_LDADD)
409
410 auth5_SOURCE              = cmptest.h auth5.c quirks.h
411 auth5_LDADD               = $(TESTS_LDADD)
412
413 auth6_SOURCE              = cmptest.h auth6.c quirks.h
414 auth6_LDADD               = $(TESTS_LDADD)
415
416 auth7_SOURCE              = cmptest.h auth7.c quirks.h
417 auth7_LDADD               = $(TESTS_LDADD)
418
419 box_SOURCE                = cmptest.h box.c
420 box_LDADD                 = $(TESTS_LDADD)
421
422 box2_SOURCE               = cmptest.h box2.c
423 box2_LDADD                = $(TESTS_LDADD)
424
425 box7_SOURCE               = cmptest.h box7.c
426 box7_LDADD                = $(TESTS_LDADD)
427
428 box8_SOURCE               = cmptest.h box8.c
429 box8_LDADD                = $(TESTS_LDADD)
430
431 box_easy_SOURCE           = cmptest.h box_easy.c
432 box_easy_LDADD            = $(TESTS_LDADD)
433
434 box_easy2_SOURCE          = cmptest.h box_easy2.c
435 box_easy2_LDADD           = $(TESTS_LDADD)
436
437 box_seal_SOURCE           = cmptest.h box_seal.c
438 box_seal_LDADD            = $(TESTS_LDADD)
439
440 box_seed_SOURCE           = cmptest.h box_seed.c
441 box_seed_LDADD            = $(TESTS_LDADD)
442
443 chacha20_SOURCE           = cmptest.h chacha20.c
444 chacha20_LDADD            = $(TESTS_LDADD)
445
446 codecs_SOURCE             = cmptest.h codecs.c
447 codecs_LDADD              = $(TESTS_LDADD)
448
449 core_ed25519_SOURCE       = cmptest.h core_ed25519.c
450 core_ed25519_LDADD        = $(TESTS_LDADD)
451
452 core1_SOURCE              = cmptest.h core1.c
453 core1_LDADD               = $(TESTS_LDADD)
454
455 core2_SOURCE              = cmptest.h core2.c
456 core2_LDADD               = $(TESTS_LDADD)
457
458 core3_SOURCE              = cmptest.h core3.c
459 core3_LDADD               = $(TESTS_LDADD)
460
461 core4_SOURCE              = cmptest.h core4.c
462 core4_LDADD               = $(TESTS_LDADD)
463
464 core5_SOURCE              = cmptest.h core5.c
465 core5_LDADD               = $(TESTS_LDADD)
466
467 core6_SOURCE              = cmptest.h core6.c
468 core6_LDADD               = $(TESTS_LDADD)
469
470 ed25519_convert_SOURCE    = cmptest.h ed25519_convert.c
471 ed25519_convert_LDADD     = $(TESTS_LDADD)
472
473 generichash_SOURCE        = cmptest.h generichash.c
474 generichash_LDADD         = $(TESTS_LDADD)
475
476 generichash2_SOURCE       = cmptest.h generichash2.c
477 generichash2_LDADD        = $(TESTS_LDADD)
478
479 generichash3_SOURCE       = cmptest.h generichash3.c
480 generichash3_LDADD        = $(TESTS_LDADD)
481
482 hash_SOURCE               = cmptest.h hash.c
483 hash_LDADD                = $(TESTS_LDADD)
484
485 hash3_SOURCE              = cmptest.h hash3.c
486 hash3_LDADD               = $(TESTS_LDADD)
487
488 kdf_SOURCE                = cmptest.h kdf.c
489 kdf_LDADD                 = $(TESTS_LDADD)
490
491 keygen_SOURCE             = cmptest.h keygen.c
492 keygen_LDADD              = $(TESTS_LDADD)
493
494 kx_SOURCE                 = cmptest.h kx.c
495 kx_LDADD                  = $(TESTS_LDADD)
496
497 metamorphic_SOURCE        = cmptest.h metamorphic.c
498 metamorphic_LDADD         = $(TESTS_LDADD)
499
500 misuse_SOURCE             = cmptest.h misuse.c
501 misuse_LDADD              = $(TESTS_LDADD)
502
503 onetimeauth_SOURCE        = cmptest.h onetimeauth.c
504 onetimeauth_LDADD         = $(TESTS_LDADD)
505
506 onetimeauth2_SOURCE       = cmptest.h onetimeauth2.c
507 onetimeauth2_LDADD        = $(TESTS_LDADD)
508
509 onetimeauth7_SOURCE       = cmptest.h onetimeauth7.c
510 onetimeauth7_LDADD        = $(TESTS_LDADD)
511
512 pwhash_argon2i_SOURCE     = cmptest.h pwhash_argon2i.c
513 pwhash_argon2i_LDADD      = $(TESTS_LDADD)
514
515 pwhash_argon2id_SOURCE    = cmptest.h pwhash_argon2id.c
516 pwhash_argon2id_LDADD     = $(TESTS_LDADD)
517
518 pwhash_scrypt_SOURCE      = cmptest.h pwhash_scrypt.c
519 pwhash_scrypt_LDADD       = $(TESTS_LDADD)
520
521 pwhash_scrypt_ll_SOURCE   = cmptest.h pwhash_scrypt_ll.c
522 pwhash_scrypt_ll_LDADD    = $(TESTS_LDADD)
523
524 randombytes_SOURCE        = cmptest.h randombytes.c
525 randombytes_LDADD         = $(TESTS_LDADD)
526
527 scalarmult_SOURCE         = cmptest.h scalarmult.c
528 scalarmult_LDADD          = $(TESTS_LDADD)
529
530 scalarmult_ed25519_SOURCE = cmptest.h scalarmult_ed25519.c
531 scalarmult_ed25519_LDADD  = $(TESTS_LDADD)
532
533 scalarmult2_SOURCE        = cmptest.h scalarmult2.c
534 scalarmult2_LDADD         = $(TESTS_LDADD)
535
536 scalarmult5_SOURCE        = cmptest.h scalarmult5.c
537 scalarmult5_LDADD         = $(TESTS_LDADD)
538
539 scalarmult6_SOURCE        = cmptest.h scalarmult6.c
540 scalarmult6_LDADD         = $(TESTS_LDADD)
541
542 scalarmult7_SOURCE        = cmptest.h scalarmult7.c
543 scalarmult7_LDADD         = $(TESTS_LDADD)
544
545 secretbox_SOURCE          = cmptest.h secretbox.c
546 secretbox_LDADD           = $(TESTS_LDADD)
547
548 secretbox2_SOURCE         = cmptest.h secretbox2.c
549 secretbox2_LDADD          = $(TESTS_LDADD)
550
551 secretbox7_SOURCE         = cmptest.h secretbox7.c
552 secretbox7_LDADD          = $(TESTS_LDADD)
553
554 secretbox8_SOURCE         = cmptest.h secretbox8.c
555 secretbox8_LDADD          = $(TESTS_LDADD)
556
557 secretbox_easy_SOURCE     = cmptest.h secretbox_easy.c
558 secretbox_easy_LDADD      = $(TESTS_LDADD)
559
560 secretbox_easy2_SOURCE    = cmptest.h secretbox_easy2.c
561 secretbox_easy2_LDADD     = $(TESTS_LDADD)
562
563 secretstream_SOURCE       = cmptest.h secretstream.c
564 secretstream_LDADD        = $(TESTS_LDADD)
565
566 shorthash_SOURCE          = cmptest.h shorthash.c
567 shorthash_LDADD           = $(TESTS_LDADD)
568
569 sign_SOURCE               = cmptest.h sign.c
570 sign_LDADD                = $(TESTS_LDADD)
571
572 siphashx24_SOURCE         = cmptest.h siphashx24.c
573 siphashx24_LDADD          = $(TESTS_LDADD)
574
575 sodium_core_SOURCE        = cmptest.h sodium_core.c
576 sodium_core_LDADD         = $(TESTS_LDADD)
577
578 sodium_utils_SOURCE       = cmptest.h sodium_utils.c
579 sodium_utils_LDADD        = $(TESTS_LDADD)
580
581 sodium_utils2_SOURCE      = cmptest.h sodium_utils2.c
582 sodium_utils2_LDADD       = $(TESTS_LDADD)
583
584 sodium_utils3_SOURCE      = cmptest.h sodium_utils3.c
585 sodium_utils3_LDADD       = $(TESTS_LDADD)
586
587 sodium_version_SOURCE     = cmptest.h sodium_version.c
588 sodium_version_LDADD      = $(TESTS_LDADD)
589
590 stream_SOURCE             = cmptest.h stream.c
591 stream_LDADD              = $(TESTS_LDADD)
592
593 stream2_SOURCE            = cmptest.h stream2.c
594 stream2_LDADD             = $(TESTS_LDADD)
595
596 stream3_SOURCE            = cmptest.h stream3.c
597 stream3_LDADD             = $(TESTS_LDADD)
598
599 stream4_SOURCE            = cmptest.h stream4.c
600 stream4_LDADD             = $(TESTS_LDADD)
601
602 verify1_SOURCE            = cmptest.h verify1.c
603 verify1_LDADD             = $(TESTS_LDADD)
604
605 xchacha20_SOURCE          = cmptest.h xchacha20.c
606 xchacha20_LDADD           = $(TESTS_LDADD)
607
608 if !MINIMAL
609 TESTS_TARGETS += \
610         core_ed25519 \
611         pwhash_scrypt \
612         pwhash_scrypt_ll \
613         scalarmult_ed25519 \
614         siphashx24 \
615         xchacha20
616 endif
617
618 if NATIVECLIENT
619 LOG_COMPILER = ./nacl-test-wrapper.sh
620 endif
621
622 verify: check
623
624 @VALGRIND_CHECK_RULES@