Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/travis/build_cmake.sh
Show All 37 Lines | ${CMAKE_COMMAND} -GNinja .. \ | ||||
-DSECP256K1_ENABLE_MODULE_ECDH=$ECDH \ | -DSECP256K1_ENABLE_MODULE_ECDH=$ECDH \ | ||||
-DSECP256K1_ENABLE_MODULE_MULTISET=$MULTISET \ | -DSECP256K1_ENABLE_MODULE_MULTISET=$MULTISET \ | ||||
-DSECP256K1_ENABLE_MODULE_RECOVERY=$RECOVERY \ | -DSECP256K1_ENABLE_MODULE_RECOVERY=$RECOVERY \ | ||||
-DSECP256K1_ENABLE_MODULE_SCHNORR=$SCHNORR \ | -DSECP256K1_ENABLE_MODULE_SCHNORR=$SCHNORR \ | ||||
-DSECP256K1_ENABLE_JNI=$JNI \ | -DSECP256K1_ENABLE_JNI=$JNI \ | ||||
-DSECP256K1_ENABLE_ENDOMORPHISM=$ENDOMORPHISM \ | -DSECP256K1_ENABLE_ENDOMORPHISM=$ENDOMORPHISM \ | ||||
-DSECP256K1_ENABLE_BIGNUM=$BIGNUM \ | -DSECP256K1_ENABLE_BIGNUM=$BIGNUM \ | ||||
-DSECP256K1_USE_ASM=$ASM \ | -DSECP256K1_USE_ASM=$ASM \ | ||||
-DUSE_FIELD=$FIELD \ | -DSECP256K1_TEST_OVERRIDE_WIDE_MULTIPLY=$WIDEMUL \ | ||||
-DUSE_SCALAR=$SCALAR \ | |||||
$ECMULT_GEN_PRECISION_ARG \ | $ECMULT_GEN_PRECISION_ARG \ | ||||
$CMAKE_EXTRA_FLAGS | $CMAKE_EXTRA_FLAGS | ||||
ninja $CMAKE_TARGET | ninja $CMAKE_TARGET | ||||
if [ -n "$VALGRIND" ]; then | if [ -n "$VALGRIND" ]; then | ||||
# the `--error-exitcode` is required to make the test fail if valgrind found | # the `--error-exitcode` is required to make the test fail if valgrind found | ||||
# errors, otherwise it'll return 0 | # errors, otherwise it'll return 0 | ||||
# (http://valgrind.org/docs/manual/manual-core.html) | # (http://valgrind.org/docs/manual/manual-core.html) | ||||
valgrind --error-exitcode=42 ./secp256k1-tests 16 | valgrind --error-exitcode=42 ./secp256k1-tests 16 | ||||
valgrind --error-exitcode=42 ./secp256k1-exhaustive_tests | valgrind --error-exitcode=42 ./secp256k1-exhaustive_tests | ||||
fi | fi | ||||
popd | popd |