X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e6e5fc88f21c3c8109f346e2b9efe897e33f17a..337bbb7a06504cf5f55b77ce0a17956b76a5f186:/build/buildbot/config/include/defs.xml diff --git a/build/buildbot/config/include/defs.xml b/build/buildbot/config/include/defs.xml index e805c3dbc3..c275cdf033 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 --> http://svn.wxwidgets.org/svn/wx/wxWidgets/ branches/WX_2_8_BRANCH -branches/WX_2_9_BRANCH +branches/WX_2_9_0_BRANCH http://biolpc22.york.ac.uk/pub + + + - + + @@ -347,10 +360,10 @@ - + - + @@ -360,6 +373,7 @@ + cd tests && runtests.bat @@ -367,11 +381,48 @@ cd tests && runtests.bat - -cd tests && -./test && -if [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui; fi - + +ERR=0 +cd tests || exit 0 +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