2014-10-14 22:11:49 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-10-14 23:22:02 +02:00
|
|
|
inifile() {
|
2014-10-14 23:18:01 +02:00
|
|
|
if [ ! -e eressea.ini ]; then
|
|
|
|
cp conf/eressea.ini .
|
|
|
|
build/iniparser/inifile eressea.ini add lua:paths lunit:scripts
|
|
|
|
fi
|
2014-10-14 23:22:02 +02:00
|
|
|
}
|
2014-10-14 23:18:01 +02:00
|
|
|
|
2014-10-14 22:11:49 +02:00
|
|
|
[ -d build ] || mkdir build
|
|
|
|
cd build && cmake .. \
|
|
|
|
-DCMAKE_MODULE_PATH=$PWD/../cmake/Modules \
|
|
|
|
-DCMAKE_BUILD_TYPE=Debug .. && \
|
2014-10-14 23:22:02 +02:00
|
|
|
make && cd .. && inifile &&
|
2014-10-14 22:11:49 +02:00
|
|
|
build/eressea/test_eressea &&
|
2014-10-14 23:10:00 +02:00
|
|
|
build/eressea/eressea -v1 scripts/run-tests.lua
|