mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
23 lines
280 B
Bash
23 lines
280 B
Bash
#!/bin/sh
|
|
|
|
CMAKE=cmake
|
|
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON"
|
|
NPROC=`nproc`
|
|
CURDIR=$PWD
|
|
RUN_TESTS=true
|
|
|
|
RUN() {
|
|
"$@"
|
|
}
|
|
|
|
TESTS() {
|
|
COUNT="$1"; shift
|
|
"$@" || {
|
|
if [ $COUNT -gt 1 ]; then
|
|
TESTS `expr $COUNT - 1` "$@"
|
|
else
|
|
false
|
|
fi
|
|
}
|
|
}
|