X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/152442d40dc660fffb1724370484a6ce7e519914..337bbb7a06504cf5f55b77ce0a17956b76a5f186:/build/buildbot/config/include/defs.xml diff --git a/build/buildbot/config/include/defs.xml b/build/buildbot/config/include/defs.xml index 5b854d5aee..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://biolpc22.york.ac.uk/pub + + + - + + @@ -347,10 +360,10 @@ - + - + @@ -360,6 +373,7 @@ + cd tests && runtests.bat @@ -367,10 +381,47 @@ cd tests && runtests.bat + ERR=0 cd tests || exit 0 -./test || ERR=$? -if [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui || 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