6 if [ "$HOST" = "i686-linux-gnu" ]
10 if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$TRAVIS_COMPILER" = "gcc" ]
16 --enable-experimental="$EXPERIMENTAL" --enable-endomorphism="$ENDOMORPHISM" \
17 --with-field="$FIELD" --with-bignum="$BIGNUM" --with-asm="$ASM" --with-scalar="$SCALAR" \
18 --enable-ecmult-static-precomputation="$STATICPRECOMPUTATION" --with-ecmult-gen-precision="$ECMULTGENPRECISION" \
19 --enable-module-ecdh="$ECDH" --enable-module-recovery="$RECOVERY" \
20 --host="$HOST" $EXTRAFLAGS
26 if [ "$VALGRIND" = "yes" ]
29 # the `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (http://valgrind.org/docs/manual/manual-core.html)
30 valgrind --error-exitcode=42 ./tests 16
31 valgrind --error-exitcode=42 ./exhaustive_tests
33 if [ "$BENCH" = "yes" ]
35 if [ "$VALGRIND" = "yes" ]
37 # Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool
38 EXEC='./libtool --mode=execute valgrind --error-exitcode=42'
42 # This limits the iterations in the benchmarks below to ITER(set in .travis.yml) iterations.
43 export SECP256K1_BENCH_ITERS="$ITERS"
46 $EXEC ./bench_internal
50 if [ "$RECOVERY" = "yes" ]
52 $EXEC ./bench_recover >> bench.log 2>&1
54 if [ "$ECDH" = "yes" ]
56 $EXEC ./bench_ecdh >> bench.log 2>&1
59 if [ "$CTIMETEST" = "yes" ]
61 ./libtool --mode=execute valgrind --error-exitcode=42 ./valgrind_ctime_test > valgrind_ctime_test.log 2>&1