X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/274e715714d02f866cedccd756c870b9c2daf8cc..337bbb7a06504cf5f55b77ce0a17956b76a5f186:/build/buildbot/config/include/defs.xml?ds=inline diff --git a/build/buildbot/config/include/defs.xml b/build/buildbot/config/include/defs.xml index e90f71fd14..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_0_BRANCH + +http://biolpc22.york.ac.uk/pub + + + + + @@ -343,10 +360,10 @@ - + - + @@ -354,25 +371,58 @@ - + + -cd tests && -(for /d %x in (..\lib\*_dll) do @PATH=%x;%PATH%) && -(for /d %x in (*) do @if exist %x\test.exe %x\test) && -(for /d %x in (*) do @if exist %x\test_gui.exe %x\test_gui) +cd tests && runtests.bat - -cd tests && -./test && -if [ -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