mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
19 lines
402 B
Bash
19 lines
402 B
Bash
#!/bin/sh
|
|
|
|
CMAKE=cmake
|
|
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON"
|
|
NPROC=`nproc`
|
|
CURDIR=$PWD
|
|
RUN_TESTS=true
|
|
|
|
RUN() {
|
|
"$@"
|
|
}
|
|
|
|
TESTS() {
|
|
# Keep running tests until they eventually succeed or Travis times out after
|
|
# 50 minutes. This cuts down on the time lost when tests fail, because we no
|
|
# longer need to manually restart the build and wait for compilation.
|
|
"$@" || TESTS "$@"
|
|
}
|