forked from github/server
latest cutest revision
This commit is contained in:
parent
b769be0f60
commit
bcc116825b
2
cutest
2
cutest
|
@ -1 +1 @@
|
||||||
Subproject commit d83cec09a52835274ab8ed4849de16fb8658982a
|
Subproject commit 788659594ef87e9f497b8039da764182adfd2943
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/sh
|
||||||
|
ROOT=$(pwd)
|
||||||
|
while [ ! -d $ROOT/.git ]; do
|
||||||
|
ROOT=$(dirname $ROOT)
|
||||||
|
done
|
||||||
|
|
||||||
|
[ -z "$CC" ] && [ ! -z `which gcc` ] && CC="gcc"
|
||||||
|
[ -z "$CC" ] && [ ! -z `which tcc` ] && CC="tcc"
|
||||||
|
[ -z "$CC" ] && [ ! -z `which cc` ] && CC="cc"
|
||||||
|
MACHINE=`uname -m`
|
||||||
|
BIN_DIR="build-$MACHINE-$CC-Debug"
|
||||||
|
if [ ! -d $ROOT/$BIN_DIR ]; then
|
||||||
|
echo "cannot find build directory $BIN_DIR in $ROOT. did you run cmake-init?"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $ROOT/$BIN_DIR
|
||||||
|
make && make test
|
||||||
|
cd -
|
Loading…
Reference in New Issue