summaryrefslogtreecommitdiff
path: root/build/testfiledye.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-15 19:01:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-15 19:01:59 +0300
commitf06424172d147bc444cf4f0c95ff3d92864d5f88 (patch)
tree108c96a6673ecca81bc6226f3795ee6e71644ddd /build/testfiledye.sh
parent39e19833f3cdb67b53544f3a8787628e484a50ef (diff)
downloadmanaverse-f06424172d147bc444cf4f0c95ff3d92864d5f88.tar.gz
manaverse-f06424172d147bc444cf4f0c95ff3d92864d5f88.tar.bz2
manaverse-f06424172d147bc444cf4f0c95ff3d92864d5f88.tar.xz
manaverse-f06424172d147bc444cf4f0c95ff3d92864d5f88.zip
Add scripts for test separate file with gcc/deheader.
Diffstat (limited to 'build/testfiledye.sh')
-rwxr-xr-xbuild/testfiledye.sh61
1 files changed, 61 insertions, 0 deletions
diff --git a/build/testfiledye.sh b/build/testfiledye.sh
new file mode 100755
index 000000000..55a6c97a0
--- /dev/null
+++ b/build/testfiledye.sh
@@ -0,0 +1,61 @@
+#!/bin/bash
+
+cd ../src
+
+export includes="-I. -I/usr/include -I/usr/include/SDL -I/usr/include/libxml2"
+export LOGFILE="../build/testfile.log"
+
+function run {
+ export CXX="g++-5"
+
+ export CMD="$CXX -c $1 $2 $3"
+ echo $CMD >>${LOGFILE}
+ $CMD 2>>${LOGFILE}
+
+ export CMD="$CXX -c -std=gnu++1z $1 $2 $3"
+ $CMD 2>>${LOGFILE}
+
+ ../../deheader/deheader -q -i "\"debug.h\"" \
+ -i "\"utils/checkutils.h\"" \
+ -i "\"utils/sdlcheckutils.h\"" \
+ -i "\"sdlshared.h\"" \
+ -i "\"localconsts.h\"" \
+ -i "\"utils/fuzzer.h\"" \
+ -i "\"utils/physfscheckutils.h\"" \
+ -i "\"$name\"" \
+ -c "$CXX" \
+ -d "$1" \
+ -s "-std=gnu++1z" \
+ -m "-c -Werror -Wall -Wextra -Wundef -Wmissing-declarations -DLOCALEDIR=\\\"\\\" $2" $3 \
+ | grep -v "portability requires" >> ${LOGFILE}
+
+ echo ---------------------------- >>${LOGFILE}
+}
+
+echo >${LOGFILE}
+
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DDYECMD" "$includes" "$1"
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DENABLE_NLS -DDYECMD" "$includes" "$1"
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
+
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DDYECMD" "$includes" "$1"
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DENABLE_NLS -DDYECMD" "$includes" "$1"
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
+
+export includes="-I. -I/usr/include -I/usr/include/SDL2 -I/usr/include/libxml2"
+
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DDYECMD" "$includes" "$1"
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DUSE_OPENGL -DDYECMD" "$includes" "$1"
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DENABLE_NLS -DDYECMD" "$includes" "$1"
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
+run "-DENABLE_LIBXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
+
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DDYECMD" "$includes" "$1"
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DUSE_OPENGL -DDYECMD" "$includes" "$1"
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DENABLE_NLS -DDYECMD" "$includes" "$1"
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
+run "-DENABLE_PUGIXML -DDEBUGBUILD -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"