gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r18524 - in gnunet-planetlab: . config_generator


From: gnunet
Subject: [GNUnet-SVN] r18524 - in gnunet-planetlab: . config_generator
Date: Fri, 9 Dec 2011 10:07:40 +0100

Author: pritpal
Date: 2011-12-09 10:07:40 +0100 (Fri, 09 Dec 2011)
New Revision: 18524

Added:
   gnunet-planetlab/config_generator/
   gnunet-planetlab/config_generator/1
   gnunet-planetlab/config_generator/master.cfg
   gnunet-planetlab/config_generator/master_config_generate.sh
   gnunet-planetlab/config_generator/master_template.cfg
   gnunet-planetlab/config_generator/nodes.txt
   gnunet-planetlab/config_generator/nodes_password.txt
   gnunet-planetlab/config_generator/password.txt
   gnunet-planetlab/config_generator/password_generate.sh
Log:
Adding scripts for Master configuration generation

Added: gnunet-planetlab/config_generator/1
===================================================================
--- gnunet-planetlab/config_generator/1                         (rev 0)
+++ gnunet-planetlab/config_generator/1 2011-12-09 09:07:40 UTC (rev 18524)
@@ -0,0 +1 @@
+notes

Added: gnunet-planetlab/config_generator/master.cfg
===================================================================
--- gnunet-planetlab/config_generator/master.cfg                                
(rev 0)
+++ gnunet-planetlab/config_generator/master.cfg        2011-12-09 09:07:40 UTC 
(rev 18524)
@@ -0,0 +1,1186 @@
+# -*- python -*-
+# ex: set syntax=python:
+
+# This is a sample buildmaster config file. It must be installed as
+# 'master.cfg' in your buildmaster's base directory (although the filename
+# can be changed with the --basedir option to 'mktap buildbot master').
+
+# It has one job: define a dictionary named BuildmasterConfig. This
+# dictionary has a variety of keys to control different aspects of the
+# buildmaster. They are documented in docs/config.xhtml .
+
+# This is the dictionary that the buildmaster pays attention to. We also use
+# a shorter alias to save typing.
+c = BuildmasterConfig = {}
+
+
+####### BUILDSLAVES
+
+# the 'slaves' list defines the set of allowable buildslaves. Each element is
+# a tuple of bot-name and bot-password. These correspond to values given to
+# the buildslave's mktap invocation.
+from buildbot.buildslave import BuildSlave
+c['slaves'] =  
+               [
+               
+BuildSlave("planetlab-3.fing.edu.uy","b5Bp0VPRb8MrQ"),
+BuildSlave("planetlab1.comp.nus.edu.sg","QLIYmvec5dS0c")
+               ]
+
+# to limit to two concurrent builds on a slave, use
+#  c['slaves'] = [BuildSlave("bot1name", "bot1passwd", max_builds=2)]
+
+
+# 'slavePortnum' defines the TCP port to listen on. This must match the value
+# configured into the buildslaves (with their --master option)
+
+c['slavePortnum'] = 9989
+
+####### CHANGESOURCES
+
+# the 'change_source' setting tells the buildmaster how it should find out
+# about source code changes. Any class which implements IChangeSource can be
+# put here: there are several in buildbot/changes/*.py to choose from.
+
+from buildbot.changes.pb import PBChangeSource
+c['change_source'] = PBChangeSource()
+
+# For example, if you had CVSToys installed on your repository, and your
+# CVSROOT/freshcfg file had an entry like this:
+#pb = ConfigurationSet([
+#    (None, None, None, PBService(userpass=('foo', 'bar'), port=4519)),
+#    ])
+
+# then you could use the following buildmaster Change Source to subscribe to
+# the FreshCVS daemon and be notified on every commit:
+#
+#from buildbot.changes.freshcvs import FreshCVSSource
+#fc_source = FreshCVSSource("cvs.example.com", 4519, "foo", "bar")
+#c['change_source'] = fc_source
+
+# or, use a PBChangeSource, and then have your repository's commit script run
+# 'buildbot sendchange', or use contrib/svn_buildbot.py, or
+# contrib/arch_buildbot.py :
+#
+#from buildbot.changes.pb import PBChangeSource
+#c['change_source'] = PBChangeSource()
+
+
+####### SCHEDULERS
+
+## configure the Schedulers
+
+from buildbot.scheduler import Scheduler
+c['schedulers'] = []
+c['schedulers'].append(Scheduler(name="gnunet", branch=None,
+                                 treeStableTimer=30*60,
+                                categories=["GNUnet"],
+                                 builderNames=[
+                                       
+planetlab-3.fing.edu.uy,
+planetlab1.comp.nus.edu.sg
+
+]))
+
+
+####### BUILDERS
+
+# the 'builders' list defines the Builders. Each one is configured with a
+# dictionary, using the following keys:
+#  name (required): the name used to describe this bilder
+#  slavename (required): which slave to use, must appear in c['bots']
+#  builddir (required): which subdirectory to run the builder in
+#  factory (required): a BuildFactory to define how the build is run
+#  periodicBuildTime (optional): if set, force a build every N seconds
+
+# buildbot/process/factory.py provides several BuildFactory classes you can
+# start with, which implement build processes for common targets (GNU
+# autoconf projects, CPAN perl modules, etc). The factory.BuildFactory is the
+# base class, and is configured with a series of BuildSteps. When the build
+# is run, the appropriate buildslave is told to execute each Step in turn.
+
+# the first BuildStep is typically responsible for obtaining a copy of the
+# sources. There are source-obtaining Steps in buildbot/steps/source.py for
+# CVS, SVN, and others.
+
+svnurl = "https://gnunet.org/svn/gnunet";
+
+from buildbot.changes.svnpoller import SVNPoller
+from buildbot.process import factory
+from buildbot.steps import source, shell
+from buildbot.steps.shell import Compile
+import os
+#rm-nat
+tmp = "/tmp/gnbuild"
+le_tmp = "/tmp/lebuild"
+#c['change_source'] = [
+#                      SVNPoller(svnurl = "https://gnunet.org/svn/gnunet/";, 
category="GNUnet"),
+#                      SVNPoller(svnurl = "https://gnunet.org/svn/Extractor/";, 
category="Extractor"),
+#              ]
+
+f1 = factory.BuildFactory()
+
+f1.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet-planetlab/";))
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./00_planetlab-certificate-install.sh"],
+       description="Installing svn certificate",
+       name="Install-Certificate gnunet.org",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./00_planetlab-remove.sh"],
+       description="Removing Previous Libcrypt version",
+       name="remove prev-ligcrypt",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./01_planetlab-dependencies.sh"],
+       description="Installing gnunet dependencies",
+       name="install dependencies",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./02_planetlab-deps-from-source.sh"],
+       description="Installing more dependencies",
+       name="install more dependencies",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./03_planetlab-extractor.sh"],
+       description="Installing Extractor",
+       name="install Extractor",
+       haltOnFailure=True,
+       timeout=30)
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./04_planetlab-libmicrohttpd.sh"],
+       description="Installing Libmicrohttpd",
+       name="install Libmicrohttpd",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./05_planetlab-gnunet.sh"],
+       description="Installing Gnunet",
+       name="install Gnunet",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f1.addStep(shell.ShellCommand, command=["sh", "-c", "killall 
gnunet-service-arm || true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf 
/tmp/test*;"],
+       description="clean up from previous runs",
+       name="killall",
+       haltOnFailure=False,
+       timeout=30)
+f1.addStep(shell.ShellCommand, command=["sh", "-c", "./bootstrap"],
+       description="bootstrap",
+       name="bootstrap",
+       haltOnFailure=True)
+f1.addStep(shell.Configure, command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests --prefix=" + tmp],
+       description="configure",
+       name="configure",
+       haltOnFailure=True)
+f1.addStep(shell.Compile,command=["sh", "-c", "make install"])
+f1.addStep(shell.ShellCommand,description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; ../../contrib/timeout_watchdog 
900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand,description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f1.addStep(shell.ShellCommand, description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f1.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+
+f1_slow_machines = factory.BuildFactory()
+f1_slow_machines .addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f1_slow_machines .addStep(shell.ShellCommand, command=["sh", "-c", "killall 
gnunet-service-arm || true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf 
/tmp/test*;"],
+       description="clean up from previous runs",
+       name="killall",
+       haltOnFailure=False,
+       timeout=30)
+f1_slow_machines .addStep(shell.ShellCommand, command=["sh", "-c", 
"./bootstrap"],
+       description="bootstrap",
+       name="bootstrap",
+       haltOnFailure=True)
+f1_slow_machines .addStep(shell.Configure, command=["sh", "-c", "./configure 
--prefix=" + tmp],
+       description="configure",
+       name="configure",
+       haltOnFailure=True)
+f1_slow_machines .addStep(shell.Compile,command=["sh", "-c", "make install"])
+f1_slow_machines .addStep(shell.ShellCommand,description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; ../../contrib/timeout_watchdog 
900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand,description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests 
fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests 
peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f1_slow_machines .addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+
+f2 = factory.BuildFactory()
+f2.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f2.addStep(shell.ShellCommand, command=["sh", "-c", "killall 
gnunet-service-arm || true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf 
/tmp/test*;"],
+        description="clean up from previous runs",
+        name="killall",
+        haltOnFailure=False,
+       timeout=180)
+f2.addStep(shell.ShellCommand, command=["sh", "-c", "./bootstrap"],
+      description="bootstrap",
+      name="bootstrap",
+      haltOnFailure=True)
+f2.addStep(shell.Configure, command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests --prefix=" + tmp + " 
--with-extractor=/usr/local --with-mysql=/usr/local 
--with-microhttpd=/usr/local --with-mysql=/usr/local --with-postgres=/usr/local 
--with-libintl-prefix=/usr/local --with-iconv-prefix=/usr/local 
--with-ltdl-include=/usr/local/include --with-ltdl-lib=/usr/local/lib"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+f2.addStep(shell.Compile, command=["sh", "-c", "gmake install"])
+f2.addStep(shell.ShellCommand,description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; ../../contrib/timeout_watchdog 
900 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 3600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f2.addStep(shell.ShellCommand,description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; ../../contrib/timeout_watchdog 
1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f2.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+
+# %PATH% and %GNUNET_PREFIX% have to be set before buildbot startup
+f3 = factory.BuildFactory()
+f3.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f3.addStep(shell.ShellCommand,command=["sh", "-c", "killall_gnunet || true; 
svn -R revert *"],
+        description="cleanup old processes",
+        name="cleanup",
+        haltOnFailure=False)
+f3.addStep(shell.ShellCommand,command=["sh", "-c", "./bootstrap"],
+        description="bootstrap",
+        name="bootstrap",
+        haltOnFailure=True)
+f3.addStep(shell.Configure,command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests  --prefix=$GNUNET_PREFIX 
--with-microhttpd=/usr/local --with-extractor= --with-qt=/c/Qt/4.4.0"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+f3.addStep(shell.Compile,command=["sh", "-c", "make install"])
+f3.addStep(shell.ShellCommand, description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
make check; "],
+          timeout=7200)
+f3.addStep(shell.ShellCommand, description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; make check; "])
+f3.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f3.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f3.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+
+
+f4 = factory.BuildFactory()
+f4.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f4.addStep(shell.ShellCommand,command=["sh", "-c", "killall gnunet-service-arm 
|| true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf /tmp/test*;"],
+        description="clean up from previous runs",
+        name="killall",
+        haltOnFailure=False,
+       timeout=30)
+f4.addStep(shell.ShellCommand,command=["sh", "-c", "./bootstrap"],
+      description="bootstrap",
+       name="bootstrap",
+          haltOnFailure=True)
+f4.addStep(shell.Configure,command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests  --prefix=" + tmp + " 
--with-extractor=/opt/local --with-mysql=/opt/local 
--with-microhttpd=/opt/local --with-mysql=/opt/local --with-postgres=/opt/local 
--with-libintl-prefix=/opt/local --with-iconv-prefix=/opt/local 
--with-ltdl-include=/opt/local/include --with-ltdl-lib=/opt/local/lib"],
+         description="configure",
+         name="configure",
+          haltOnFailure=True)
+f4.addStep(shell.Compile,command=["sh", "-c", "make install"])
+f4.addStep(shell.ShellCommand, description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; ../../contrib/timeout_watchdog 
900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f4.addStep(shell.ShellCommand, description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f4.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})    
+
+f_moep = factory.BuildFactory()
+f_moep.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f_moep.addStep(shell.ShellCommand,command=["sh", "-c", "killall_gnunet || 
true; svn -R revert *"],
+        description="cleanup old processes",
+        name="cleanup",
+        haltOnFailure=False)
+f_moep.addStep(shell.ShellCommand,command=["sh", "-c", "./bootstrap"],
+        description="bootstrap",
+        name="bootstrap",
+        haltOnFailure=True)
+f_moep.addStep(shell.Configure,command=["sh", "-c", 
"CPPFLAGS=\"-I/opt/local/include\" LDFLAGS=\"-L/opt/local/lib\" ./configure 
--enable-benchmarks --enable-expensive-tests  --prefix=/tmp/gnunet_build 
--with-extractor=/opt/local/lib --with-qt=/c/Qt/4.4.0"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+f_moep.addStep(shell.Compile,command=["sh", "-c", "make install"])
+f_moep.addStep(shell.ShellCommand, description=["tests util"],
+       name="tests util",
+       usePTY=True,
+       command=["sh", "-c", "cd src/util; make check; "],
+       env={'LDFLAGS'  : '-L/opt/local' , 'GNUNET_PREFIX': '/tmp/gnunet_build' 
, 'PATH': "/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+
+f_test = factory.BuildFactory()
+f_test.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f_test.addStep(shell.ShellCommand, command=["sh", "-c", "killall 
gnunet-service-arm || true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf 
/tmp/test*;"],
+        description="clean up from previous runs",
+        name="killall",
+        haltOnFailure=False,
+       timeout=180)
+f_test.addStep(shell.ShellCommand, command=["sh", "-c", "./bootstrap"],
+      description="bootstrap",
+      name="bootstrap",
+      haltOnFailure=True)
+f_test.addStep(shell.Configure, command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests --prefix=" + tmp + " 
--with-extractor=/usr/local --with-mysql=/usr/local 
--with-microhttpd=/usr/local --with-mysql=/usr/local --with-postgres=/usr/local 
--with-libintl-prefix=/usr/local --with-iconv-prefix=/usr/local 
--with-ltdl-include=/usr/local/include --with-ltdl-lib=/usr/local/lib"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+f_test.addStep(shell.Compile, command=["sh", "-c", "make install"])
+f_test.addStep(shell.ShellCommand,description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; 
../../../contrib/../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f_test.addStep(shell.ShellCommand,description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f_test.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+                                                                               
            
+# %PATH% and %LE_PREFIX% have to be set before buildbot startup
+fLEXP = factory.BuildFactory()
+fLEXP.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/Extractor/";))
+fLEXP.addStep(shell.ShellCommand,command=["sh", "-c", "killall_gnunet"],
+        description="cleanup old processes",
+       name="cleanup",
+       haltOnFailure=False)
+fLEXP.addStep(shell.ShellCommand,command=["sh", "-c", "./bootstrap"],
+        description="bootstrap",
+         name="bootstrap",
+         haltOnFailure=True)
+fLEXP.addStep(shell.Configure,command=["sh", "-c", "./configure --disable-nls 
--prefix=$LE_PREFIX --with-qt=/c/Qt/4.4.0"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+fLEXP.addStep(shell.Compile,command=["sh", "-c", "make install"])
+fLEXP.addStep(shell.ShellCommand, description=["tests"],
+       name="tests",
+        usePTY=True,
+        command=["sh", "-c", "make check; "])
+
+
+
+b0= {
+'name':"planetlab-3.fing.edu.uy",
+'slavename':"planetlab-3.fing.edu.uy"
+'builddir':"full",
+'factory':f1,
+'category':"Gnunet",
+} 
+b1= {
+'name':"planetlab1.comp.nus.edu.sg",
+'slavename':"planetlab1.comp.nus.edu.sg"
+'builddir':"full",
+'factory':f1,
+'category':"Gnunet",
+} 
+
+
+
+c['builders'] = [
+#c['builders'] = [b0, b12, b19, b20, b21, b22, b23, b24]
+               
+b0,
+b1
+               ]
+
+####### STATUS TARGETS
+
+# 'status' is a list of Status Targets. The results of each build will be
+# pushed to these targets. buildbot/status/*.py has a variety to choose from,
+# including web pages, email senders, and IRC bots.
+
+c['status'] = []
+
+from buildbot.status import html
+#c['status'].append(html.WebStatus(http_port=8010))
+c['status'].append(html.WebStatus(http_port=8010, allowForce=True))
+
+# from buildbot.status import mail
+# c['status'].append(mail.MailNotifier(fromaddr="address@hidden",
+#                                      extraRecipients=["address@hidden"],
+#                                      sendToInterestedUsers=False))
+#
+from buildbot.status import words
+c['status'].append(words.IRC(host="irc.freenode.net", nick="gnunet-bb",
+                             channels=["#gnunet"]))
+#
+# from buildbot.status import client
+# c['status'].append(client.PBListener(9988))
+
+
+####### DEBUGGING OPTIONS
+
+# if you set 'debugPassword', then you can connect to the buildmaster with
+# the diagnostic tool in contrib/debugclient.py . From this tool, you can
+# manually force builds and inject changes, which may be useful for testing
+# your buildmaster without actually commiting changes to your repository (or
+# before you have a functioning 'sources' set up). The debug tool uses the
+# same port number as the slaves do: 'slavePortnum'.
+
+#c['debugPassword'] = "f1955c29e336834e88476f74c1825cdb"
+
+# if you set 'manhole', you can ssh into the buildmaster and get an
+# interactive python shell, which may be useful for debugging buildbot
+# internals. It is probably only useful for buildbot developers. You can also
+# use an authorized_keys file, or plain telnet.
+#from buildbot import manhole
+#c['manhole'] = manhole.PasswordManhole("tcp:9999:interface=127.0.0.1",
+#                                       "admin", "password")
+
+
+####### PROJECT IDENTITY
+
+# the 'projectName' string will be used to describe the project that this
+# buildbot is working on. For example, it is used as the title of the
+# waterfall HTML page. The 'projectURL' string will be used to provide a link
+# from buildbot HTML pages to your project's home page.
+
+c['projectName'] = "GNUnet"
+c['projectURL'] = "https://gnunet.org/";
+
+# the 'buildbotURL' string should point to the location where the buildbot's
+# internal web server (usually the html.Waterfall page) is visible. This
+# typically uses the port number set in the Waterfall 'status' entry, but
+# with an externally-visible host name which the buildbot cannot figure out
+# without some help.
+
+c['buildbotURL'] = "http://localhost:8010/";
+

Added: gnunet-planetlab/config_generator/master_config_generate.sh
===================================================================
--- gnunet-planetlab/config_generator/master_config_generate.sh                 
        (rev 0)
+++ gnunet-planetlab/config_generator/master_config_generate.sh 2011-12-09 
09:07:40 UTC (rev 18524)
@@ -0,0 +1,100 @@
+#!/bin/sh
+
+#get all the nodes and replaced in template with buildslave names
+# and passwords
+temp=$(wc -l nodes.txt | awk '{print $1}')
+var2=$temp
+replace_str=""
+var=`cat nodes.txt`
+for i in $var; do
+if [ $var2 = 1 ]
+then
+temp_var="BuildSlave("'"'$i'"'","'"'$i"_pass"'"'")"
+else
+temp_var="BuildSlave("'"'$i'"'","'"'$i"_pass"'"'"),"
+fi
+replace_str="$replace_str\n$temp_var"
+var2=$((var2-1))
+done
+echo $replace_str
+sed "s/replace1/$replace_str/g" master_template.cfg > temp; mv temp master.cfg;
+
+
+var=`cat nodes_password.txt`
+var2=0
+for i in $var; do
+if [ $var2 = 0 ]
+then
+temp_var="$i""_pass"
+echo $temp_var
+else
+sed "s/$temp_var/$i/g" master.cfg > temp; mv temp master.cfg;
+fi
+if [ $var2 = 1 ]
+then
+var2=0
+else
+var2=1
+fi
+done
+
+
+
+temp=$(wc -l nodes.txt | awk '{print $1}')
+var2=$temp
+replace_str=""
+var=`cat nodes.txt`
+for i in $var; do
+if [ $var2 = 1 ]
+then
+temp_var="$i"
+else
+temp_var="$i"","
+fi
+
+replace_str="$replace_str\n$temp_var"
+#echo $replace_str
+var2=$((var2-1))
+done
+echo $replace_str
+sed "s/replace2/$replace_str/g" master.cfg > temp; mv temp master.cfg;
+
+
+temp=$(wc -l nodes.txt | awk '{print $1}')
+var2=$temp
+var3=0
+replace_str=""
+var=`cat nodes.txt`
+for i in $var; do
+temp_var="b"$var3"= 
{\n'name':"'"'$i'"'",\n'slavename':"'"'$i'"'"\n'builddir':"'"'"full"'"'",\n'factory':f1,\n'category':"'"'"Gnunet"'"'",\n}
 "
+
+replace_str="$replace_str\n$temp_var"
+#echo $replace_str
+var2=$((var2-1))
+var3=$((var3+1))
+done
+echo $replace_str
+sed "s/replace3/$replace_str/g" master.cfg > temp; mv temp master.cfg;
+
+
+temp=$(wc -l nodes.txt | awk '{print $1}')
+var2=$temp
+var3=0
+replace_str=""
+var=`cat nodes.txt`
+for i in $var; do
+
+if [ $var2 = 1 ]
+then
+temp_var="b$var3"
+else
+temp_var="b$var3,"
+fi
+replace_str="$replace_str\n$temp_var"
+#echo $replace_str
+var2=$((var2-1))
+var3=$((var3+1))
+done
+
+echo $replace_str
+sed "s/replace4/$replace_str/g" master.cfg > temp; mv temp master.cfg;

Added: gnunet-planetlab/config_generator/master_template.cfg
===================================================================
--- gnunet-planetlab/config_generator/master_template.cfg                       
        (rev 0)
+++ gnunet-planetlab/config_generator/master_template.cfg       2011-12-09 
09:07:40 UTC (rev 18524)
@@ -0,0 +1,1166 @@
+# -*- python -*-
+# ex: set syntax=python:
+
+# This is a sample buildmaster config file. It must be installed as
+# 'master.cfg' in your buildmaster's base directory (although the filename
+# can be changed with the --basedir option to 'mktap buildbot master').
+
+# It has one job: define a dictionary named BuildmasterConfig. This
+# dictionary has a variety of keys to control different aspects of the
+# buildmaster. They are documented in docs/config.xhtml .
+
+# This is the dictionary that the buildmaster pays attention to. We also use
+# a shorter alias to save typing.
+c = BuildmasterConfig = {}
+
+
+####### BUILDSLAVES
+
+# the 'slaves' list defines the set of allowable buildslaves. Each element is
+# a tuple of bot-name and bot-password. These correspond to values given to
+# the buildslave's mktap invocation.
+from buildbot.buildslave import BuildSlave
+c['slaves'] =  
+               [
+               replace1
+               ]
+
+# to limit to two concurrent builds on a slave, use
+#  c['slaves'] = [BuildSlave("bot1name", "bot1passwd", max_builds=2)]
+
+
+# 'slavePortnum' defines the TCP port to listen on. This must match the value
+# configured into the buildslaves (with their --master option)
+
+c['slavePortnum'] = 9989
+
+####### CHANGESOURCES
+
+# the 'change_source' setting tells the buildmaster how it should find out
+# about source code changes. Any class which implements IChangeSource can be
+# put here: there are several in buildbot/changes/*.py to choose from.
+
+from buildbot.changes.pb import PBChangeSource
+c['change_source'] = PBChangeSource()
+
+# For example, if you had CVSToys installed on your repository, and your
+# CVSROOT/freshcfg file had an entry like this:
+#pb = ConfigurationSet([
+#    (None, None, None, PBService(userpass=('foo', 'bar'), port=4519)),
+#    ])
+
+# then you could use the following buildmaster Change Source to subscribe to
+# the FreshCVS daemon and be notified on every commit:
+#
+#from buildbot.changes.freshcvs import FreshCVSSource
+#fc_source = FreshCVSSource("cvs.example.com", 4519, "foo", "bar")
+#c['change_source'] = fc_source
+
+# or, use a PBChangeSource, and then have your repository's commit script run
+# 'buildbot sendchange', or use contrib/svn_buildbot.py, or
+# contrib/arch_buildbot.py :
+#
+#from buildbot.changes.pb import PBChangeSource
+#c['change_source'] = PBChangeSource()
+
+
+####### SCHEDULERS
+
+## configure the Schedulers
+
+from buildbot.scheduler import Scheduler
+c['schedulers'] = []
+c['schedulers'].append(Scheduler(name="gnunet", branch=None,
+                                 treeStableTimer=30*60,
+                                categories=["GNUnet"],
+                                 builderNames=[
+                                       replace2
+
+]))
+
+
+####### BUILDERS
+
+# the 'builders' list defines the Builders. Each one is configured with a
+# dictionary, using the following keys:
+#  name (required): the name used to describe this bilder
+#  slavename (required): which slave to use, must appear in c['bots']
+#  builddir (required): which subdirectory to run the builder in
+#  factory (required): a BuildFactory to define how the build is run
+#  periodicBuildTime (optional): if set, force a build every N seconds
+
+# buildbot/process/factory.py provides several BuildFactory classes you can
+# start with, which implement build processes for common targets (GNU
+# autoconf projects, CPAN perl modules, etc). The factory.BuildFactory is the
+# base class, and is configured with a series of BuildSteps. When the build
+# is run, the appropriate buildslave is told to execute each Step in turn.
+
+# the first BuildStep is typically responsible for obtaining a copy of the
+# sources. There are source-obtaining Steps in buildbot/steps/source.py for
+# CVS, SVN, and others.
+
+svnurl = "https://gnunet.org/svn/gnunet";
+
+from buildbot.changes.svnpoller import SVNPoller
+from buildbot.process import factory
+from buildbot.steps import source, shell
+from buildbot.steps.shell import Compile
+import os
+#rm-nat
+tmp = "/tmp/gnbuild"
+le_tmp = "/tmp/lebuild"
+#c['change_source'] = [
+#                      SVNPoller(svnurl = "https://gnunet.org/svn/gnunet/";, 
category="GNUnet"),
+#                      SVNPoller(svnurl = "https://gnunet.org/svn/Extractor/";, 
category="Extractor"),
+#              ]
+
+f1 = factory.BuildFactory()
+
+f1.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet-planetlab/";))
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./00_planetlab-certificate-install.sh"],
+       description="Installing svn certificate",
+       name="Install-Certificate gnunet.org",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./00_planetlab-remove.sh"],
+       description="Removing Previous Libcrypt version",
+       name="remove prev-ligcrypt",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./01_planetlab-dependencies.sh"],
+       description="Installing gnunet dependencies",
+       name="install dependencies",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./02_planetlab-deps-from-source.sh"],
+       description="Installing more dependencies",
+       name="install more dependencies",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./03_planetlab-extractor.sh"],
+       description="Installing Extractor",
+       name="install Extractor",
+       haltOnFailure=True,
+       timeout=30)
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./04_planetlab-libmicrohttpd.sh"],
+       description="Installing Libmicrohttpd",
+       name="install Libmicrohttpd",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(shell.ShellCommand, command=["sh", "-c", 
"./05_planetlab-gnunet.sh"],
+       description="Installing Gnunet",
+       name="install Gnunet",
+       haltOnFailure=True,
+       timeout=30)
+
+
+f1.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f1.addStep(shell.ShellCommand, command=["sh", "-c", "killall 
gnunet-service-arm || true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf 
/tmp/test*;"],
+       description="clean up from previous runs",
+       name="killall",
+       haltOnFailure=False,
+       timeout=30)
+f1.addStep(shell.ShellCommand, command=["sh", "-c", "./bootstrap"],
+       description="bootstrap",
+       name="bootstrap",
+       haltOnFailure=True)
+f1.addStep(shell.Configure, command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests --prefix=" + tmp],
+       description="configure",
+       name="configure",
+       haltOnFailure=True)
+f1.addStep(shell.Compile,command=["sh", "-c", "make install"])
+f1.addStep(shell.ShellCommand,description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; ../../contrib/timeout_watchdog 
900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand,description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f1.addStep(shell.ShellCommand, description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f1.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+
+f1_slow_machines = factory.BuildFactory()
+f1_slow_machines .addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f1_slow_machines .addStep(shell.ShellCommand, command=["sh", "-c", "killall 
gnunet-service-arm || true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf 
/tmp/test*;"],
+       description="clean up from previous runs",
+       name="killall",
+       haltOnFailure=False,
+       timeout=30)
+f1_slow_machines .addStep(shell.ShellCommand, command=["sh", "-c", 
"./bootstrap"],
+       description="bootstrap",
+       name="bootstrap",
+       haltOnFailure=True)
+f1_slow_machines .addStep(shell.Configure, command=["sh", "-c", "./configure 
--prefix=" + tmp],
+       description="configure",
+       name="configure",
+       haltOnFailure=True)
+f1_slow_machines .addStep(shell.Compile,command=["sh", "-c", "make install"])
+f1_slow_machines .addStep(shell.ShellCommand,description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; ../../contrib/timeout_watchdog 
900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand,description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests 
fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests 
peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f1_slow_machines .addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f1_slow_machines .addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+
+f2 = factory.BuildFactory()
+f2.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f2.addStep(shell.ShellCommand, command=["sh", "-c", "killall 
gnunet-service-arm || true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf 
/tmp/test*;"],
+        description="clean up from previous runs",
+        name="killall",
+        haltOnFailure=False,
+       timeout=180)
+f2.addStep(shell.ShellCommand, command=["sh", "-c", "./bootstrap"],
+      description="bootstrap",
+      name="bootstrap",
+      haltOnFailure=True)
+f2.addStep(shell.Configure, command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests --prefix=" + tmp + " 
--with-extractor=/usr/local --with-mysql=/usr/local 
--with-microhttpd=/usr/local --with-mysql=/usr/local --with-postgres=/usr/local 
--with-libintl-prefix=/usr/local --with-iconv-prefix=/usr/local 
--with-ltdl-include=/usr/local/include --with-ltdl-lib=/usr/local/lib"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+f2.addStep(shell.Compile, command=["sh", "-c", "gmake install"])
+f2.addStep(shell.ShellCommand,description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; ../../contrib/timeout_watchdog 
900 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 3600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f2.addStep(shell.ShellCommand,description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; ../../contrib/timeout_watchdog 
1800 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand,description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f2.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
gmake check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f2.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+
+# %PATH% and %GNUNET_PREFIX% have to be set before buildbot startup
+f3 = factory.BuildFactory()
+f3.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f3.addStep(shell.ShellCommand,command=["sh", "-c", "killall_gnunet || true; 
svn -R revert *"],
+        description="cleanup old processes",
+        name="cleanup",
+        haltOnFailure=False)
+f3.addStep(shell.ShellCommand,command=["sh", "-c", "./bootstrap"],
+        description="bootstrap",
+        name="bootstrap",
+        haltOnFailure=True)
+f3.addStep(shell.Configure,command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests  --prefix=$GNUNET_PREFIX 
--with-microhttpd=/usr/local --with-extractor= --with-qt=/c/Qt/4.4.0"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+f3.addStep(shell.Compile,command=["sh", "-c", "make install"])
+f3.addStep(shell.ShellCommand, description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
make check; "],
+          timeout=7200)
+f3.addStep(shell.ShellCommand, description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; make check; "])
+f3.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; make check; "])
+f3.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f3.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f3.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+
+
+f4 = factory.BuildFactory()
+f4.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f4.addStep(shell.ShellCommand,command=["sh", "-c", "killall gnunet-service-arm 
|| true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf /tmp/test*;"],
+        description="clean up from previous runs",
+        name="killall",
+        haltOnFailure=False,
+       timeout=30)
+f4.addStep(shell.ShellCommand,command=["sh", "-c", "./bootstrap"],
+      description="bootstrap",
+       name="bootstrap",
+          haltOnFailure=True)
+f4.addStep(shell.Configure,command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests  --prefix=" + tmp + " 
--with-extractor=/opt/local --with-mysql=/opt/local 
--with-microhttpd=/opt/local --with-mysql=/opt/local --with-postgres=/opt/local 
--with-libintl-prefix=/opt/local --with-iconv-prefix=/opt/local 
--with-ltdl-include=/opt/local/include --with-ltdl-lib=/opt/local/lib"],
+         description="configure",
+         name="configure",
+          haltOnFailure=True)
+f4.addStep(shell.Compile,command=["sh", "-c", "make install"])
+f4.addStep(shell.ShellCommand, description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; ../../contrib/timeout_watchdog 
900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f4.addStep(shell.ShellCommand, description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f4.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f4.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})    
+
+f_moep = factory.BuildFactory()
+f_moep.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f_moep.addStep(shell.ShellCommand,command=["sh", "-c", "killall_gnunet || 
true; svn -R revert *"],
+        description="cleanup old processes",
+        name="cleanup",
+        haltOnFailure=False)
+f_moep.addStep(shell.ShellCommand,command=["sh", "-c", "./bootstrap"],
+        description="bootstrap",
+        name="bootstrap",
+        haltOnFailure=True)
+f_moep.addStep(shell.Configure,command=["sh", "-c", 
"CPPFLAGS=\"-I/opt/local/include\" LDFLAGS=\"-L/opt/local/lib\" ./configure 
--enable-benchmarks --enable-expensive-tests  --prefix=/tmp/gnunet_build 
--with-extractor=/opt/local/lib --with-qt=/c/Qt/4.4.0"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+f_moep.addStep(shell.Compile,command=["sh", "-c", "make install"])
+f_moep.addStep(shell.ShellCommand, description=["tests util"],
+       name="tests util",
+       usePTY=True,
+       command=["sh", "-c", "cd src/util; make check; "],
+       env={'LDFLAGS'  : '-L/opt/local' , 'GNUNET_PREFIX': '/tmp/gnunet_build' 
, 'PATH': "/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+f_moep.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': '/tmp/gnunet_build' , 'PATH': 
"/tmp/gnunet_build" + "/bin:/bin:" + os.environ['PATH']})
+
+f_test = factory.BuildFactory()
+f_test.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/gnunet/";))
+f_test.addStep(shell.ShellCommand, command=["sh", "-c", "killall 
gnunet-service-arm || true; svn -R revert *; rm -rf /tmp/gnunet*; rm -rf 
/tmp/test*;"],
+        description="clean up from previous runs",
+        name="killall",
+        haltOnFailure=False,
+       timeout=180)
+f_test.addStep(shell.ShellCommand, command=["sh", "-c", "./bootstrap"],
+      description="bootstrap",
+      name="bootstrap",
+      haltOnFailure=True)
+f_test.addStep(shell.Configure, command=["sh", "-c", "./configure 
--enable-benchmarks --enable-expensive-tests --prefix=" + tmp + " 
--with-extractor=/usr/local --with-mysql=/usr/local 
--with-microhttpd=/usr/local --with-mysql=/usr/local --with-postgres=/usr/local 
--with-libintl-prefix=/usr/local --with-iconv-prefix=/usr/local 
--with-ltdl-include=/usr/local/include --with-ltdl-lib=/usr/local/lib"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+f_test.addStep(shell.Compile, command=["sh", "-c", "make install"])
+f_test.addStep(shell.ShellCommand,description=["tests util"],
+          name="tests util",
+          usePTY=True,
+          command=["sh", "-c", "cd src/util; 
../../../contrib/../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests block"],
+          name="tests block",
+          usePTY=True,
+          command=["sh", "-c", "cd src/block; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests statistics"],
+          name="tests statistics",
+          usePTY=True,
+          command=["sh", "-c", "cd src/statistics; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests arm"],
+          name="tests arm",
+          usePTY=True,
+          command=["sh", "-c", "cd src/arm; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests hello"],
+          name="tests hello",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hello; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests peerinfo"],
+          name="tests peerinfo",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests datacache"],
+          name="tests datacache",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datacache; 
../../contrib/timeout_watchdog 900 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests datastore"],
+          name="tests datastore",
+          usePTY=True,
+          command=["sh", "-c", "cd src/datastore; 
../../contrib/timeout_watchdog 1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests template"],
+          name="tests template",
+          usePTY=True,
+          command=["sh", "-c", "cd src/template; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests fragmentation"],
+          name="tests fragmentation",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fragmentation; 
../../contrib/timeout_watchdog 3600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests transport"],
+          name="tests transport",
+          usePTY=True,
+          command=["sh", "-c", "rm -rf /tmp/test-transport; cd src/transport; 
../../contrib/timeout_watchdog 7200 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']},
+          timeout=7200)
+f_test.addStep(shell.ShellCommand,description=["tests peerinfo-tool"],
+          name="tests peerinfo-tool",
+          usePTY=True,
+          command=["sh", "-c", "cd src/peerinfo-tool; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests core"],
+          name="tests core",
+          usePTY=True,
+          command=["sh", "-c", "cd src/core; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests testing"],
+          name="tests testing",
+          usePTY=True,
+          command=["sh", "-c", "cd src/testing; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests nse"],
+          name="tests nse",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nse; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests dht"],
+          name="tests dht",
+          usePTY=True,
+          command=["sh", "-c", "cd src/dht; ../../contrib/timeout_watchdog 
1800 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests hostlist"],
+          name="tests hostlist",
+          usePTY=True,
+          command=["sh", "-c", "cd src/hostlist; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests topology"],
+          name="tests topology",
+          usePTY=True,
+          command=["sh", "-c", "cd src/topology; 
../../contrib/timeout_watchdog 600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests nat"],
+          name="tests nat",
+          usePTY=True,
+          command=["sh", "-c", "cd src/nat; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand,description=["tests fs"],
+          name="tests fs",
+          usePTY=True,
+          command=["sh", "-c", "cd src/fs; ../../contrib/timeout_watchdog 3800 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests mesh"],
+          name="tests mesh",
+          usePTY=True,
+          command=["sh", "-c", "cd src/mesh; ../../contrib/timeout_watchdog 
600 make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+f_test.addStep(shell.ShellCommand, description=["tests vpn"],
+          name="tests vpn",
+          usePTY=True,
+          command=["sh", "-c", "cd src/vpn; ../../contrib/timeout_watchdog 600 
make check; "],
+          env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+#f_test.addStep(shell.ShellCommand, description=["tests monkey"],
+#         name="tests monkey",
+#         usePTY=True,
+#         command=["sh", "-c", "cd src/monkey; ../../contrib/timeout_watchdog 
600 make check; "],
+#         env={'GNUNET_PREFIX': tmp, 'PATH': tmp + "/bin:/bin:" + 
os.environ['PATH']})
+                                                                               
            
+# %PATH% and %LE_PREFIX% have to be set before buildbot startup
+fLEXP = factory.BuildFactory()
+fLEXP.addStep(source.SVN(mode='update', svnurl = 
"https://gnunet.org/svn/Extractor/";))
+fLEXP.addStep(shell.ShellCommand,command=["sh", "-c", "killall_gnunet"],
+        description="cleanup old processes",
+       name="cleanup",
+       haltOnFailure=False)
+fLEXP.addStep(shell.ShellCommand,command=["sh", "-c", "./bootstrap"],
+        description="bootstrap",
+         name="bootstrap",
+         haltOnFailure=True)
+fLEXP.addStep(shell.Configure,command=["sh", "-c", "./configure --disable-nls 
--prefix=$LE_PREFIX --with-qt=/c/Qt/4.4.0"],
+        description="configure",
+        name="configure",
+        haltOnFailure=True)
+fLEXP.addStep(shell.Compile,command=["sh", "-c", "make install"])
+fLEXP.addStep(shell.ShellCommand, description=["tests"],
+       name="tests",
+        usePTY=True,
+        command=["sh", "-c", "make check; "])
+
+
+replace3
+
+
+
+c['builders'] = [
+#c['builders'] = [b0, b12, b19, b20, b21, b22, b23, b24]
+               replace4
+               ]
+
+####### STATUS TARGETS
+
+# 'status' is a list of Status Targets. The results of each build will be
+# pushed to these targets. buildbot/status/*.py has a variety to choose from,
+# including web pages, email senders, and IRC bots.
+
+c['status'] = []
+
+from buildbot.status import html
+#c['status'].append(html.WebStatus(http_port=8010))
+c['status'].append(html.WebStatus(http_port=8010, allowForce=True))
+
+# from buildbot.status import mail
+# c['status'].append(mail.MailNotifier(fromaddr="address@hidden",
+#                                      extraRecipients=["address@hidden"],
+#                                      sendToInterestedUsers=False))
+#
+from buildbot.status import words
+c['status'].append(words.IRC(host="irc.freenode.net", nick="gnunet-bb",
+                             channels=["#gnunet"]))
+#
+# from buildbot.status import client
+# c['status'].append(client.PBListener(9988))
+
+
+####### DEBUGGING OPTIONS
+
+# if you set 'debugPassword', then you can connect to the buildmaster with
+# the diagnostic tool in contrib/debugclient.py . From this tool, you can
+# manually force builds and inject changes, which may be useful for testing
+# your buildmaster without actually commiting changes to your repository (or
+# before you have a functioning 'sources' set up). The debug tool uses the
+# same port number as the slaves do: 'slavePortnum'.
+
+#c['debugPassword'] = "f1955c29e336834e88476f74c1825cdb"
+
+# if you set 'manhole', you can ssh into the buildmaster and get an
+# interactive python shell, which may be useful for debugging buildbot
+# internals. It is probably only useful for buildbot developers. You can also
+# use an authorized_keys file, or plain telnet.
+#from buildbot import manhole
+#c['manhole'] = manhole.PasswordManhole("tcp:9999:interface=127.0.0.1",
+#                                       "admin", "password")
+
+
+####### PROJECT IDENTITY
+
+# the 'projectName' string will be used to describe the project that this
+# buildbot is working on. For example, it is used as the title of the
+# waterfall HTML page. The 'projectURL' string will be used to provide a link
+# from buildbot HTML pages to your project's home page.
+
+c['projectName'] = "GNUnet"
+c['projectURL'] = "https://gnunet.org/";
+
+# the 'buildbotURL' string should point to the location where the buildbot's
+# internal web server (usually the html.Waterfall page) is visible. This
+# typically uses the port number set in the Waterfall 'status' entry, but
+# with an externally-visible host name which the buildbot cannot figure out
+# without some help.
+
+c['buildbotURL'] = "http://localhost:8010/";
+

Added: gnunet-planetlab/config_generator/nodes.txt
===================================================================
--- gnunet-planetlab/config_generator/nodes.txt                         (rev 0)
+++ gnunet-planetlab/config_generator/nodes.txt 2011-12-09 09:07:40 UTC (rev 
18524)
@@ -0,0 +1,2 @@
+planetlab-3.fing.edu.uy
+planetlab1.comp.nus.edu.sg

Added: gnunet-planetlab/config_generator/nodes_password.txt
===================================================================
--- gnunet-planetlab/config_generator/nodes_password.txt                        
        (rev 0)
+++ gnunet-planetlab/config_generator/nodes_password.txt        2011-12-09 
09:07:40 UTC (rev 18524)
@@ -0,0 +1,2 @@
+planetlab-3.fing.edu.uy b5Bp0VPRb8MrQ
+planetlab1.comp.nus.edu.sg QLIYmvec5dS0c

Added: gnunet-planetlab/config_generator/password.txt
===================================================================
--- gnunet-planetlab/config_generator/password.txt                              
(rev 0)
+++ gnunet-planetlab/config_generator/password.txt      2011-12-09 09:07:40 UTC 
(rev 18524)
@@ -0,0 +1,2 @@
+b5Bp0VPRb8MrQ
+QLIYmvec5dS0c

Added: gnunet-planetlab/config_generator/password_generate.sh
===================================================================
--- gnunet-planetlab/config_generator/password_generate.sh                      
        (rev 0)
+++ gnunet-planetlab/config_generator/password_generate.sh      2011-12-09 
09:07:40 UTC (rev 18524)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+#flushing previous passwords
+rm -rf nodes_password.txt
+rm -rf password.txt
+
+#Generate password for all nodes
+var=`cat nodes.txt`
+for i in $var; do
+var2=$(mkpasswd $i)
+echo "$var2" >> password.txt
+echo "$i $var2" >> nodes_password.txt
+done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]