2014-04-12 05:25:21 +02:00
|
|
|
#!/bin/bash
|
2015-05-24 10:31:11 +02:00
|
|
|
set -e
|
|
|
|
|
2014-04-12 05:25:21 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
$ROOT/$BIN_DIR/eressea/test_eressea
|
2014-06-14 02:35:43 +02:00
|
|
|
cd $ROOT
|
2014-12-11 11:22:14 +01:00
|
|
|
[ -e eressea.ini ] || ln -sf conf/eressea.ini
|
2014-08-03 12:43:16 +02:00
|
|
|
$ROOT/$BIN_DIR/eressea/eressea -v0 scripts/run-tests.lua
|
2014-12-31 21:07:42 +01:00
|
|
|
$ROOT/$BIN_DIR/eressea/eressea -v0 scripts/run-tests-e3.lua
|
2014-07-03 06:35:16 +02:00
|
|
|
cd $OLDWPD
|