2014-10-14 22:11:49 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-05-21 17:29:13 +02:00
|
|
|
ROOT=`pwd`
|
2015-05-21 16:30:14 +02:00
|
|
|
|
2014-10-14 23:22:02 +02:00
|
|
|
inifile() {
|
2015-05-21 17:29:13 +02:00
|
|
|
cd $ROOT
|
2014-10-14 23:18:01 +02:00
|
|
|
if [ ! -e eressea.ini ]; then
|
|
|
|
cp conf/eressea.ini .
|
2015-05-21 16:30:14 +02:00
|
|
|
$BUILD/iniparser/inifile eressea.ini add lua:paths lunit:scripts
|
2014-10-14 23:18:01 +02:00
|
|
|
fi
|
2014-10-14 23:22:02 +02:00
|
|
|
}
|
2014-10-14 23:18:01 +02:00
|
|
|
|
2016-10-03 16:16:17 +02:00
|
|
|
integration_tests() {
|
2016-09-14 17:14:04 +02:00
|
|
|
cd tests
|
|
|
|
./write-reports.sh
|
|
|
|
./run-turn.sh
|
|
|
|
}
|
|
|
|
|
2017-12-31 20:26:24 +01:00
|
|
|
cppcheck_tests() {
|
|
|
|
cppcheck --version
|
|
|
|
DIRS="util kernel modules races attributes triggers items tools spells"
|
|
|
|
IGNORE=""
|
|
|
|
for DIR in $DIRS ; do
|
|
|
|
IGNORE="$IGNORE -i src/$DIR"
|
|
|
|
echo "cppcheck src/$DIR"
|
|
|
|
cppcheck --quiet -Isrc -Iclibs -Istorage -IcJSON --error-exitcode=1 "src/$DIR"
|
|
|
|
done
|
|
|
|
echo "cppcheck src"
|
|
|
|
cppcheck --quiet -Isrc -Iclibs -Istorage -IcJSON --error-exitcode=1 $IGNORE src
|
|
|
|
}
|
|
|
|
|
2015-08-16 19:55:11 +02:00
|
|
|
set -e
|
2015-07-11 23:25:09 +02:00
|
|
|
[ -z $BUILD ] && BUILD=Debug ; export BUILD
|
2017-12-31 20:47:40 +01:00
|
|
|
# cppcheck_tests
|
2018-09-29 09:58:23 +02:00
|
|
|
s/cmake-init --db=sqlite
|
2019-01-22 16:17:16 +01:00
|
|
|
cd Debug
|
|
|
|
scan-build make
|
|
|
|
cd ../process
|
2017-12-08 19:26:26 +01:00
|
|
|
make
|
2015-05-21 17:29:13 +02:00
|
|
|
cd $ROOT
|
|
|
|
inifile
|
2017-10-10 21:30:53 +02:00
|
|
|
s/runtests -V
|
2016-10-03 16:16:17 +02:00
|
|
|
integration_tests
|