X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2e0a94b08b11d028e10f57bbec1fbc3bf76757f..337bbb7a06504cf5f55b77ce0a17956b76a5f186:/build/buildbot/config/include/defs.xml diff --git a/build/buildbot/config/include/defs.xml b/build/buildbot/config/include/defs.xml index a3531c51d8..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 + + + + + @@ -344,10 +360,10 @@ - + - + @@ -355,75 +371,58 @@ - - - - - - - running tests with timing - run tests with timing - - - - - - - - - - - - - - - - - - + + -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 [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui; fi - - + + +ERR=0 +cd tests || exit 0 +ulimit -c unlimited - - -cd tests && -(for /d %x in (..\lib\*_dll) do @PATH=%x;%PATH%) && -(for /d %x in (*) do @if exist %x\test.exe %x\test -t) && -(for /d %x in (*) do @if exist %x\test_gui.exe %x\test_gui -t) - - +try() +{ + rm -f core + echo Running: "$@" + "$@" || ERR=$? - - -cd tests && -./test -t && -if [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui; fi - + 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