toxcore/other/travis/env-linux.sh

21 lines
259 B
Bash
Raw Normal View History

#!/bin/sh
CMAKE=cmake
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON"
NPROC=`nproc`
CURDIR=$PWD
RUN_TESTS=true
RUN() {
"$@"
}
TESTS() {
2017-01-19 23:58:03 +08:00
COUNT="$1"; shift
"$@" || {
if [ $COUNT -gt 1 ]; then
TESTS `expr $COUNT - 1` "$@"
fi
}
}