2014-04-12 05:25:21 +02:00
|
|
|
#!/bin/bash
|
|
|
|
ROOT=$(pwd)
|
|
|
|
while [ ! -d $ROOT/.git ]; do
|
|
|
|
ROOT=$(dirname $ROOT)
|
|
|
|
done
|
|
|
|
|
|
|
|
MACHINE=`uname -m`
|
|
|
|
[ -z "$CC" ] && [ ! -z `which gcc` ] && CC="gcc"
|
|
|
|
[ -z "$CC" ] && [ ! -z `which tcc` ] && CC="tcc"
|
|
|
|
[ -z "$CC" ] && [ ! -z `which cc` ] && CC="cc"
|
|
|
|
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
|
|
|
|
|
|
|
|
echo $ROOT
|
|
|
|
$ROOT/$BIN_DIR/eressea/test_eressea
|
|
|
|
pushd $ROOT/game-e2
|
2014-05-05 00:54:56 +02:00
|
|
|
$ROOT/$BIN_DIR/eressea/eressea runtests.lua
|
2014-04-12 05:25:21 +02:00
|
|
|
cd $ROOT/game-e3
|
2014-05-05 00:54:56 +02:00
|
|
|
$ROOT/$BIN_DIR/eressea/eressea runtests.lua
|
2014-04-12 05:25:21 +02:00
|
|
|
popd
|