Commit | Line | Data |
---|---|---|
12e86ecb | 1 | #!/bin/bash |
a9b9b162 | 2 | set -eu |
12e86ecb | 3 | |
cf6d8924 | 4 | CI_TARGET_ARCH="${BUILD_ARCH:-$TRAVIS_CPU_ARCH}" |
12e86ecb | 5 | EXTRA_CFLAGS="-Werror" |
a9b9b162 | 6 | export PYTHONUNBUFFERED=TRUE |
cf6d8924 | 7 | CONFIGURE_FLAGS=() |
12e86ecb | 8 | |
cf6d8924 SW |
9 | case "$TRAVIS_OS_NAME" in |
10 | "linux") | |
11 | CONFIGURE_FLAGS+=(--enable-libiscsi) | |
12 | case "$CI_TARGET_ARCH" in | |
13 | "x86") | |
14 | EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32" | |
d6e082e7 | 15 | export LDFLAGS="-m32" |
cf6d8924 SW |
16 | ;; |
17 | "amd64") | |
18 | CONFIGURE_FLAGS+=(--enable-cuda) | |
19 | ;; | |
20 | esac | |
21 | ;; | |
22 | esac | |
23 | CONFIGURE_FLAGS+=(--extra-cflags="${EXTRA_CFLAGS}") | |
12e86ecb | 24 | |
cf6d8924 | 25 | ./configure "${CONFIGURE_FLAGS[@]}" && |
12e86ecb BVA |
26 | make && |
27 | make test && | |
cf6d8924 | 28 | if [[ "$CI_TARGET_ARCH" == "arm64" ]]; then |
a9b9b162 | 29 | sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug -p 1010:"--skip 15 16 17 18 19 20" |
12e86ecb | 30 | else |
a9b9b162 | 31 | sudo python3 t/run-fio-tests.py --skip 6 1007 1008 --debug |
12e86ecb | 32 | fi |