summaryrefslogtreecommitdiffhomepage
path: root/integration-tests.sh
blob: f69614109f5586af8693a1f4dd09747f86bd70ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

if [ "$UID" -ne 0 ]; then
    echo "WARNING: Not running as root, some tests may fail" >&2
fi

MULLVAD_DIR="$(cd "$(dirname "$0")"; pwd -P)"

pushd "$MULLVAD_DIR"

cargo build \
    && cd mullvad-tests \
    && cargo test --features "integration-tests" -- --test-threads=1

RESULT="$?"
popd
exit "$RESULT"