diff options
Diffstat (limited to 'tools/buildbot')
66 files changed, 3140 insertions, 0 deletions
diff --git a/tools/buildbot/master/README b/tools/buildbot/master/README new file mode 100644 index 0000000..35fbff0 --- /dev/null +++ b/tools/buildbot/master/README @@ -0,0 +1,7 @@ +The BuildBot Master is managed by the ASF Infrastructure team. + +This was announced per this email: +https://mail-archives.apache.org/mod_mbox/subversion-dev/201005.mbox/%3CAANLkTilvSpSwJHLlJVpKpGVAI2-JQyGqLqCn1Sjgo-Qf@mail.gmail.com%3E + +The new BuildBot Master configuration is maintained here: +https://svn.apache.org/repos/infra/infrastructure/buildbot/aegis/buildmaster/master1/ diff --git a/tools/buildbot/slaves/README b/tools/buildbot/slaves/README new file mode 100644 index 0000000..a23fad5 --- /dev/null +++ b/tools/buildbot/slaves/README @@ -0,0 +1,92 @@ +How to setup a buildslave? +-------------------------- + +1. Install Buildbot +------------------- +Buildbot is a Python application, you need to install Python 2.2+. + +Download & install: +- Twisted 2.2: http://twistedmatrix.com/trac/ +- ZopeInterface 3.0.1: http://www.zope.org/Products/ZopeInterface +- Buildbot 0.7.2: http://sourceforge.net/project/showfiles.php?group_id=73177 + +The Buildbot installer creates a buildbot script in /usr/bin. On Windows, +buildbot.bat is installed in the %PYTHON\Scripts folder. + +Test your buildbot install by running the buildbot script. + +2. Creating a buildslave +------------------------ +Creating a buildslave is explained in the Buildbot manual: +http://buildbot.sourceforge.net/manual-0.7.2.html#Creating-a-buildslave + +Before you can install the buildslave, you'll need some information from +the buildmaster administrator: + +- your botname and password. The botname is a unique id for your buildslave. +Current botnames include the OS+version, compiler and processor architecture. +(eg. osx10.4-gcc4.0.1-ia32, xp-vs2003-ia32...) +- hostname and port on which the buildmaster is listening. +- hostname and port on which the TryScheduler is listening. +- username and password for the FTP server where you can send the test log- + files. + +Make sure you fill in the info/host file with some information concerning your +buildslave. + +3. Setting up the buildslave +---------------------------- +A build on a slave is always triggered and managed by the Buildmaster. In fact, +by connecting to the buildmaster, the slave gives full shell access on his +machine to the buildmaster! Make sure you run the slave in an account with +limited access. + +The build process is split in 4 steps. +- svn checkout or update +- build +- check +- clean + +The first step is handled by the buildbot code (SVNStep) and can not be +further configured on the buildslave. +For all the other steps you have to provide scripts and put them in the +slavedir/[botname] folder. + +You can copy and reuse the scripts the other buildbot slave owners use for +Windows, Linux or Mac buildslaves. You can find them here: +http://svn.apache.org/repos/asf/subversion/trunk/tools/buildbot/slaves + +4. Builds +--------- +A build will be triggered each time someone commits changes on trunk or +branches/1.4.x. If the buildslave is not online, then the build will be +stored in the queue and started when the buildslave connects. + +Normally each build only includes the changes of one commit. However, when +multiple changes arive during a previous build, those will be combined in +a next build. + +The buildmaster looks at each commit and decides if they are important enough +to trigger a build. Documentation, contrib, www... changes are typically +ignored. + +5. Try +------ +Buildbot has a feature that allows a Subversion developer to test a patch she's +working on on one of the builders. Example, someone working on Linux might want +to test a major change first on a Windows builder before committing the patch. + +It's up to you to choose whether your buildslave can accept patches or not, +there's no obligation. Basically by allowing patches to be tried on your +buildslave you give people the ability to compile and execute arbitrary code +on your machine. +Try access is password protected and will be reserved to Subversion full +committers. + +How to use the try feature: +TryScheduler is installed on its own dedicated port. It can be used by +a client with 'buildbot try': +http://buildbot.sourceforge.net/manual-0.7.5.html#try + +Contact the buildmaster administrator for the username & password which you +need to use 'buildbot try'. diff --git a/tools/buildbot/slaves/bb-openbsd/svnbuild.sh b/tools/buildbot/slaves/bb-openbsd/svnbuild.sh new file mode 100755 index 0000000..42c3260 --- /dev/null +++ b/tools/buildbot/slaves/bb-openbsd/svnbuild.sh @@ -0,0 +1,28 @@ +#!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -e +set -x + +export JAVA_HOME=/usr/local/jdk-1.7.0 + +branch="$(basename $(svn info . | grep ^URL | cut -d' ' -f2))" +(cd .. && gmake BRANCH="$branch" THREADING="no") diff --git a/tools/buildbot/slaves/bb-openbsd/svncheck-bindings.sh b/tools/buildbot/slaves/bb-openbsd/svncheck-bindings.sh new file mode 100755 index 0000000..9d47b1f --- /dev/null +++ b/tools/buildbot/slaves/bb-openbsd/svncheck-bindings.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -e +set -x + +branch="$(basename $(svn info . | grep ^URL | cut -d' ' -f2))" +export MALLOC_OPTIONS=S +(cd .. && gmake BRANCH="$branch" THREADING="no" svn-check-bindings) +grep -q "^Result: PASS$" tests.log.bindings.pl || exit 1 +grep -q "^OK$" tests.log.bindings.py || exit 1 +grep -q ", 0 failures, 0 errors" tests.log.bindings.rb || exit 1 +#TODO javahl +exit 0 diff --git a/tools/buildbot/slaves/bb-openbsd/svncheck.sh b/tools/buildbot/slaves/bb-openbsd/svncheck.sh new file mode 100755 index 0000000..7d50d98 --- /dev/null +++ b/tools/buildbot/slaves/bb-openbsd/svncheck.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -e +set -x + +branch="$(basename $(svn info . | grep ^URL | cut -d' ' -f2))" +export MALLOC_OPTIONS=S +(cd .. && gmake BRANCH="$branch" PARALLEL="" THREADING="no" \ + MEMCACHED_SERVER="127.0.0.1:11211" \ + EXCLUSIVE_WC_LOCKS=1 \ + svn-check-local \ + svn-check-svn \ + svn-check-neon \ + svn-check-serf) +grep -q "^FAIL:" tests.log.svn-check* && exit 1 +grep -q "^XPASS:" tests.log.svn-check* && exit 1 +exit 0 diff --git a/tools/buildbot/slaves/bb-openbsd/svnclean.sh b/tools/buildbot/slaves/bb-openbsd/svnclean.sh new file mode 100755 index 0000000..063f4dd --- /dev/null +++ b/tools/buildbot/slaves/bb-openbsd/svnclean.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -e +set -x + +branch="$(basename $(svn info . | grep ^URL | cut -d' ' -f2))" +(test -h ../svn-trunk || ln -s build ../svn-trunk) +for i in 6 7 8 9 10; do + (test -h ../svn-1.${i}.x || ln -s build ../svn-1.${i}.x) +done +svn update ../../unix-build +(test -h ../GNUmakefile || ln -s ../unix-build/Makefile.svn ../GNUmakefile) +(cd .. && gmake BRANCH="$branch" reset clean) +rm -f tests.log* fails.log* diff --git a/tools/buildbot/slaves/i686-debian-sarge1/mount-ramdrive.c b/tools/buildbot/slaves/i686-debian-sarge1/mount-ramdrive.c new file mode 100644 index 0000000..1c54ea5 --- /dev/null +++ b/tools/buildbot/slaves/i686-debian-sarge1/mount-ramdrive.c @@ -0,0 +1,35 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + + +#include <stdio.h> +#include <unistd.h> + + +int main() +{ + const char *cmd = "/bin/mount -t tmpfs -o size=50M tmpfs `subversion/tests/cmdline/svn-test-work"; + + setuid(0); + + system(cmd); + +} diff --git a/tools/buildbot/slaves/i686-debian-sarge1/svnbuild.sh b/tools/buildbot/slaves/i686-debian-sarge1/svnbuild.sh new file mode 100755 index 0000000..c1c20ae --- /dev/null +++ b/tools/buildbot/slaves/i686-debian-sarge1/svnbuild.sh @@ -0,0 +1,49 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +echo "========= autogen.sh" +./autogen.sh || exit $? + +echo "========= configure" +./configure --disable-static --enable-shared \ + --enable-maintainer-mode \ + --with-neon=/usr/local/neon-0.25.5 \ + --with-apxs=/usr/sbin/apxs \ + --without-berkeley-db \ + --with-apr=/usr/local/apr \ + --with-apr-util=/usr/local/apr || exit $? + +echo "========= make" +make || exit $? + +# echo "========= make swig-py" +# make swig-py || exit $? + +# echo "========= make swig-pl" +# make swig-pl || exit $? + +#echo "========= make swig-rb" +#make swig-rb || exit $? + +exit 0 diff --git a/tools/buildbot/slaves/i686-debian-sarge1/svncheck.sh b/tools/buildbot/slaves/i686-debian-sarge1/svncheck.sh new file mode 100755 index 0000000..dc06a82 --- /dev/null +++ b/tools/buildbot/slaves/i686-debian-sarge1/svncheck.sh @@ -0,0 +1,45 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + + +set -x + +if test -z "$1" ; then + echo "Missing FS_TYPE specifier (arg #1)." + exit 1 +fi + +echo "========= mount RAM disc" +# ignore the result: if it fails, the test will just take longer... +mkdir -p subversion/tests/cmdline/svn-test-work +test -e ../mount-ramdrive && ../mount-ramdrive + +echo "========= make check" +make check FS_TYPE=$1 CLEANUP=1 || exit $? + +# echo "========= make check-swig-pl" +# make check-swig-pl || exit $? + +#echo "========= make check-swig-rb" +#make check-swig-rb || exit $? + +exit 0 diff --git a/tools/buildbot/slaves/i686-debian-sarge1/svnclean.sh b/tools/buildbot/slaves/i686-debian-sarge1/svnclean.sh new file mode 100755 index 0000000..95d4290 --- /dev/null +++ b/tools/buildbot/slaves/i686-debian-sarge1/svnclean.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +echo "========= unmount RAM disc" +# ignore the result: if there was no ramdisc, that's fine +test -e ../unmount-ramdrive && ../unmount-ramdrive + +echo "========= make extraclean" +test -e Makefile && { make extraclean || exit $?; } + +exit 0 diff --git a/tools/buildbot/slaves/i686-debian-sarge1/svnlog.sh b/tools/buildbot/slaves/i686-debian-sarge1/svnlog.sh new file mode 100755 index 0000000..c2302e1 --- /dev/null +++ b/tools/buildbot/slaves/i686-debian-sarge1/svnlog.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +# upload file to server +FILENAME=tests-`date +%Y%m%d%H%M`.log.tgz +tar -czf $FILENAME tests.log +ftp -n www.mobsol.be < ../ftpscript +rm $FILENAME + +echo "Logs of the testrun can be found here: http://www.mobsol.be/logs/eh-debsarge1/$FILENAME" + +exit 0 diff --git a/tools/buildbot/slaves/i686-debian-sarge1/unmount-ramdrive.c b/tools/buildbot/slaves/i686-debian-sarge1/unmount-ramdrive.c new file mode 100644 index 0000000..5c3dbe7 --- /dev/null +++ b/tools/buildbot/slaves/i686-debian-sarge1/unmount-ramdrive.c @@ -0,0 +1,36 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + + +#include <stdio.h> +#include <unistd.h> + + +int main() +{ + const char *cmd = "/bin/umount `/usr/bin/dirname $0`/build/subversion/tests/cmdline/svn-test-work"; + + setuid(0); + + return system(cmd); + +} + diff --git a/tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c b/tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c new file mode 100644 index 0000000..74b3e6a --- /dev/null +++ b/tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c @@ -0,0 +1,38 @@ +#include <stdio.h> +#include <stdlib.h> +#include <sys/types.h> +#include <unistd.h> +#include <strings.h> + +int main(int argc, char **argv) +{ + const char *cmd; + const char *name = strrchr(argv[0], '/'); + + if (name) + ++name; + else + name = argv[0]; + + if (!strcmp(name, "mount-tmpfs")) + { + cmd = "/usr/sbin/mount -F tmpfs -o size=768m tmpfs /export/home/wandisco/buildbot/slave/svn-sparc-solaris/obj/subversion/tests/"; + } + else if (!strcmp(name, "umount-tmpfs")) + { + cmd = "/usr/sbin/umount /export/home/wandisco/buildbot/slave/svn-sparc-solaris/obj/subversion/tests/"; + } + else + { + fprintf(stderr, "command not recognised\n"); + return -1; + } + + if (setuid(0)) + { + fprintf(stderr, "setuid failed\n"); + return -1; + } + + return system(cmd); +} diff --git a/tools/buildbot/slaves/svn-sparc-solaris/rebuild-svn-bits.sh b/tools/buildbot/slaves/svn-sparc-solaris/rebuild-svn-bits.sh new file mode 100644 index 0000000..4f4c09b --- /dev/null +++ b/tools/buildbot/slaves/svn-sparc-solaris/rebuild-svn-bits.sh @@ -0,0 +1,219 @@ +#!/bin/sh + +GREP=/usr/bin/grep +export GREP +PATH=/usr/bin:/usr/ccs/bin:/opt/csw/bin:/opt/csw/gnu:/export/home/wandisco/buildbot/install/bin +export PATH + +prefix=/export/home/wandisco/buildbot/install + +if [ "$1" = "m4" ] ; then + shift + gunzip -c m4-1.4.14.tar.gz | tar xf - + cd m4-1.4.14 + ./configure --prefix=$prefix + make + make install + cd .. +fi + +if [ "$1" = "autoconf" ] ; then + shift + gunzip -c autoconf-2.68.tar.gz | tar xf - + cd autoconf-2.68 + ./configure --prefix=$prefix + make + make install + cd .. +fi + +if [ "$1" = "openssl" ] ; then + shift + gunzip -c openssl-1.0.1e.tar.gz | tar xf - + cd openssl-1.0.1e + ./Configure --prefix=$prefix solaris64-sparcv9-cc -xcode=pic32 + make + make install + cd .. +fi + +if [ "$1" = "apr" ] ; then + shift + gunzip -c apr-1.5.0.tar.gz | tar xf - + cd apr-1.5.0 + CFLAGS='-m64' LDFLAGS='-m64' ./configure --prefix=$prefix + make + make install + cd .. +fi + +if [ "$1" = "apr-util" ] ; then + shift + gunzip -c apr-util-1.5.3.tar.gz | tar xf - + cd apr-util-1.5.3 + CFLAGS='-m64' LDFLAGS='-m64' ./configure \ + --prefix=$prefix \ + --with-apr=$prefix/bin/apr-1-config + make + make install + cd .. +fi + +if [ "$1" = "pcre" ] ; then + shift + gunzip -c pcre-8.34.tar.gz | xf - + cd pcre-8.34 + CC='cc -m64' CXX='CC -m64' ./configure --prefix=$prefix + make + make install + cd .. +fi + +if [ "$1" = "httpd" ] ; then + shift + gunzip -c httpd-2.4.16.tar.gz | tar xf - + cd httpd-2.4.16 + CFLAGS='-m64' LDFLAGS='-m64' ./configure \ + --prefix=$prefix \ + --with-apr=$prefix/bin/apr-1-config \ + --with-apr-util=$prefix/bin/apu-1-config \ + --with-ssl=$prefix \ + --with-pcre=$prefix \ + --enable-so \ + --enable-mpms-shared=all \ + --enable-mods-static='core log_config logio version unixd authn_core authz_core http' \ + --enable-mods-shared='alias authz_user authn_file authn_basic dav ssl env mime' + make + make install + cd .. +fi + +if [ "$1" = "python" ] ; then + shift + gunzip -c Python-2.7.5.tgz | tar xf - + cd Python-2.7.5 + CC='cc -mt -m64' CXX='CC -mt -m64' ./configure --prefix=$prefix + make + make install + cd .. +fi + +if [ "$1" = "hashlib" ] ; then + shift + gunzip -c hashlib-20081119.tar.gz | tar xf - + cd hashlib-20081119 + python setup.py build --openssl-prefix=$prefix + python setup.py install + cd .. +fi + +if [ "$1" = "scons" ] ; then + shift + gunzip -c scons-2.3.0.tar.gz | tar xf - + cd scons-2.3.0 + python setup.py install --prefix=$prefix + cd .. +fi + +if [ "$1" = "serf" ] ; then + shift + gunzip -c serf-1.3.4.tar.gz | tar xf - + cd serf-1.3.4 + patch -p0 ../serf.patch + scons install CC='cc -m64' \ + PREFIX=$prefix APR=$prefix APU=$prefix OPENSSL=$prefix + cd .. +fi + +if [ "$1" = "sqlite" ] ; then + shift + unzip sqlite-amalgamation-3071501.zip +fi + +if [ "$1" = "pysqlite" ] ; then + shift + gunzip -c pysqlite-2.6.3.tar.gz | tar xf - + cd pysqlite-2.6.3 + unzip ../sqlite-amalgamation-3071501.zip + mv sqlite-amalgamation-3071501/sqlite3.h src + mv sqlite-amalgamation-3071501/sqlite3.c . + python setup.py static_build + python setup.py install + cd .. +fi + +if [ "$1" = "subversion" ] ; then + shift + gunzip -c subversion-1.8.8.tar.gz | tar xf - + cd subversion-1.8.8 + unzip ../sqlite-amalgamation-3071501.zip + mv sqlite-amalgamation-3071501/ sqlite-amalgamation + LD_LIBRARY_PATH=/export/home/wandisco/buildbot/install/lib \ + CC='cc -m64' ./configure \ + --prefix=$prefix \ + --with-apr=$prefix \ + --with-apr-util=$prefix \ + --with-serf=$prefix \ + --with-apxs=$prefix/bin/apxs + make + cd .. +fi + +if [ "$1" = "iconv" ] ; then + shift + gunzip -c libiconv-1.14.tar.gz | tar xf - + cd libiconv-1.14 + CC='cc -m64' ./configure + make + make install + cd .. +fi + +if [ "$1" = "automake" ] ; then + shift + gunzip -c automake-1.11.6.tar.gz | tar xf - + cd automake-1.11.6 + configure --prefix=$prefix + make + make install + cd .. +fi + +if [ "$1" = "libtool" ] ; then + shift + gunzip -c libtool-2.2.10.tar.gz | tar -xf - + cd libtool-2.2.10 + configure --prefix=$prefix + make + make install + cd .. +fi + +if [ "$1" = "zope.interface" ] ; then + shift + gunzip -c zope.interface-4.1.0.tar.gz | tar xf - + cd zope.interface-4.1.0 + python setup.py install --prefix=$prefix + cd .. +fi + +if [ "$1" = "twisted" ] ; then + shift + gunzip -c Twisted-13.2.0.tar.gz | tar xf - + cd Twisted-13.2.0 + patch -p0 < ../twisted.patch + python setup.py install --prefix=$prefix + cd .. +fi + +if [ "$1" = "buildbot" ] ; then + shift + gunzip -c buildbot-slave-0.8.8.tar.gz | tar xf - + cd buildbot-slave-0.8.8 + python setup.py install --prefix=$prefix + cd .. +fi + +if [ -n "$1" ] ; then + echo "Don't know what to do with" $1 +fi diff --git a/tools/buildbot/slaves/svn-sparc-solaris/serf.patch b/tools/buildbot/slaves/svn-sparc-solaris/serf.patch new file mode 100644 index 0000000..3d70ecc --- /dev/null +++ b/tools/buildbot/slaves/svn-sparc-solaris/serf.patch @@ -0,0 +1,19 @@ +--- SConstruct.old Mon Mar 3 14:34:37 2014 ++++ SConstruct Mon Mar 3 14:34:21 2014 +@@ -210,7 +210,7 @@ + # Unfortunately we can't set the .dylib compatibility_version option separately + # from current_version, so don't use the PATCH level to avoid that build and + # runtime patch levels have to be identical. +-env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0) ++#env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0) + + LIBNAME = 'libserf-%d' % (MAJOR,) + if sys.platform != 'win32': +@@ -248,6 +248,7 @@ + + if sys.platform == 'sunos5': + env.Append(LIBS='m') ++ env['PLATFORM'] = 'posix' + else: + # Warning level 4, no unused argument warnings + env.Append(CCFLAGS=['/W4', '/wd4100']) diff --git a/tools/buildbot/slaves/svn-sparc-solaris/svnbuild.sh b/tools/buildbot/slaves/svn-sparc-solaris/svnbuild.sh new file mode 100755 index 0000000..495cb21 --- /dev/null +++ b/tools/buildbot/slaves/svn-sparc-solaris/svnbuild.sh @@ -0,0 +1,51 @@ +#!/bin/sh + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -x +. ../svnenv.sh + +echo "============ autogen.sh" +./autogen.sh || exit $? + +SVN_VER_MINOR=`awk '/define SVN_VER_MINOR/ { print $3 }' subversion/include/svn_version.h` + +cd ../obj +grep obj/subversion/tests /etc/mnttab > /dev/null || mount-tmpfs + +# --enable-optimize adds -flto which breaks the 1.8 C tests because +# they link main() from a library. +if [ $SVN_VER_MINOR -gt 8 ]; then + OPTIMIZE_OPTION='--enable-optimize' +fi + +echo "============ configure" +../build/configure CC='cc -m64 -v' \ + --with-apr=/export/home/wandisco/buildbot/install \ + --with-apr-util=/export/home/wandisco/buildbot/install \ + --with-serf=/export/home/wandisco/buildbot/install \ + --with-apxs=/export/home/wandisco/buildbot/install/bin/apxs \ + --with-sqlite=/export/home/wandisco/buildbot/sqlite-amalgamation-3071501/sqlite3.c \ + --disable-shared \ + $OPTIMIZE_OPTION \ + || exit $? + +echo "============ make" +make -j30 || exit $? + +exit 0 diff --git a/tools/buildbot/slaves/svn-sparc-solaris/svncheck.sh b/tools/buildbot/slaves/svn-sparc-solaris/svncheck.sh new file mode 100755 index 0000000..ae15ca9 --- /dev/null +++ b/tools/buildbot/slaves/svn-sparc-solaris/svncheck.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -x +. ../svnenv.sh + +SVN_VER_MINOR=`awk '/define SVN_VER_MINOR/ { print $3 }' subversion/include/svn_version.h` + +cd ../obj + +# Use GNU iconv since the system one does not work well enough +LD_PRELOAD_64=/export/home/wandisco/buildbot/install/lib/preloadable_libiconv.so +export LD_PRELOAD_64 + +if [ $SVN_VER_MINOR -ge 10 ]; then + echo "============ make svnserveautocheck" + make svnserveautocheck CLEANUP=1 PARALLEL=30 THREADED=1 GLOBAL_SCHEDULER=1 || exit $? +elif [ $SVN_VER_MINOR -ge 9 ]; then + echo "============ make svnserveautocheck" + make svnserveautocheck CLEANUP=1 PARALLEL=30 THREADED=1 || exit $? +else + echo "============ make check" + make check CLEANUP=1 PARALLEL=30 THREADED=1 || exit $? +fi + +exit 0 diff --git a/tools/buildbot/slaves/svn-sparc-solaris/svncleanup.sh b/tools/buildbot/slaves/svn-sparc-solaris/svncleanup.sh new file mode 100755 index 0000000..b828e5e --- /dev/null +++ b/tools/buildbot/slaves/svn-sparc-solaris/svncleanup.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -x +. ../svnenv.sh + +cd ../obj + +echo "============ make extraclean" +test -f Makefile && (make extraclean || exit $?) + +grep obj/subversion/tests /etc/mnttab > /dev/null && umount-tmpfs + +exit 0 diff --git a/tools/buildbot/slaves/svn-sparc-solaris/svnenv.sh b/tools/buildbot/slaves/svn-sparc-solaris/svnenv.sh new file mode 100644 index 0000000..48d6b42 --- /dev/null +++ b/tools/buildbot/slaves/svn-sparc-solaris/svnenv.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +GREP=/usr/bin/grep +export GREP +PATH=/opt/csw/gnu:/usr/bin:/usr/ccs/bin:/opt/csw/bin:/export/home/wandisco/buildbot/install/bin +export PATH diff --git a/tools/buildbot/slaves/svn-sparc-solaris/twisted.patch b/tools/buildbot/slaves/svn-sparc-solaris/twisted.patch new file mode 100644 index 0000000..5dfcb23 --- /dev/null +++ b/tools/buildbot/slaves/svn-sparc-solaris/twisted.patch @@ -0,0 +1,11 @@ +--- twisted/python/sendmsg.c.old Mon Mar 3 14:32:08 2014 ++++ twisted/python/sendmsg.c Mon Mar 3 14:30:22 2014 +@@ -6,6 +6,8 @@ + #define PY_SSIZE_T_CLEAN 1 + #include <Python.h> + ++#define _XPG4_2 1 ++ + #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) + /* This may cause some warnings, but if you want to get rid of them, upgrade + * your Python version. */ diff --git a/tools/buildbot/slaves/svn-x64-centos/list-svn-deps.sh b/tools/buildbot/slaves/svn-x64-centos/list-svn-deps.sh new file mode 100755 index 0000000..793874c --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-centos/list-svn-deps.sh @@ -0,0 +1,34 @@ +#!/bin/sh +# List the versions of all of SVN's dependencies. +# The output is suitable for putting in the buildbot slave's 'info/host' +# file, after a general description of the slave machine. + +echo "=== SVN dependencies ===" +DEPS="gcc apr apr-util apr-devel apr-util-devel httpd httpd-devel \ + neon neon-devel python python-devel ruby ruby-devel" +#yum -C list $DEPS +rpm -q ${DEPS} | sort | uniq +# The SQLite version is found by the name of the amalgamation directory, +# which is found in the home dir. It is also explicitly referenced in the +# './configure' line in 'svnbuild.sh'. +(cd && echo sqlite-3.*[0-9].*[0-9]) +echo + +echo "=== SVN test dependencies ===" +#rpm -q pysqlite | sort | uniq +echo + +JAVA_VER=`java -fullversion 2>&1` +PY_VER=`python -V 2>&1` +RUBY_VER=`ruby --version` +PERL_VER=`perl -v | grep This` +echo "=== interpreters / bindings ===" +echo "Java: $JAVA_VER" +echo "Python: $PY_VER" +echo "Ruby: $RUBY_VER" +echo "Perl: $PERL_VER" +echo + +echo "=== BuildBot version ===" +buildbot --version +echo diff --git a/tools/buildbot/slaves/svn-x64-centos/svnbuild.sh b/tools/buildbot/slaves/svn-x64-centos/svnbuild.sh new file mode 100755 index 0000000..eea0863 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-centos/svnbuild.sh @@ -0,0 +1,80 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +export MAKEFLAGS=-j4 +export PYTHON=/usr/local/python25/bin/python + +SVN_VER_MINOR=`awk '/define SVN_VER_MINOR/ { print $3 }' subversion/include/svn_version.h` + +if [ $SVN_VER_MINOR -ge 9 ]; then + # 1.9 or newer requires APR 1.3.x and Serf 1.3.4 + # this bubbles out to httpd as well. So use the right dependencies + APR=/home/bt/packages/apr-1.3.9-prefix/bin/apr-1-config + APU=/home/bt/packages/apr-1.3.9-prefix/bin/apu-1-config + APXS=/home/bt/packages/apr-1.3.9-prefix/bin/apxs + SERF=/home/bt/packages/apr-1.3.9-prefix +else + APR=/usr + APU=/usr + APXS=/usr/sbin/apxs + SERF=/usr/local +fi + +echo "========= autogen.sh" +./autogen.sh || exit $? + +echo "========= configure" +# --with-junit=/usr/share/java/junit.jar +# --with-jdk=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 \ +# --without-berkeley-db \ +# --disable-shared \ +#CFLAGS='-fprofile-arcs -ftest-coverage' \ +./configure --enable-javahl --enable-maintainer-mode \ + --with-neon=/usr \ + --with-serf=$SERF \ + --with-apxs=$APXS \ + --with-berkeley-db \ + --with-apr=$APR \ + --with-apr-util=$APU \ + --with-jdk=/opt/java/jdk1.6.0_15 \ + --with-junit=/home/bt/junit-4.4.jar \ + --with-sqlite=/home/bt/packages/sqlite-amalgamation-dir/sqlite3.c \ + || exit $? + +echo "========= make" +make || exit $? + +echo "========= make javahl" +make javahl -j1 || exit $? + +echo "========= make swig-py" +make swig-py || exit $? + +echo "========= make swig-pl" +make swig-pl -j1 || exit $? + +echo "========= make swig-rb" +make swig-rb -j1 || exit $? + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-centos/svncheck-bindings.sh b/tools/buildbot/slaves/svn-x64-centos/svncheck-bindings.sh new file mode 100755 index 0000000..4e8c1aa --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-centos/svncheck-bindings.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +RC=0 + +echo "========= make check-javahl" +make check-javahl || RC=$? + +echo "========= make check-swig-pl" +make check-swig-pl || RC=$? + +echo "========= make check-swig-py" +make check-swig-py || RC=$? + +# ruby test currently failing, generating SEGV on centos +#echo "========= make check-swig-rb" +#make check-swig-rb # || RC=$? + +exit ${RC} diff --git a/tools/buildbot/slaves/svn-x64-centos/svncheck.sh b/tools/buildbot/slaves/svn-x64-centos/svncheck.sh new file mode 100755 index 0000000..77ed04d --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-centos/svncheck.sh @@ -0,0 +1,54 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + + +set -x + +if test -z "$1" ; then + echo "Missing FS_TYPE specifier (arg #1)." + exit 1 +fi + +echo "========= mount RAM disc" +# ignore the result: if it fails, the test will just take longer... +mkdir -p subversion/tests/cmdline/svn-test-work +test -e ../mount-ramdrive && ../mount-ramdrive + +echo "========= make" +case "$2" in + ""|ra_serf) + make davautocheck FS_TYPE=$1 HTTP_LIBRARY=serf CLEANUP=1 || exit $? + ;; + ra_svn) + make svnserveautocheck FS_TYPE="$1" CLEANUP=1 || exit $? + ;; + ra_local) + make check FS_TYPE="$1" CLEANUP=1 || exit $? + ;; + *) + echo "Bad RA specifier (arg #2): '$2'." + exit 1 + ;; +esac + +# the bindings are checked with svncheck-bindings.sh +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-centos/svnclean.sh b/tools/buildbot/slaves/svn-x64-centos/svnclean.sh new file mode 100755 index 0000000..9a5e715 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-centos/svnclean.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +echo "========= unmount RAM disc" +# ignore the result: if there was no ramdisc, that's fine +test -e ../unmount-ramdrive && ../unmount-ramdrive + +echo "========= make extraclean" +test -e Makefile && (make extraclean || exit $?) + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-centos/svnlog.sh b/tools/buildbot/slaves/svn-x64-centos/svnlog.sh new file mode 100755 index 0000000..c2302e1 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-centos/svnlog.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +# upload file to server +FILENAME=tests-`date +%Y%m%d%H%M`.log.tgz +tar -czf $FILENAME tests.log +ftp -n www.mobsol.be < ../ftpscript +rm $FILENAME + +echo "Logs of the testrun can be found here: http://www.mobsol.be/logs/eh-debsarge1/$FILENAME" + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svnbuild.sh b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svnbuild.sh new file mode 100755 index 0000000..74bc436 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svnbuild.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +echo "========= autogen.sh" +./autogen.sh || exit $? + +echo "========= configure" +./configure --with-serf=./serf --with-apxs=/usr/sbin/apxs --without-berkeley-db --prefix=/Users/buildslave17/slave17/osx10.6-gcc4.2.1-x64-serf/build/svninstall --with-apache-libexecdir=/Users/buildslave17/slave17/osx10.6-gcc4.2.1-x64-serf/build/libexec || exit $? + +echo "========= make" +make || exit $? + +echo "========= make swig-py" +make swig-py || exit $? + +#echo "========= make swig-pl" +#make swig-pl || exit $? + +#echo "========= make swig-rb" +#make swig-rb || exit $? + +echo "========= make install" +make install || exit $? + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svncheck.sh b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svncheck.sh new file mode 100755 index 0000000..7233d3c --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svncheck.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +if test -z "$1" ; then + echo "Missing FS_TYPE specifier (arg #1)." + exit 1 +fi + +echo "========= make check" +if [ "$2" = "ra_serf" ]; then + make davautocheck FS_TYPE=$1 HTTP_LIBRARY=serf CLEANUP=1 || s=$?; +else + make davautocheck FS_TYPE=$1 CLEANUP=1 || s=$?; +fi + +echo "========= cat tests.log" +cat tests.log + +exit $s diff --git a/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svnclean.sh b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svnclean.sh new file mode 100755 index 0000000..586e203 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svnclean.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +# ../unmount_ramd.sh + +echo "========= make extraclean" +test -e Makefile && { make extraclean || exit $?; } +rm -rf ../build/* +rm -rf .svn +rm -rf .buildbot-sourcedata + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svnlog.sh b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svnlog.sh new file mode 100755 index 0000000..ce845f8 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared-daily-ra_serf/svnlog.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +# upload file to server +FILENAME=tests-`date +%Y%m%d%H%M`.log.tgz +tar -czf $FILENAME tests.log +ftp -n www.mobsol.be < ../ftpscript +rm $FILENAME + +echo "Logs of the testrun can be found here: http://www.mobsol.be/logs/osx10.4-gcc4.0.1-ia32/$FILENAME" + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svnbuild.sh b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svnbuild.sh new file mode 100755 index 0000000..a8750eb --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svnbuild.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +echo "========= autogen.sh" +./autogen.sh || exit $? + +echo "========= configure" +./configure --without-serf --with-apxs=/usr/sbin/apxs --without-berkeley-db --prefix=/Users/buildslave17/slave17/osx10.6-gcc4.2.1-x64/build/svninstall --with-apache-libexecdir=/Users/buildslave17/slave17/osx10.6-gcc4.2.1-x64/build/libexec || exit $? + +echo "========= make" +make || exit $? + +echo "========= make swig-py" +make swig-py || exit $? + +#echo "========= make swig-pl" +#make swig-pl || exit $? + +#echo "========= make swig-rb" +#make swig-rb || exit $? + +echo "========= make install" +make install || exit $? + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svncheck.sh b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svncheck.sh new file mode 100755 index 0000000..7233d3c --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svncheck.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +if test -z "$1" ; then + echo "Missing FS_TYPE specifier (arg #1)." + exit 1 +fi + +echo "========= make check" +if [ "$2" = "ra_serf" ]; then + make davautocheck FS_TYPE=$1 HTTP_LIBRARY=serf CLEANUP=1 || s=$?; +else + make davautocheck FS_TYPE=$1 CLEANUP=1 || s=$?; +fi + +echo "========= cat tests.log" +cat tests.log + +exit $s diff --git a/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svnclean.sh b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svnclean.sh new file mode 100755 index 0000000..586e203 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svnclean.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +# ../unmount_ramd.sh + +echo "========= make extraclean" +test -e Makefile && { make extraclean || exit $?; } +rm -rf ../build/* +rm -rf .svn +rm -rf .buildbot-sourcedata + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svnlog.sh b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svnlog.sh new file mode 100755 index 0000000..ce845f8 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx-gnu-shared/svnlog.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +# upload file to server +FILENAME=tests-`date +%Y%m%d%H%M`.log.tgz +tar -czf $FILENAME tests.log +ftp -n www.mobsol.be < ../ftpscript +rm $FILENAME + +echo "Logs of the testrun can be found here: http://www.mobsol.be/logs/osx10.4-gcc4.0.1-ia32/$FILENAME" + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx/mkramdisk.sh b/tools/buildbot/slaves/svn-x64-macosx/mkramdisk.sh new file mode 100755 index 0000000..45708eb --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx/mkramdisk.sh @@ -0,0 +1,63 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -x + +if [ -z "$1" ]; then + echo "Missing parameter: volume name" + exit 1 +fi + +if [ -z "$2" ]; then + echo "Missing parameter: RAMdisk config file" + exit 1 +fi + +volume="/Volumes/$1" +ramconf="$2" + +ramconfpath=$(dirname "${ramconf}") +if [ ! -d "${ramconfpath}" ]; then + echo "Missing RAMdisk config file path: ${ramconfpath}" + exit 1 +fi +if [ -f "${ramconf}" ]; then + echo "RAMdisk config file exists: ${ramconf}" + exit 1 +fi + +if [ -d "${volume}" ]; then + echo "Mount point exists: ${volume}" + exit 1 +fi + +mount | grep "^/dev/disk[0-9][0-9]* on ${volume} (hfs" >/dev/null || { + set -e + echo -n "" > "${ramconf}" + + # Make sure we strip trailing spaces from the result of older + # versions of hduitil. + device=$(echo $(hdiutil attach -nomount ram://2000000)) + newfs_hfs -M 0700 -v "$1" "${device}" + hdiutil mountvol "${device}" + + echo -n "${device}" > "${ramconf}" +} + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx/rmramdisk.sh b/tools/buildbot/slaves/svn-x64-macosx/rmramdisk.sh new file mode 100755 index 0000000..c5db9bb --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx/rmramdisk.sh @@ -0,0 +1,62 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -x + +if [ -z "$1" ]; then + echo "Missing parameter: volume name" + exit 1 +fi + +if [ -z "$2" ]; then + echo "Missing parameter: RAMdisk config file" + exit 1 +fi + +volume="/Volumes/$1" +ramconf="$2" + +if [ ! -f "${ramconf}" ]; then + mount | grep "^/dev/disk[0-9][0-9]* on ${volume} (hfs" || { + echo "Not mounted: ${volume}" + exit 0 + } + echo "Missing RAMdisk config file: ${ramconf}" + exit 1 +fi + +if [ ! -d "${volume}" ]; then + echo "Mount point missing: ${volume}" + exit 1 +fi + +device=$(cat "${ramconf}") +devfmt=$(echo "${device}" | grep "^/dev/disk[0-9][0-9]*$") +if [ "${device}" != "${devfmt}" ]; then + echo "Invalid device name: ${device}" + exit 1 +fi + +mount | grep "^${device} on ${volume} (hfs" >/dev/null && { + set -e + rm "${ramconf}" + hdiutil detach "${device}" -force +} + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx/setenv.sh b/tools/buildbot/slaves/svn-x64-macosx/setenv.sh new file mode 100644 index 0000000..d4130e1 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx/setenv.sh @@ -0,0 +1,69 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +## This script calls a helper that provides the folloing environemnt +## variables: +## +## PATH The search path +## SVNBB_BDB Berkeley DB installation prefix +## SVNBB_SWIG Swig installation prefix +## SVNBB_SERF Serf installation prefix +## Note: Serf should be built only +## with the system APR/-Util. +## SVNBB_APR_13_NOTHREAD Path of APR-1.3 with threading disabled +## SVNBB_APR_15 Path of APR-1.5 +## SVNBB_APR_20_DEV Path of APR-2.0 +## SVNBB_JUNIT The path of the junit.jar +## SVNBB_PARALLEL Optional: parallelization; defaults to 2 +## SVNBB_PYTHON3ENV Optional: Python 3 virtual environment +## +## The invoking script will set local variable named ${scripts} that +## is the absolute path the parent of this file. + +# Modify this to suit your deployment +environment=$(cd "${scripts}/../.." && pwd)/environment.sh + +eval $(${environment}) +SVNBB_PARALLEL="${SVNBB_PARALLEL-2}" + +export PATH +export SVNBB_BDB +export SVNBB_SWIG +export SVNBB_SERF +export SVNBB_APR_13_NOTHREAD +export SVNBB_APR_15 +export SVNBB_APR_20_DEV +export SVNBB_JUNIT +export SVNBB_PARALLEL +export SVNBB_PYTHON3ENV + + +# Set the absolute source path +abssrc=$(pwd) + +# Set the path to the RAMdisk device name file +ramconf=$(dirname "${abssrc}")/ramdisk.conf + +# The RAMdisk volume name is the same as the name of the builder +volume_name=$(basename $(dirname "${abssrc}")) +if [ -z "${volume_name}" ]; then + echo "Missing config parameter: RAMdisk volume name" + exit 1 +fi + +# Set the absolute build path +absbld="/Volumes/${volume_name}" diff --git a/tools/buildbot/slaves/svn-x64-macosx/svnbuild-bindings.sh b/tools/buildbot/slaves/svn-x64-macosx/svnbuild-bindings.sh new file mode 100755 index 0000000..fa085dd --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx/svnbuild-bindings.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e +set -x + +scripts=$(cd $(dirname "$0") && pwd) + +. ${scripts}/setenv.sh + +# +# Step 4: build swig-py +# + +echo "============ make swig-py" +cd ${absbld} +make swig-py + +echo "============ make swig-pl" +cd ${absbld} +make swig-pl + +echo "============ make swig-rb" +cd ${absbld} +make swig-rb + +echo "============ make javahl" +cd ${absbld} +make javahl diff --git a/tools/buildbot/slaves/svn-x64-macosx/svnbuild.sh b/tools/buildbot/slaves/svn-x64-macosx/svnbuild.sh new file mode 100755 index 0000000..eff8986 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx/svnbuild.sh @@ -0,0 +1,108 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e +set -x + +scripts=$(cd $(dirname "$0") && pwd) + +. ${scripts}/setenv.sh + +${scripts}/mkramdisk.sh ${volume_name} ${ramconf} + +# These are the default APR and Serf config options +serfconfig="--with-serf=${SVNBB_SERF} --with-apxs=/usr/sbin/apxs" + +# An optional parameter tells build scripts which version of APR to use +if [ ! -z "$1" ]; then + aprdir=$(eval 'echo $SVNBB_'"$1") +fi +if [ ! -z "${aprdir}" -a -d "${aprdir}" ]; then + aprconfig="--with-apr=${aprdir} --with-apr-util=${aprdir}" + serfconfig=" --without-serf --without-apxs" +fi + +# +# Step 0: Create a directory for the test log files +# +if [ -d "${abssrc}/.test-logs" ]; then + rm -fr "${abssrc}/.test-logs" +fi +mkdir "${abssrc}/.test-logs" || exit 1 + +# +# Step 1: get the latest and greatest amalgamanted SQLite +# + +echo "============ get-deps.sh sqlite" +cd ${abssrc} +rm -fr sqlite-amalgamation +./get-deps.sh sqlite + +# +# Step 2: Regenerate build scripts +# + +echo "============ autogen.sh" +cd ${abssrc} +./autogen.sh + +svnminor=$(awk '/define *SVN_VER_MINOR/ { print $3 }' subversion/include/svn_version.h) + +# --enable-optimize adds -flto which breaks the 1.8 C tests because +# they link main() from a library. +if [ ${svnminor} -gt 8 ]; then + optimizeconfig=' --enable-optimize' +fi + +if [ ${svnminor} -ge 10 ]; then + lz4config='--with-lz4=internal' + utf8proconfig='--with-utf8proc=internal' +fi + +# +# Step 3: Configure +# + +echo "============ configure" +cd ${absbld} +env CC=clang CXX=clang++ \ +${abssrc}/configure \ + --prefix="${absbld}/.install-prefix" \ + --enable-debug${optimizeconfig} \ + --disable-nls \ + --disable-mod-activation \ + ${aprconfig}${serfconfig} \ + --with-swig="${SVNBB_SWIG}" \ + --with-berkeley-db=db.h:"${SVNBB_BDB}/include":${SVNBB_BDB}/lib:db \ + --enable-javahl \ + --without-jikes \ + ${lz4config} \ + ${utf8proconfig} \ + --with-junit="${SVNBB_JUNIT}" + +test -f config.log && mv config.log "${abssrc}/.test-logs/config.log" + +# +# Step 4: build +# + +echo "============ make" +cd ${absbld} +make -j${SVNBB_PARALLEL} diff --git a/tools/buildbot/slaves/svn-x64-macosx/svncheck-bindings.sh b/tools/buildbot/slaves/svn-x64-macosx/svncheck-bindings.sh new file mode 100755 index 0000000..1fb538b --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx/svncheck-bindings.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + + +run_tests() { + check="$1" + cleanup="$2" + + echo "============ make check-${check}" + cd ${absbld} + make check-${check} ${cleanup} || exit 1 +} + + +set -x + +scripts=$(cd $(dirname "$0") && pwd) + +. ${scripts}/setenv.sh + +# Parse arguments to find out which tests we should run +check_swig_py=false +check_swig_pl=false +check_swig_rb=false +check_javahl=false + +while [ ! -z "$1" ]; do + case "$1" in + swig-py) check_swig_py=true;; + swig-pl) check_swig_pl=true;; + swig-rb) check_swig_rb=true;; + javahl) check_javahl=true;; + *) exit 1;; + esac + shift +done + +${check_swig_py} && run_tests swig-py +${check_swig_pl} && run_tests swig-pl +${check_swig_rb} && run_tests swig-rb +${check_javahl} && run_tests javahl JAVAHL_CLEANUP=1 + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx/svncheck.sh b/tools/buildbot/slaves/svn-x64-macosx/svncheck.sh new file mode 100755 index 0000000..0d24286 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx/svncheck.sh @@ -0,0 +1,98 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + + +run_tests() { + ra="$1" + fs="$2" + ok=true + + case "${ra}" in + local) check=check; skipC=;; + svn) check=svnserveautocheck; skipC="SKIP_C_TESTS=1";; + dav) check=davautocheck; skipC="SKIP_C_TESTS=1";; + *) exit 1;; + esac + + echo "============ make check ${ra}+${fs}" + cd ${absbld} + make ${check} FS_TYPE=${fs} PARALLEL=${SVNBB_PARALLEL} CLEANUP=1 ${skipC} || ok=false + + # Move any log files to the buildbot work directory + test -f tests.log && mv tests.log "${abssrc}/.test-logs/tests-${ra}-${fs}.log" + test -f fails.log && mv fails.log "${abssrc}/.test-logs/fails-${ra}-${fs}.log" + + # Remove the test working directory to make space on the RAM disk + # for more tests. + rm -fr subversion/tests/cmdline/svn-test-work + + ${ok} || exit 1 +} + +check_tests() { + ra="$1" + + ${check_fsfs} && run_tests ${ra} fsfs + ${check_fsfs_v6} && run_tests ${ra} fsfs-v6 + ${check_fsfs_v4} && run_tests ${ra} fsfs-v4 + ${check_bdb} && run_tests ${ra} bdb + ${check_fsx} && run_tests ${ra} fsx +} + + +set -x + +scripts=$(cd $(dirname "$0") && pwd) + +. ${scripts}/setenv.sh + +# Parse arguments to find out which tests we should run +use_python3=false +check_local=false +check_svn=false +check_dav=false +check_fsfs=false +check_fsfs_v6=false +check_fsfs_v4=false +check_fsx=false +check_bdb=false + +while [ ! -z "$1" ]; do + case "$1" in + python3) use_python3=true;; + local) check_local=true;; + svn) check_svn=true;; + dav) check_dav=true;; + fsfs) check_fsfs=true;; + fsfs-v6) check_fsfs_v6=true;; + fsfs-v4) check_fsfs_v4=true;; + fsx) check_fsx=true;; + bdb) check_bdb=true;; + *) exit 1;; + esac + shift +done + +${use_python3} && test -n "${SVNBB_PYTHON3ENV}" && . ${SVNBB_PYTHON3ENV}/bin/activate + +${check_local} && check_tests local +${check_svn} && check_tests svn +${check_dav} && check_tests dav + +exit 0 diff --git a/tools/buildbot/slaves/svn-x64-macosx/svnclean.sh b/tools/buildbot/slaves/svn-x64-macosx/svnclean.sh new file mode 100755 index 0000000..b2b0bb3 --- /dev/null +++ b/tools/buildbot/slaves/svn-x64-macosx/svnclean.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e +set -x + +scripts=$(cd $(dirname "$0") && pwd) + +. ${scripts}/setenv.sh + +${scripts}/rmramdisk.sh ${volume_name} ${ramconf} diff --git a/tools/buildbot/slaves/ubuntu-x64/svnbuild.sh b/tools/buildbot/slaves/ubuntu-x64/svnbuild.sh new file mode 100755 index 0000000..e8005b9 --- /dev/null +++ b/tools/buildbot/slaves/ubuntu-x64/svnbuild.sh @@ -0,0 +1,51 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +export MAKEFLAGS=-j4 + +echo "========= autogen.sh" +./autogen.sh || exit $? + +echo "========= configure" +./configure --enable-javahl --enable-maintainer-mode \ + --without-berkeley-db \ + --with-jdk=/usr/lib/jvm/java-7-openjdk-amd64/ \ + --with-junit=/usr/share/java/junit.jar || exit $? + +echo "========= make" +make || exit $? + +echo "========= make javahl" +make javahl -j1 || exit $? + +echo "========= make swig-py" +make swig-py || exit $? + +echo "========= make swig-pl" +make swig-pl -j1 || exit $? + +echo "========= make swig-rb" +make swig-rb -j1 || exit $? + +exit 0 diff --git a/tools/buildbot/slaves/ubuntu-x64/svncheck-bindings.sh b/tools/buildbot/slaves/ubuntu-x64/svncheck-bindings.sh new file mode 100755 index 0000000..f42c0ec --- /dev/null +++ b/tools/buildbot/slaves/ubuntu-x64/svncheck-bindings.sh @@ -0,0 +1,39 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +RC=0 + +echo "========= make check-javahl" +make check-javahl || RC=$? + +echo "========= make check-swig-pl" +make check-swig-pl || RC=$? + +echo "========= make check-swig-py" +make check-swig-py || RC=$? + +echo "========= make check-swig-rb" +make check-swig-rb || RC=$? + +exit ${RC} diff --git a/tools/buildbot/slaves/ubuntu-x64/svncheck.sh b/tools/buildbot/slaves/ubuntu-x64/svncheck.sh new file mode 100755 index 0000000..227e968 --- /dev/null +++ b/tools/buildbot/slaves/ubuntu-x64/svncheck.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + + +set -x + +if test -z "$1" ; then + echo "Missing FS_TYPE specifier (arg #1)." + exit 1 +fi + +echo "========= mount RAM disc" +test ! -e /dev/shm/svn-test-work && mkdir /dev/shm/svn-test-work +test -e subversion/tests/cmdline/svn-test-work && rm -rf subversion/tests/cmdline/svn-test-work +ln -s /dev/shm/svn-test-work subversion/tests/cmdline/ + +echo "========= make check" +make check FS_TYPE=$1 CLEANUP=1 || exit $? + +# the bindings are checked with svncheck-bindings.sh +exit 0 diff --git a/tools/buildbot/slaves/ubuntu-x64/svnclean.sh b/tools/buildbot/slaves/ubuntu-x64/svnclean.sh new file mode 100755 index 0000000..4f886ac --- /dev/null +++ b/tools/buildbot/slaves/ubuntu-x64/svnclean.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +echo "========= make extraclean" +cd build +test -e Makefile && { make extraclean || exit $?; } + +exit 0 diff --git a/tools/buildbot/slaves/ubuntu-x64/svnlog.sh b/tools/buildbot/slaves/ubuntu-x64/svnlog.sh new file mode 100755 index 0000000..c2302e1 --- /dev/null +++ b/tools/buildbot/slaves/ubuntu-x64/svnlog.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +set -x + +# upload file to server +FILENAME=tests-`date +%Y%m%d%H%M`.log.tgz +tar -czf $FILENAME tests.log +ftp -n www.mobsol.be < ../ftpscript +rm $FILENAME + +echo "Logs of the testrun can be found here: http://www.mobsol.be/logs/eh-debsarge1/$FILENAME" + +exit 0 diff --git a/tools/buildbot/slaves/win32-SharpSvn/svn-config.cmd.template b/tools/buildbot/slaves/win32-SharpSvn/svn-config.cmd.template new file mode 100644 index 0000000..d283de6 --- /dev/null +++ b/tools/buildbot/slaves/win32-SharpSvn/svn-config.cmd.template @@ -0,0 +1,50 @@ +@echo off +REM ================================================================ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. +REM ================================================================ + +CALL "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 + +SET TESTDIR=E:\Full +SET TESTPORT=1234 +SET "NANTARGS= " + +SET TEMP=%TESTDIR%\temp +SET TMP=%TEMP% + +IF NOT EXIST "%TESTDIR%\" MKDIR "%TESTDIR%" +IF NOT EXIST "%TEMP%\" MKDIR "%TEMP%" + + + + + +SET SVN_URL= +SET SVN_RELURL= +for /F "usebackq tokens=1,* delims=:" %%i IN (`svn info .`) do ( + + IF "%%i" == "URL" ( + SET SVN_URL=%%j + ) ELSE IF "%%i" == "Relative URL" ( + SET SVN_RELURL=%%j + ) +) +SET SVN_URL=%SVN_URL:~1% +SET SVN_RELURL=%SVN_RELURL:~3% +SET SVN_SUBBRANCH=%SVN_RELURL:~11% +SET SVN_BRANCH=%SVN_SUBBRANCH:branches/=% diff --git a/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd b/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd new file mode 100644 index 0000000..67b9b8e --- /dev/null +++ b/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd @@ -0,0 +1,98 @@ +@echo off +REM ================================================================ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. +REM ================================================================ + +SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION + +CALL ..\svn-config.cmd +IF ERRORLEVEL 1 EXIT /B 1 + +IF "%SVN_BRANCH%" LEQ "1.6.x" ( + ECHO --- Building 1.6.x or older: Skipping bindings --- + EXIT /B 0 +) + +IF "%SVN_BRANCH%" LSS "1.9." ( + IF NOT EXIST "%TESTDIR%\bin" MKDIR "%TESTDIR%\bin" + xcopy /y /i ..\deps\release\bin\*.dll "%TESTDIR%\bin" + + PATH %TESTDIR%\bin;!PATH! +) + +SET result=0 + +if "%SVN_BRANCH%" GTR "1.9." ( + + python win-tests.py -r -f fsfs --swig=python "%TESTDIR%\tests" + + IF ERRORLEVEL 1 ( + echo [Python tests reported error !ERRORLEVEL!] 1>&2 + SET result=1 + ) ELSE ( + echo Done. + ) + +) ELSE ( + IF EXIST "%TESTDIR%\swig" rmdir /s /q "%TESTDIR%\swig" + mkdir "%TESTDIR%\swig\py-release\libsvn" + mkdir "%TESTDIR%\swig\py-release\svn" + + xcopy "release\subversion\bindings\swig\python\*.pyd" "%TESTDIR%\swig\py-release\libsvn\*.pyd" > nul: + xcopy "release\subversion\bindings\swig\python\libsvn_swig_py\*.dll" "%TESTDIR%\swig\py-release\libsvn\*.dll" > nul: + xcopy "subversion\bindings\swig\python\*.py" "%TESTDIR%\swig\py-release\libsvn\*.py" > nul: + xcopy "subversion\bindings\swig\python\svn\*.py" "%TESTDIR%\swig\py-release\svn\*.py" > nul: + + SET PYTHONPATH=%TESTDIR%\swig\py-release + + python subversion\bindings\swig\python\tests\run_all.py + IF ERRORLEVEL 1 ( + echo [Python tests reported error !ERRORLEVEL!] 1>&2 + REM SET result=1 + ) ELSE ( + echo Done. + ) +) + +if "%SVN_BRANCH%" GTR "1.9." ( + + python win-tests.py -d -f fsfs --swig=perl "%TESTDIR%\tests" + + IF ERRORLEVEL 1 ( + echo [Perl tests reported error !ERRORLEVEL!] 1>&2 + SET result=1 + ) ELSE ( + echo Done. + ) + +) + +if "%SVN_BRANCH%" GTR "1.9." ( + python win-tests.py -d -f fsfs --swig=ruby "%TESTDIR%\tests" + + IF ERRORLEVEL 1 ( + echo [Ruby tests reported error !ERRORLEVEL!] 1>&2 + REM SET result=1 + ) ELSE ( + echo Done. + ) + + taskkill /im svnserve.exe /f +) + +exit /b %result% diff --git a/tools/buildbot/slaves/win32-SharpSvn/svntest-build-bindings.cmd b/tools/buildbot/slaves/win32-SharpSvn/svntest-build-bindings.cmd new file mode 100644 index 0000000..a3eb1ed --- /dev/null +++ b/tools/buildbot/slaves/win32-SharpSvn/svntest-build-bindings.cmd @@ -0,0 +1,48 @@ +@echo off +REM ================================================================ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. +REM ================================================================ + +SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION + +CALL ..\svn-config.cmd +IF ERRORLEVEL 1 EXIT /B 1 + +IF "%SVN_BRANCH%" LEQ "1.6.x" ( + ECHO --- Building 1.6.x: Skipping bindings --- + EXIT /B 0 +) + +SET DEBUG_TARGETS=/t:__ALL_TESTS__ +SET RELEASE_TARGETS=/t:__SWIG_PYTHON__ + +if "%SVN_BRANCH%" GTR "1.9." ( + SET DEBUG_TARGETS=%DEBUG_TARGETS% /t:__SWIG_PERL__ +) + +if "%SVN_BRANCH%" GTR "1.9." ( + SET DEBUG_TARGETS=%DEBUG_TARGETS% /t:__SWIG_RUBY__ +) + +msbuild subversion_vcnet.sln /m /v:m /p:Configuration=Debug /p:Platform=Win32 %DEBUG_TARGETS% +IF ERRORLEVEL 1 EXIT /B 1 + +msbuild subversion_vcnet.sln /m /v:m /p:Configuration=Release /p:Platform=Win32 %RELEASE_TARGETS% +IF ERRORLEVEL 1 EXIT /B 1 + +EXIT /B 0 diff --git a/tools/buildbot/slaves/win32-SharpSvn/svntest-build.cmd b/tools/buildbot/slaves/win32-SharpSvn/svntest-build.cmd new file mode 100644 index 0000000..41a8438 --- /dev/null +++ b/tools/buildbot/slaves/win32-SharpSvn/svntest-build.cmd @@ -0,0 +1,36 @@ +@echo off +REM ================================================================ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. +REM ================================================================ + +SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION + +CALL ..\svn-config.cmd +IF ERRORLEVEL 1 EXIT /B 1 + +PUSHD ..\deps + +nant gen-dev -D:wc=..\build -D:impBase=../deps/build/win32 -D:botBuild=true %SVN_NANT_ARGS% +IF ERRORLEVEL 1 EXIT /B 1 + +POPD + +msbuild subversion_vcnet.sln /m /v:m /p:Configuration=Debug /p:Platform=Win32 /t:__ALL_TESTS__ %SVN_MSBUILD_ARGS% +IF ERRORLEVEL 1 EXIT /B 1 + +EXIT /B 0 diff --git a/tools/buildbot/slaves/win32-SharpSvn/svntest-cleanup.cmd b/tools/buildbot/slaves/win32-SharpSvn/svntest-cleanup.cmd new file mode 100644 index 0000000..571e2c0 --- /dev/null +++ b/tools/buildbot/slaves/win32-SharpSvn/svntest-cleanup.cmd @@ -0,0 +1,80 @@ +@echo off +REM ================================================================ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. +REM ================================================================ + +SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION + +CALL ..\svn-config.cmd + +IF NOT EXIST "..\deps\" MKDIR "..\deps" + +PUSHD ..\deps +ECHO Checking dependencies in %CD% + +IF NOT EXIST "imports\" ( + svn co https://ctf.open.collab.net/svn/repos/sharpsvn/trunk/imports imports --username guest --password "" +) +IF NOT EXIST build\imports.done ( + svn up imports --username guest --password "" + copy /y imports\dev-default.build default.build + nant prep-dev %NANTARGS% + IF ERRORLEVEL 1 ( + EXIT /B 1 + ) + del release\bin\*svn* release\bin\_*.* 2>nul: + ECHO. > build\imports.done +) + +POPD + +PUSHD "%TEMP%" +IF NOT ERRORLEVEL 1 ( + rmdir /s /q "%TEMP%" 2> nul: +) +POPD + + +taskkill /im msbuild.exe /f 2> nul: +taskkill /im svn.exe /f 2> nul: +taskkill /im svnlook.exe /f 2> nul: +taskkill /im svnadmin.exe /f 2> nul: +taskkill /im svnserve.exe /f 2> nul: +taskkill /im svnrdump.exe /f 2> nul: +taskkill /im svnsync.exe /f 2> nul: +taskkill /im httpd.exe /f 2> nul: +taskkill /im client-test.exe /f 2> nul: +taskkill /im fs-test.exe /f 2> nul: +taskkill /im op-depth-test.exe /f 2> nul: +taskkill /im atomic-ra-revprop-change.exe /f 2> nul: +taskkill /im java.exe /f 2> nul: +taskkill /im perl.exe /f 2> nul: +taskkill /im ruby.exe /f 2> nul: +taskkill /im mspdbsrv.exe /f 2> nul: + +IF EXIST "%TESTDIR%\swig\" ( + rmdir /s /q "%TESTDIR%\swig" +) + +IF EXIST "%TESTDIR%\tests\" ( + PUSHD "%TESTDIR%\tests\" + rmdir /s /q "%TESTDIR%\tests\" 2> nul: + POPD +) + +exit /B 0 diff --git a/tools/buildbot/slaves/win32-SharpSvn/svntest-javahl.cmd b/tools/buildbot/slaves/win32-SharpSvn/svntest-javahl.cmd new file mode 100644 index 0000000..0b0a507 --- /dev/null +++ b/tools/buildbot/slaves/win32-SharpSvn/svntest-javahl.cmd @@ -0,0 +1,46 @@ +@echo off +REM ================================================================ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. +REM ================================================================ + +SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION + +CALL ..\svn-config.cmd +IF ERRORLEVEL 1 EXIT /B 1 + +IF "%SVN_BRANCH%" LEQ "1.6.x" ( + ECHO --- Building 1.6.x or older: Skipping JavaHL --- + EXIT /B 0 +) + +IF "%SVN_BRANCH%" LSS "1.9." ( + IF NOT EXIST "%TESTDIR%\bin" MKDIR "%TESTDIR%\bin" + xcopy /y /i ..\deps\release\bin\*.dll "%TESTDIR%\bin" + + PATH %TESTDIR%\bin;!PATH!;!JAVADIR! +) + +SET result=0 + +python win-tests.py -d -f fsfs --javahl "%TESTDIR%\tests" +IF ERRORLEVEL 1 ( + ECHO [JavaHL test runner reported error !ERRORLEVEL!] 1>&2 + SET result=1 +) + +EXIT /b %result% diff --git a/tools/buildbot/slaves/win32-SharpSvn/svntest-template.cmd b/tools/buildbot/slaves/win32-SharpSvn/svntest-template.cmd new file mode 100644 index 0000000..1034173 --- /dev/null +++ b/tools/buildbot/slaves/win32-SharpSvn/svntest-template.cmd @@ -0,0 +1,24 @@ +@echo off +REM ================================================================ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. +REM ================================================================ + +SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION + +CALL ..\svn-config.cmd +IF ERRORLEVEL 1 EXIT /B 1 diff --git a/tools/buildbot/slaves/win32-SharpSvn/svntest-test.cmd b/tools/buildbot/slaves/win32-SharpSvn/svntest-test.cmd new file mode 100644 index 0000000..18a130b --- /dev/null +++ b/tools/buildbot/slaves/win32-SharpSvn/svntest-test.cmd @@ -0,0 +1,98 @@ +@ECHO off +REM ================================================================ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. +REM ================================================================ + +SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION + +CALL ..\svn-config.cmd +IF ERRORLEVEL 1 EXIT /B 1 + + +SET MODE=-d +SET PARALLEL= +SET ARGS= + +SET FSFS= +SET LOCAL= +SET RC=0 +:next + +IF "%1" == "-r" ( + SET MODE=-r + SHIFT +) ELSE IF "%1" == "-d" ( + SET MODE=-d + SHIFT +) ELSE IF "%1" == "-p" ( + SET PARALLEL=-p + SHIFT +) ELSE IF "%1" == "fsfs" ( + SET FSFS=1 + SHIFT +) ELSE IF "%1" == "local" ( + SET LOCAL=1 + SHIFT +) ELSE IF "%1" == "svn" ( + SET SVN=1 + SHIFT +) ELSE IF "%1" == "serf" ( + SET DAV=1 + SHIFT +) ELSE IF "%1" == "dav" ( + SET DAV=1 + SHIFT +) ELSE ( + SET ARGS=!ARGS! -t %1 + SHIFT +) + +IF NOT "%1" == "" GOTO next + +taskkill /im svnserve.exe httpd.exe /f 2> nul: + +IF "%SVN_BRANCH%" LSS "1.9." ( + IF NOT EXIST "%TESTDIR%\bin" MKDIR "%TESTDIR%\bin" + xcopy /y /i ..\deps\release\bin\*.dll "%TESTDIR%\bin" + + PATH %TESTDIR%\bin;!PATH! +) + +IF "%LOCAL%+%FSFS%" == "1+1" ( + echo win-tests.py -c %PARALLEL% %MODE% -f fsfs %ARGS% "%TESTDIR%\tests" + win-tests.py -c %PARALLEL% %MODE% -f fsfs %ARGS% "%TESTDIR%\tests" + IF ERRORLEVEL 1 SET RC=1 +) + +IF "%SVN%+%FSFS%" == "1+1" ( + echo win-tests.py -c %PARALLEL% %MODE% -f fsfs -u svn://127.0.0.1 %ARGS% "%TESTDIR%\tests" + win-tests.py -c %PARALLEL% %MODE% -f fsfs -u svn://127.0.0.1 %ARGS% "%TESTDIR%\tests" + IF ERRORLEVEL 1 SET RC=1 +) + +IF "%DAV%+%FSFS%" == "1+1" ( + echo win-tests.py -c %PARALLEL% %MODE% -f fsfs --httpd-no-log --httpd-dir "%CD%\..\deps\release\httpd" --httpd-port %TESTPORT% -u http://127.0.0.1:%TESTPORT% %ARGS% "%TESTDIR%\tests" + win-tests.py -c %PARALLEL% %MODE% -f fsfs --httpd-no-log --httpd-dir "%CD%\..\deps\release\httpd" --httpd-port %TESTPORT% -u http://127.0.0.1:%TESTPORT% %ARGS% "%TESTDIR%\tests" + IF ERRORLEVEL 1 SET RC=1 +) + +IF EXIST "%TEMP%\svn-*" ( + echo "SVN Files left:" + dir "%TEMP%" +) +EXIT /B %RC% diff --git a/tools/buildbot/slaves/win32-xp-VS2005/config.bat b/tools/buildbot/slaves/win32-xp-VS2005/config.bat new file mode 100644 index 0000000..2178f93 --- /dev/null +++ b/tools/buildbot/slaves/win32-xp-VS2005/config.bat @@ -0,0 +1,40 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +@echo off +set HTTPD_BIN_DIR=C:\Apache2 +set GETTEXT_DIR=C:\svn-builder\djh-xp-vse2005\gettext +set TEST_DIR=M:\svn-auto-test + +set HTTPD_SRC_DIR=..\httpd +set BDB_DIR=..\db4-win32 +set NEON_DIR=..\neon +set ZLIB_DIR=..\zlib +set OPENSSL_DIR=..\openssl +set INTL_DIR=..\svn-libintl + +REM Uncomment this if you want clean subversion build, after testing +REM set CLEAN_SVN=1 + +REM Uncomment this if you want disable ra_svn tests +REM set NO_RA_SVN=1 + +REM Uncomment this if you want disable ra_dav tests +REM set NO_RA_HTTP=1 + +set PATH=%GETTEXT_DIR%\bin;%PATH% +call C:\VCX2005\VC\vcvarsall.bat x86 diff --git a/tools/buildbot/slaves/win32-xp-VS2005/do_all.bat b/tools/buildbot/slaves/win32-xp-VS2005/do_all.bat new file mode 100644 index 0000000..6848f9d --- /dev/null +++ b/tools/buildbot/slaves/win32-xp-VS2005/do_all.bat @@ -0,0 +1,24 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +cmd.exe /c ..\svnbuild.bat > build.log +cmd.exe /c ..\svncheck.bat fsfs ra_local > fsfs_local.log +cmd.exe /c ..\svncheck.bat fsfs ra_svn > fsfs_svn.log +cmd.exe /c ..\svncheck.bat fsfs ra_dav > fsfs_dav.log +cmd.exe /c ..\svncheck.bat bdb ra_local > bdb_local.log +cmd.exe /c ..\svncheck.bat bdb ra_svn > bdb_svn.log +cmd.exe /c ..\svncheck.bat bdb ra_dav > bdb_dav.log diff --git a/tools/buildbot/slaves/win32-xp-VS2005/svnbuild.bat b/tools/buildbot/slaves/win32-xp-VS2005/svnbuild.bat new file mode 100644 index 0000000..3724c85 --- /dev/null +++ b/tools/buildbot/slaves/win32-xp-VS2005/svnbuild.bat @@ -0,0 +1,56 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +@echo off +IF NOT EXIST ..\config.bat GOTO noconfig +call ..\config.bat + +cmd.exe /c call ..\svnclean.bat + +set PARAMS=-t vcproj --vsnet-version=2005 --with-berkeley-db=%BDB_DIR% --with-zlib=%ZLIB_DIR% --with-httpd=%HTTPD_SRC_DIR% --with-neon=%NEON_DIR% --with-libintl=%INTL_DIR% +REM set PARAMS=-t vcproj --vsnet-version=2005 --with-berkeley-db=%BDB_DIR% --with-zlib=%ZLIB_DIR% --with-httpd=%HTTPD_SRC_DIR% --with-neon=%NEON_DIR% +IF NOT "%OPENSSL_DIR%"=="" set PARAMS=%PARAMS% --with-openssl=%OPENSSL_DIR% + +python gen-make.py %PARAMS% +IF ERRORLEVEL 1 GOTO ERROR + +REM MSDEV.COM %HTTPD_SRC_DIR%\apache.dsw /MAKE "BuildBin - Win32 Release" +REM IF ERRORLEVEL 1 GOTO ERROR + +rem MSBUILD subversion_vcnet.sln /t:__ALL_TESTS__ /p:Configuration=Debug +MSBUILD subversion_vcnet.sln /t:__ALL_TESTS__ /p:Configuration=Release +IF ERRORLEVEL 1 GOTO ERROR +MSBUILD subversion_vcnet.sln /t:__SWIG_PYTHON__ /p:Configuration=Release +IF ERRORLEVEL 1 GOTO ERROR +MSBUILD subversion_vcnet.sln /t:__SWIG_PERL__ /p:Configuration=Release +IF ERRORLEVEL 1 GOTO ERROR +MSBUILD subversion_vcnet.sln /t:__JAVAHL__ /p:Configuration=Release +IF ERRORLEVEL 1 GOTO ERROR + +EXIT 0 + +REM ---------------------------------------------------- +:ERROR +ECHO. +ECHO *** Whoops, something choked. +ECHO. +CD .. +EXIT 1 + +:noconfig +echo File config.bat not found. Please copy it from config.bat.tmpl and tweak for you. +EXIT 2 diff --git a/tools/buildbot/slaves/win32-xp-VS2005/svncheck.bat b/tools/buildbot/slaves/win32-xp-VS2005/svncheck.bat new file mode 100644 index 0000000..91a3b62 --- /dev/null +++ b/tools/buildbot/slaves/win32-xp-VS2005/svncheck.bat @@ -0,0 +1,76 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +@echo off +IF NOT EXIST ..\config.bat GOTO noconfig +call ..\config.bat + +set FS_TYPE=%1 +set RA_TYPE=%2 + +REM By default, return zero +set ERR=0 + +if "%RA_TYPE%"=="ra_local" goto ra_local +if "%RA_TYPE%"=="ra_svn" goto ra_svn +if "%RA_TYPE%"=="ra_dav" goto ra_dav + +echo Unknown ra method '%RA_TYPE%' +EXIT 3 + +:ra_local +time /T +python win-tests.py %TEST_DIR%\%FS_TYPE% -f %FS_TYPE% -c -r +if ERRORLEVEL 1 set ERR=1 +time /T +echo. +echo. +echo Detailed log for %FS_TYPE%\tests.log: +type %TEST_DIR%\%FS_TYPE%\tests.log +echo End of log for %FS_TYPE%\tests.log +echo. +EXIT %ERR% + +:ra_svn +time /T +python win-tests.py %TEST_DIR%\%FS_TYPE% -f %FS_TYPE% -c -r -u svn://localhost +if ERRORLEVEL 1 set ERR=1 +time /T +echo. +echo. +echo Detailed log for %FS_TYPE%\svn-tests.log: +type %TEST_DIR%\%FS_TYPE%\svn-tests.log +echo End of log for %FS_TYPE%\svn-tests.log +echo. +EXIT %ERR% + +:ra_dav +time /T +python win-tests.py %TEST_DIR%\%FS_TYPE% -f %FS_TYPE% -c -r --httpd-dir="%HTTPD_BIN_DIR%" --httpd-port 1234 +if ERRORLEVEL 1 set ERR=1 +time /T +echo. +echo. +echo Detailed log for %FS_TYPE%\dav-tests.log: +type %TEST_DIR%\%FS_TYPE%\dav-tests.log +echo End of log for %FS_TYPE%\dav-tests.log +echo. +EXIT %ERR% + +:noconfig +echo File config.bat not found. Please copy it from config.bat.tmpl and tweak for you. +EXIT 2 diff --git a/tools/buildbot/slaves/win32-xp-VS2005/svnclean.bat b/tools/buildbot/slaves/win32-xp-VS2005/svnclean.bat new file mode 100644 index 0000000..9c05b25 --- /dev/null +++ b/tools/buildbot/slaves/win32-xp-VS2005/svnclean.bat @@ -0,0 +1,30 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +@echo off +IF NOT EXIST ..\config.bat GOTO noconfig +call ..\config.bat + +REM if NOT "%CLEAN_SVN%"=="" MSBUILD subversion_vcnet.sln /t:Clean /p:Configuration=Release +rmdir /s /q Release +rmdir /s /q %TEST_DIR% + +EXIT 0 + +:noconfig +echo File config.bat not found. Please copy it from config.bat.tmpl and tweak for you. +EXIT 2 diff --git a/tools/buildbot/slaves/win32-xp-VS2005/svnlog.bat b/tools/buildbot/slaves/win32-xp-VS2005/svnlog.bat new file mode 100644 index 0000000..df6760a --- /dev/null +++ b/tools/buildbot/slaves/win32-xp-VS2005/svnlog.bat @@ -0,0 +1,30 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +@echo off +REM IF NOT EXIST ..\config.bat GOTO noconfig +REM call ..\config.bat + +echo. +echo Detailed test logs included in svncheck.bat log. +echo. + +EXIT 0 + +:noconfig +echo File config.bat not found. Please copy it from config.bat.tmpl and tweak for you. +EXIT 2 diff --git a/tools/buildbot/slaves/xp-vc60-ia32/config.bat.tmpl b/tools/buildbot/slaves/xp-vc60-ia32/config.bat.tmpl new file mode 100644 index 0000000..1221b7a --- /dev/null +++ b/tools/buildbot/slaves/xp-vc60-ia32/config.bat.tmpl @@ -0,0 +1,44 @@ +REM Licensed to the Apache Software Foundation (ASF) under one
+REM or more contributor license agreements. See the NOTICE file
+REM distributed with this work for additional information
+REM regarding copyright ownership. The ASF licenses this file
+REM to you under the Apache License, Version 2.0 (the
+REM "License"); you may not use this file except in compliance
+REM with the License. You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing,
+REM software distributed under the License is distributed on an
+REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+REM KIND, either express or implied. See the License for the
+REM specific language governing permissions and limitations
+REM under the License.
+
+set MSDEV=C:\Program Files\VS6.0
+set HTTPD_BIN_DIR=C:\Program Files\Apache2
+set TEST_DIR=C:\tmp\svn-auto-test
+set SDK_DIR=C:\Program Files\VS.NET\Vc7\PlatformSDK\
+
+set HTTPD_SRC_DIR=..\httpd
+set BDB_DIR=..\db4-win32
+set NEON_DIR=..\neon
+set ZLIB_DIR=..\zlib
+set OPENSSL_DIR=..\openssl
+set INTL_DIR=..\svn-win32-libintl
+
+REM Uncomment this if you want clean subversion build, after testing
+REM set CLEAN_SVN=1
+
+REM Uncomment this if you want disable ra_svn tests
+REM set NO_RA_SVN=1
+
+REM Uncomment this if you want disable ra_dav tests
+REM set NO_RA_HTTP=1
+
+set SDKINC=%SDK_DIR%\include
+set SDKLIB=%SDK_DIR%\lib
+
+set PATH=%MSDEV%\VC98\Bin;%MSDEV%\Common\MSDev98\Bin\;%PATH%
+set INCLUDE=%SDKINC%;%MSDEV%\VC98\ATL\INCLUDE;%MSDEV%\VC98\INCLUDE;%MSDEV%\VC98\MFC\INCLUDE
+set LIB=%SDKLIB%;%MSDEV%\VC98\LIB;%MSDEV%\VC98\MFC\LIB
diff --git a/tools/buildbot/slaves/xp-vc60-ia32/svnbuild.bat b/tools/buildbot/slaves/xp-vc60-ia32/svnbuild.bat new file mode 100644 index 0000000..2d5a671 --- /dev/null +++ b/tools/buildbot/slaves/xp-vc60-ia32/svnbuild.bat @@ -0,0 +1,77 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +IF NOT EXIST ..\config.bat GOTO noconfig +call ..\config.bat + +IF NOT "%OPENSSL_DIR%"=="" call :openssl +IF ERRORLEVEL 1 GOTO ERROR + +set PARAMS=-t dsp --with-berkeley-db=%BDB_DIR% --with-libintl=%INTL_DIR% --with-zlib=%ZLIB_DIR% --with-httpd=%HTTPD_SRC_DIR% --with-neon=%NEON_DIR% --enable-bdb-in-apr-util +IF NOT "%OPENSSL_DIR%"=="" set PARAMS=%PARAMS% --with-openssl=%OPENSSL_DIR% + +python gen-make.py %PARAMS% +IF ERRORLEVEL 1 GOTO ERROR + +MSDEV.COM %HTTPD_SRC_DIR%\apache.dsw /MAKE "BuildBin - Win32 Release" +IF ERRORLEVEL 1 GOTO ERROR + +MSDEV.COM subversion_msvc.dsw /USEENV /MAKE "__ALL_TESTS__ - Win32 Release" +IF ERRORLEVEL 1 GOTO ERROR + + +EXIT 0 + +REM ---------------------------------------------------- +:ERROR +ECHO. +ECHO *** Whoops, something choked. +ECHO. +CD .. +EXIT 1 + + +:openssl +rem ====== Build openssl. +pushd %OPENSSL_DIR% +perl Configure VC-WIN32 +IF ERRORLEVEL 1 goto openssl-err1 + +call ms\do_ms +IF ERRORLEVEL 1 goto openssl-err1 + +nmake -f ms\ntdll.mak /NOLOGO /S +IF ERRORLEVEL 1 goto openssl-err1 + +pushd out32dll +call ..\ms\test +IF ERRORLEVEL 1 goto openssl-err2 + +popd +popd +EXIT /B 0 + +:openssl-err2 +popd + +:openssl-err1 +popd +EXIT 1 + +:noconfig +echo File config.bat not found. Please copy it from config.bat.tmpl and tweak for you. +EXIT 2 diff --git a/tools/buildbot/slaves/xp-vc60-ia32/svncheck.bat b/tools/buildbot/slaves/xp-vc60-ia32/svncheck.bat new file mode 100644 index 0000000..70e8768 --- /dev/null +++ b/tools/buildbot/slaves/xp-vc60-ia32/svncheck.bat @@ -0,0 +1,51 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +IF NOT EXIST ..\config.bat GOTO noconfig +call ..\config.bat + +set FS_TYPE=%1 +set RA_TYPE=%2 + +REM By default, return zero +set ERR=0 + +if "%RA_TYPE%"=="ra_local" goto ra_local +if "%RA_TYPE%"=="ra_svn" goto ra_svn +if "%RA_TYPE%"=="ra_dav" goto ra_dav + +echo Unknown ra method '%RA_TYPE%' +EXIT 3 + +:ra_local +python win-tests.py %TEST_DIR% -f %FS_TYPE% -c -r +if ERRORLEVEL 1 set ERR=1 +EXIT %ERR% + +:ra_svn +python win-tests.py %TEST_DIR% -f %FS_TYPE% -c -r -u svn://localhost +if ERRORLEVEL 1 set ERR=1 +EXIT %ERR% + +:ra_dav +python win-tests.py %TEST_DIR% -f %FS_TYPE% -c -r --httpd-dir="%HTTPD_BIN_DIR%" --httpd-port 1234 +if ERRORLEVEL 1 set ERR=1 +EXIT %ERR% + +:noconfig +echo File config.bat not found. Please copy it from config.bat.tmpl and tweak for you. +EXIT 2 diff --git a/tools/buildbot/slaves/xp-vc60-ia32/svnclean.bat b/tools/buildbot/slaves/xp-vc60-ia32/svnclean.bat new file mode 100644 index 0000000..64df9b8 --- /dev/null +++ b/tools/buildbot/slaves/xp-vc60-ia32/svnclean.bat @@ -0,0 +1,28 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +IF NOT EXIST ..\config.bat GOTO noconfig +call ..\config.bat + +if NOT "%CLEAN_SVN%"=="" MSDEV.COM subversion_msvc.dsw /MAKE "__ALL_TESTS__ - Win32 Release" /CLEAN +if ERRORLEVEL 1 EXIT 1 + +EXIT 0 + +:noconfig +echo File config.bat not found. Please copy it from config.bat.tmpl and tweak for you. +EXIT 2 diff --git a/tools/buildbot/slaves/xp-vc60-ia32/svnlog.bat b/tools/buildbot/slaves/xp-vc60-ia32/svnlog.bat new file mode 100644 index 0000000..bb0d872 --- /dev/null +++ b/tools/buildbot/slaves/xp-vc60-ia32/svnlog.bat @@ -0,0 +1,25 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. + +IF NOT EXIST ..\config.bat GOTO noconfig +call ..\config.bat + +EXIT 0 + +:noconfig +echo File config.bat not found. Please copy it from config.bat.tmpl and tweak for you. +EXIT 2 |