server/s/runtests

20 lines
463 B
Plaintext
Raw Normal View History

#!/bin/bash
ROOT=$(pwd)
while [ ! -d $ROOT/.git ]; do
ROOT=$(dirname $ROOT)
done
2015-07-11 23:25:09 +02:00
[ -z $BUILD ] && BUILD=Debug ; export BUILD
2015-07-11 23:25:09 +02:00
if [ ! -e $ROOT/$BUILD ]; then
echo "cannot find build directory $BUILD in $ROOT. did you run cmake-init?"
exit
fi
2015-07-11 23:25:09 +02:00
$ROOT/$BUILD/eressea/test_eressea
cd $ROOT
[ -e eressea.ini ] || ln -sf conf/eressea.ini
2015-07-11 23:25:09 +02:00
$ROOT/$BUILD/eressea/eressea -v0 sacripts/run-tests.lua
$ROOT/$BUILD/eressea/eressea -v0 scripts/run-tests-e3.lua
cd $OLDWPD