X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5033c8a6dff2d6319336b8c92581d93068d8edb6..42440b08eadbc14cde1b1f7bffe268c69e5e12be:/build/buildbot/config/include/defs.xml diff --git a/build/buildbot/config/include/defs.xml b/build/buildbot/config/include/defs.xml index 3ae8dc3448..d589ed387d 100644 --- a/build/buildbot/config/include/defs.xml +++ b/build/buildbot/config/include/defs.xml @@ -6,7 +6,7 @@ Author: Mike Wetherell RCS-ID: $Id$ Copyright: (c) 2007 Mike Wetherell - Licence: wxWidgets licence + Licence: wxWindows licence --> - + + @@ -347,10 +348,10 @@ - + - + @@ -360,6 +361,7 @@ + cd tests && runtests.bat @@ -367,10 +369,47 @@ cd tests && runtests.bat + ERR=0 cd tests || exit 0 -./test -t || ERR=$? -if [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui -t || ERR=$?; fi +ulimit -c unlimited + +try() +{ + rm -f core + echo Running: "$@" + "$@" || ERR=$? + + if [ -f core -a -x "`which gdb`" ]; then + echo Crashed, attempting to display backtrace: + gdb -batch -c core -ex 'set pagination off' -ex bt "$1" + fi + + echo +} + +try ./test + +test -x test_gui || exit $ERR + +if [ -z "$DISPLAY" ]; then + echo '$DISPLAY is not set, skipping GUI tests.' + exit $ERR +fi + +echo 'Checking window manager:' +WINDOW_MANAGER=$(xprop -root 32x '\n$0\n' _NET_SUPPORTING_WM_CHECK | grep ^0x) + +if [ -z "$WINDOW_MANAGER" ]; then + echo 'Window manager not present, skipping GUI tests.' + exit $ERR +fi + +xprop -id $WINDOW_MANAGER 8s _NET_WM_NAME +echo + +try ./test_gui + exit $ERR