1 2EXTRA_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 80DISTCLEANFILES = \ 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 155if NATIVECLIENT 156CLEANFILES = \ 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 299endif 300 301AM_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 309AM_LDFLAGS = @TEST_LDFLAGS@ 310 311TESTS_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 377if !EMSCRIPTEN 378if !NATIVECLIENT 379TESTS_TARGETS += \ 380 sodium_utils2 \ 381 sodium_utils3 382endif 383endif 384 385check_PROGRAMS = $(TESTS_TARGETS) 386 387TESTS = $(TESTS_TARGETS) 388 389TESTS_LDADD = \ 390 ${top_builddir}/src/libsodium/libsodium.la 391 392aead_aes256gcm_SOURCE = cmptest.h aead_aes256gcm.c 393aead_aes256gcm_LDADD = $(TESTS_LDADD) 394 395aead_chacha20poly1305_SOURCE = cmptest.h aead_chacha20poly1305.c 396aead_chacha20poly1305_LDADD = $(TESTS_LDADD) 397 398aead_xchacha20poly1305_SOURCE = cmptest.h aead_xchacha20poly1305.c 399aead_xchacha20poly1305_LDADD = $(TESTS_LDADD) 400 401auth_SOURCE = cmptest.h auth.c 402auth_LDADD = $(TESTS_LDADD) 403 404auth2_SOURCE = cmptest.h auth2.c 405auth2_LDADD = $(TESTS_LDADD) 406 407auth3_SOURCE = cmptest.h auth3.c 408auth3_LDADD = $(TESTS_LDADD) 409 410auth5_SOURCE = cmptest.h auth5.c quirks.h 411auth5_LDADD = $(TESTS_LDADD) 412 413auth6_SOURCE = cmptest.h auth6.c quirks.h 414auth6_LDADD = $(TESTS_LDADD) 415 416auth7_SOURCE = cmptest.h auth7.c quirks.h 417auth7_LDADD = $(TESTS_LDADD) 418 419box_SOURCE = cmptest.h box.c 420box_LDADD = $(TESTS_LDADD) 421 422box2_SOURCE = cmptest.h box2.c 423box2_LDADD = $(TESTS_LDADD) 424 425box7_SOURCE = cmptest.h box7.c 426box7_LDADD = $(TESTS_LDADD) 427 428box8_SOURCE = cmptest.h box8.c 429box8_LDADD = $(TESTS_LDADD) 430 431box_easy_SOURCE = cmptest.h box_easy.c 432box_easy_LDADD = $(TESTS_LDADD) 433 434box_easy2_SOURCE = cmptest.h box_easy2.c 435box_easy2_LDADD = $(TESTS_LDADD) 436 437box_seal_SOURCE = cmptest.h box_seal.c 438box_seal_LDADD = $(TESTS_LDADD) 439 440box_seed_SOURCE = cmptest.h box_seed.c 441box_seed_LDADD = $(TESTS_LDADD) 442 443chacha20_SOURCE = cmptest.h chacha20.c 444chacha20_LDADD = $(TESTS_LDADD) 445 446codecs_SOURCE = cmptest.h codecs.c 447codecs_LDADD = $(TESTS_LDADD) 448 449core_ed25519_SOURCE = cmptest.h core_ed25519.c 450core_ed25519_LDADD = $(TESTS_LDADD) 451 452core1_SOURCE = cmptest.h core1.c 453core1_LDADD = $(TESTS_LDADD) 454 455core2_SOURCE = cmptest.h core2.c 456core2_LDADD = $(TESTS_LDADD) 457 458core3_SOURCE = cmptest.h core3.c 459core3_LDADD = $(TESTS_LDADD) 460 461core4_SOURCE = cmptest.h core4.c 462core4_LDADD = $(TESTS_LDADD) 463 464core5_SOURCE = cmptest.h core5.c 465core5_LDADD = $(TESTS_LDADD) 466 467core6_SOURCE = cmptest.h core6.c 468core6_LDADD = $(TESTS_LDADD) 469 470ed25519_convert_SOURCE = cmptest.h ed25519_convert.c 471ed25519_convert_LDADD = $(TESTS_LDADD) 472 473generichash_SOURCE = cmptest.h generichash.c 474generichash_LDADD = $(TESTS_LDADD) 475 476generichash2_SOURCE = cmptest.h generichash2.c 477generichash2_LDADD = $(TESTS_LDADD) 478 479generichash3_SOURCE = cmptest.h generichash3.c 480generichash3_LDADD = $(TESTS_LDADD) 481 482hash_SOURCE = cmptest.h hash.c 483hash_LDADD = $(TESTS_LDADD) 484 485hash3_SOURCE = cmptest.h hash3.c 486hash3_LDADD = $(TESTS_LDADD) 487 488kdf_SOURCE = cmptest.h kdf.c 489kdf_LDADD = $(TESTS_LDADD) 490 491keygen_SOURCE = cmptest.h keygen.c 492keygen_LDADD = $(TESTS_LDADD) 493 494kx_SOURCE = cmptest.h kx.c 495kx_LDADD = $(TESTS_LDADD) 496 497metamorphic_SOURCE = cmptest.h metamorphic.c 498metamorphic_LDADD = $(TESTS_LDADD) 499 500misuse_SOURCE = cmptest.h misuse.c 501misuse_LDADD = $(TESTS_LDADD) 502 503onetimeauth_SOURCE = cmptest.h onetimeauth.c 504onetimeauth_LDADD = $(TESTS_LDADD) 505 506onetimeauth2_SOURCE = cmptest.h onetimeauth2.c 507onetimeauth2_LDADD = $(TESTS_LDADD) 508 509onetimeauth7_SOURCE = cmptest.h onetimeauth7.c 510onetimeauth7_LDADD = $(TESTS_LDADD) 511 512pwhash_argon2i_SOURCE = cmptest.h pwhash_argon2i.c 513pwhash_argon2i_LDADD = $(TESTS_LDADD) 514 515pwhash_argon2id_SOURCE = cmptest.h pwhash_argon2id.c 516pwhash_argon2id_LDADD = $(TESTS_LDADD) 517 518pwhash_scrypt_SOURCE = cmptest.h pwhash_scrypt.c 519pwhash_scrypt_LDADD = $(TESTS_LDADD) 520 521pwhash_scrypt_ll_SOURCE = cmptest.h pwhash_scrypt_ll.c 522pwhash_scrypt_ll_LDADD = $(TESTS_LDADD) 523 524randombytes_SOURCE = cmptest.h randombytes.c 525randombytes_LDADD = $(TESTS_LDADD) 526 527scalarmult_SOURCE = cmptest.h scalarmult.c 528scalarmult_LDADD = $(TESTS_LDADD) 529 530scalarmult_ed25519_SOURCE = cmptest.h scalarmult_ed25519.c 531scalarmult_ed25519_LDADD = $(TESTS_LDADD) 532 533scalarmult2_SOURCE = cmptest.h scalarmult2.c 534scalarmult2_LDADD = $(TESTS_LDADD) 535 536scalarmult5_SOURCE = cmptest.h scalarmult5.c 537scalarmult5_LDADD = $(TESTS_LDADD) 538 539scalarmult6_SOURCE = cmptest.h scalarmult6.c 540scalarmult6_LDADD = $(TESTS_LDADD) 541 542scalarmult7_SOURCE = cmptest.h scalarmult7.c 543scalarmult7_LDADD = $(TESTS_LDADD) 544 545secretbox_SOURCE = cmptest.h secretbox.c 546secretbox_LDADD = $(TESTS_LDADD) 547 548secretbox2_SOURCE = cmptest.h secretbox2.c 549secretbox2_LDADD = $(TESTS_LDADD) 550 551secretbox7_SOURCE = cmptest.h secretbox7.c 552secretbox7_LDADD = $(TESTS_LDADD) 553 554secretbox8_SOURCE = cmptest.h secretbox8.c 555secretbox8_LDADD = $(TESTS_LDADD) 556 557secretbox_easy_SOURCE = cmptest.h secretbox_easy.c 558secretbox_easy_LDADD = $(TESTS_LDADD) 559 560secretbox_easy2_SOURCE = cmptest.h secretbox_easy2.c 561secretbox_easy2_LDADD = $(TESTS_LDADD) 562 563secretstream_SOURCE = cmptest.h secretstream.c 564secretstream_LDADD = $(TESTS_LDADD) 565 566shorthash_SOURCE = cmptest.h shorthash.c 567shorthash_LDADD = $(TESTS_LDADD) 568 569sign_SOURCE = cmptest.h sign.c 570sign_LDADD = $(TESTS_LDADD) 571 572siphashx24_SOURCE = cmptest.h siphashx24.c 573siphashx24_LDADD = $(TESTS_LDADD) 574 575sodium_core_SOURCE = cmptest.h sodium_core.c 576sodium_core_LDADD = $(TESTS_LDADD) 577 578sodium_utils_SOURCE = cmptest.h sodium_utils.c 579sodium_utils_LDADD = $(TESTS_LDADD) 580 581sodium_utils2_SOURCE = cmptest.h sodium_utils2.c 582sodium_utils2_LDADD = $(TESTS_LDADD) 583 584sodium_utils3_SOURCE = cmptest.h sodium_utils3.c 585sodium_utils3_LDADD = $(TESTS_LDADD) 586 587sodium_version_SOURCE = cmptest.h sodium_version.c 588sodium_version_LDADD = $(TESTS_LDADD) 589 590stream_SOURCE = cmptest.h stream.c 591stream_LDADD = $(TESTS_LDADD) 592 593stream2_SOURCE = cmptest.h stream2.c 594stream2_LDADD = $(TESTS_LDADD) 595 596stream3_SOURCE = cmptest.h stream3.c 597stream3_LDADD = $(TESTS_LDADD) 598 599stream4_SOURCE = cmptest.h stream4.c 600stream4_LDADD = $(TESTS_LDADD) 601 602verify1_SOURCE = cmptest.h verify1.c 603verify1_LDADD = $(TESTS_LDADD) 604 605xchacha20_SOURCE = cmptest.h xchacha20.c 606xchacha20_LDADD = $(TESTS_LDADD) 607 608if !MINIMAL 609TESTS_TARGETS += \ 610 core_ed25519 \ 611 pwhash_scrypt \ 612 pwhash_scrypt_ll \ 613 scalarmult_ed25519 \ 614 siphashx24 \ 615 xchacha20 616endif 617 618if NATIVECLIENT 619LOG_COMPILER = ./nacl-test-wrapper.sh 620endif 621 622verify: check 623 624@VALGRIND_CHECK_RULES@ 625