server/s/runtests

26 lines
651 B
Text
Raw Normal View History

#!/bin/bash
2015-05-21 17:44:36 +02:00
set -e
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
$ROOT/$BUILD/eressea/eressea -v0 scripts/run-tests.lua
$ROOT/$BUILD/eressea/eressea -v0 scripts/run-tests-e2.lua
2015-07-11 23:25:09 +02:00
$ROOT/$BUILD/eressea/eressea -v0 scripts/run-tests-e3.lua
$ROOT/$BUILD/eressea/eressea -v0 scripts/run-tests-e4.lua
2016-09-16 16:54:41 +02:00
rm -rf data reports orders.txt score score.alliances datum turn
2015-05-21 13:18:52 +02:00
cd $OLDWPD