Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/travis/build_cmake.sh
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | ${CMAKE_COMMAND} -GNinja .. \ | ||||
-DSECP256K1_ENABLE_BIGNUM=$BIGNUM \ | -DSECP256K1_ENABLE_BIGNUM=$BIGNUM \ | ||||
-DSECP256K1_USE_ASM=$ASM \ | -DSECP256K1_USE_ASM=$ASM \ | ||||
-DSECP256K1_TEST_OVERRIDE_WIDE_MULTIPLY=$WIDEMUL \ | -DSECP256K1_TEST_OVERRIDE_WIDE_MULTIPLY=$WIDEMUL \ | ||||
$ECMULT_GEN_PRECISION_ARG \ | $ECMULT_GEN_PRECISION_ARG \ | ||||
$CMAKE_EXTRA_FLAGS | $CMAKE_EXTRA_FLAGS | ||||
ninja $CMAKE_TARGET | ninja $CMAKE_TARGET | ||||
if [ "$VALGRIND" = "yes" ]; then | if [ "$RUN_VALGRIND" = "yes" ]; 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 |