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