summaryrefslogtreecommitdiff
path: root/other/travis/env-freebsd.sh
blob: 16e93467c27d8262fff052ee783e116c7037f0d8 (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
#!/bin/sh

CMAKE=cmake
# Asan is disabled because it's currently broken in FreeBSD 11.
# We should try enabling it in the next FreeBSD release and see if it works.
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DASAN=OFF"
NPROC=`nproc`
CURDIR=/root
RUN_TESTS=true
MAKE=gmake

SCREEN_SESSION=freebsd
SSH_PORT=10022

RUN() {
  ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@localhost -p $SSH_PORT "$@"
}

TESTS() {
  COUNT="$1"; shift
  RUN "$@" || {
    if [ $COUNT -gt 1 ]; then
      TESTS `expr $COUNT - 1` "$@"
    else
      # FIXME: We allow the tests to fail for now, but this should be changed to
      #        "false" once we fix tests under FreeBSD
      true
    fi
  }
}