Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/travis/build_autotools.sh
Show All 33 Lines | ../configure \ | ||||
--enable-openssl-tests=$OPENSSL_TESTS \ | --enable-openssl-tests=$OPENSSL_TESTS \ | ||||
$AUTOTOOLS_EXTRA_FLAGS \ | $AUTOTOOLS_EXTRA_FLAGS \ | ||||
$USE_HOST | $USE_HOST | ||||
print_logs() { | print_logs() { | ||||
cat tests.log || : | cat tests.log || : | ||||
cat exhaustive_tests.log || : | cat exhaustive_tests.log || : | ||||
cat valgrind_ctime_test.log || : | cat valgrind_ctime_test.log || : | ||||
cat bench.log || : | |||||
} | } | ||||
trap 'print_logs' ERR | trap 'print_logs' ERR | ||||
make -j2 $AUTOTOOLS_TARGET | make -j2 $AUTOTOOLS_TARGET | ||||
if [ -n "$BENCH" ]; then | |||||
if [ -n "$VALGRIND" ]; then | |||||
EXEC='libtool --mode=execute valgrind --error-exitcode=42'; | |||||
else | |||||
EXEC= ; | |||||
fi | |||||
$EXEC ./bench_ecmult &>> bench.log | |||||
$EXEC ./bench_internal &>> bench.log | |||||
$EXEC ./bench_sign &>> bench.log | |||||
$EXEC ./bench_verify &>> bench.log | |||||
if [ "$RECOVERY" == "yes" ]; then | |||||
$EXEC ./bench_recover &>> bench.log | |||||
fi | |||||
if [ "$ECDH" == "yes" ]; then | |||||
$EXEC ./bench_ecdh &>> bench.log | |||||
fi | |||||
if [ -n "$CTIMETEST" ]; then | if [ -n "$CTIMETEST" ]; then | ||||
libtool --mode=execute valgrind ./valgrind_ctime_test &> valgrind_ctime_test.log | libtool --mode=execute valgrind ./valgrind_ctime_test &> valgrind_ctime_test.log | ||||
fi | fi | ||||
popd | popd |