mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00

git-subtree-dir: src/minisketch git-subtree-split: 89629eb2c7e262b39ba489b93b111760baded4b3
41 lines
665 B
Bash
Executable file
41 lines
665 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
set -x
|
|
|
|
export LC_ALL=C
|
|
|
|
env >> test_env.log
|
|
|
|
$CC -v || true
|
|
valgrind --version || true
|
|
|
|
./autogen.sh
|
|
|
|
FIELDS=
|
|
if [ -n "$ENABLE_FIELDS" ]; then
|
|
FIELDS="--enable-fields=$ENABLE_FIELDS"
|
|
fi
|
|
./configure --host="$HOST" --enable-benchmark="$BENCH" $FIELDS
|
|
|
|
# We have set "-j<n>" in MAKEFLAGS.
|
|
make
|
|
|
|
# Print information about binaries so that we can see that the architecture is correct
|
|
file test* || true
|
|
file bench* || true
|
|
file .libs/* || true
|
|
|
|
if [ -n "$BUILD" ]
|
|
then
|
|
make "$BUILD"
|
|
fi
|
|
|
|
if [ -n "$EXEC_CMD" ]; then
|
|
$EXEC_CMD ./test $TESTRUNS
|
|
$EXEC_CMD ./test-verify $TESTRUNS
|
|
fi
|
|
|
|
if [ "$BENCH" = "yes" ]; then
|
|
$EXEC_CMD ./bench
|
|
fi
|