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