From: Michael Wetherell Date: Thu, 4 Oct 2007 15:55:18 +0000 (+0000) Subject: Add buildbot tools and config include files. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c005fb28098b19df0483e75790a3372aeb8370b9 Add buildbot tools and config include files. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/build/buildbot/config/common.xml b/build/buildbot/config/common.xml index 2e2f0daa9e..3a8c77787f 100644 --- a/build/buildbot/config/common.xml +++ b/build/buildbot/config/common.xml @@ -19,12 +19,12 @@ diff --git a/build/buildbot/config/example.xml b/build/buildbot/config/example.xml index 5c79147ba5..e7bde42b32 100644 --- a/build/buildbot/config/example.xml +++ b/build/buildbot/config/example.xml @@ -11,6 +11,9 @@ There is one xml file such as this per build slave containing a element for each build the slave runs. Each corresponds to a column in the waterfall display. + + For full documentation see: + http://www.wxwidgets.org/wiki/index.php/Development:_Buildbot --> + + + + + + +http://svn.wxwidgets.org/svn/wx/wxWidgets/ +branches/WX_2_8_BRANCH + + + + + + + + + + + + + + + + + + + + + + + + + + + ./configure + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + compiling + + + compile + + + + + + + + cd && + + + + + + + + + + running tests + run tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/buildbot/config/run-tests.sh b/build/buildbot/config/run-tests.sh new file mode 100755 index 0000000000..eb22eae62e --- /dev/null +++ b/build/buildbot/config/run-tests.sh @@ -0,0 +1,29 @@ +# Run the test suites +# Running them one at a time gives more readable results and shows up errors +# in the suite names. +set -e +cd tests + +case `uname -sm` in + CYGWIN*|MINGW32*) PATH=../lib:$PATH ;; + Darwin*) DYLD_LIBRARY_PATH=../lib:$DYLD_LIBRARY_PATH ;; + *) LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ;; +esac + +test -x test_gui && TEST_GUI=./test_gui +ERR=0 + +for prog in ./test $TEST_GUI; do + if [ -x $prog ]; then + SUITES=`$prog -l | grep '^ [^ ]'` + for SUITE in $SUITES; do + echo + echo $SUITE + echo $SUITE | sed 's/./-/g' + $prog $SUITE || ERR=1 + echo + done + fi +done + +exit $ERR diff --git a/build/buildbot/config/testdrive-inc.xml b/build/buildbot/config/testdrive-inc.xml new file mode 100644 index 0000000000..71242d4281 --- /dev/null +++ b/build/buildbot/config/testdrive-inc.xml @@ -0,0 +1,300 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +mkdir -p $TOPDIR +chown $USER $TOPDIR +rm -rf $BUILDDIR +cp -pR . $BUILDDIR || { cd; rm -rf $BUILDDIR; exit 1; } + + + + + + + + + + ./configure --disable-precomp-headers + + find . -name Makefile | xargs perl -pi -e 's/^(?:CC|CXX) = /$&ccache /' + + + + + + + + + + + + +setting up +set up + + +MINSPACE=1000000 +DSPACE=`df -Pk $BUILDDIR | tail -1 | awk '{ print $4 }'` +if [ $DSPACE -lt $MINSPACE ]; then + echo "Disk space low, skipping build" + exit 1 +fi +if [ -z "$CCACHE_DIR" ]; then + gunzip -c $HOME/src/ccache-*.tar.gz | tar xf - + cd ccache-* + + make + strip ccache + make install + cd $BUILDDIR + rm -r ccache-* +fi +if { cppunit-config --version || "$CPPUNIT_CONFIG" --version; } 2>/dev/null; then + HAVE_CPPUNIT=1 +fi +if [ -z "$HAVE_CPPUNIT" ]; then + gunzip -c $HOME/src/cppunit-*.tar.gz | tar xf - + cd cppunit-* + + make install-strip + chmod +x $OPTDIR/bin/cppunit-config + cd $BUILDDIR + rm -rf cppunit-* +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +set -e +uname -smnr +umask 022 +LANG=C +TOPDIR= +BUILDDIR=$TOPDIR/build +OPTDIR=$HOME/opt/ + + + + + + +INSTALLDIR=$TOPDIR/install +case `uname -sm` in + Linux*86*) PATH=$HOME/linux-x86/bin:$PATH ;; +esac +PATH=$OPTDIR/bin:$PATH +LD_LIBRARY_PATH=$BUILDDIR/lib:$OPTDIR/lib:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH +if { ccache -V; } >/dev/null 2>&1; then + CCACHE_DIR=$TOPDIR/ccache + export CCACHE_DIR + ccache -M 90M +fi +cd $BUILDDIR +trap 'cd; rm -rf $BUILDDIR' EXIT + + + + + + + + trap '' EXIT + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/buildbot/tools/bot.xsd b/build/buildbot/tools/bot.xsd new file mode 100644 index 0000000000..f19fbc1c36 --- /dev/null +++ b/build/buildbot/tools/bot.xsd @@ -0,0 +1,6 @@ + + + + + + diff --git a/build/buildbot/tools/embedded.xsl b/build/buildbot/tools/embedded.xsl new file mode 100644 index 0000000000..ee429f0f60 --- /dev/null +++ b/build/buildbot/tools/embedded.xsl @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + + + + +