aboutsummaryrefslogtreecommitdiff
path: root/src/minisketch/ci/cirrus.sh
blob: 36250d165195d46ee57b3ae249c5d9613a7842d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

set -e
set -x

export LC_ALL=C

env >> test_env.log

$CXX -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$EXEC_EXT" $TESTRUNS
    $EXEC_CMD "./test-verify$EXEC_EXT" $TESTRUNS
fi

if [ "$BENCH" = "yes" ]; then
    $EXEC_CMD "./bench$EXEC_EXT"
fi