Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 9457b02689c69e152aa2cda68176fa51 > files > 157

buildbot-doc-0.8.4p1-2.fc16.noarch.rpm

<html lang="en">
<head>
<title>Running Buildbot's Tests (optional) - BuildBot Manual - 0.8.4p1</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="BuildBot Manual - 0.8.4p1">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Installation.html#Installation" title="Installation">
<link rel="prev" href="Installing-the-code.html#Installing-the-code" title="Installing the code">
<link rel="next" href="Creating-a-buildmaster.html#Creating-a-buildmaster" title="Creating a buildmaster">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This is the BuildBot manual for Buildbot version 0.8.4p1.

Copyright (C) 2005, 2006, 2009, 2010 Brian Warner

Copying and distribution of this file, with or without
modification, are permitted in any medium without royalty
provided the copyright notice and this notice are preserved.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Running-Buildbot's-Tests-(optional)"></a>
<a name="Running-Buildbot_0027s-Tests-_0028optional_0029"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Creating-a-buildmaster.html#Creating-a-buildmaster">Creating a buildmaster</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Installing-the-code.html#Installing-the-code">Installing the code</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Installation.html#Installation">Installation</a>
<hr>
</div>

<h3 class="section">2.4 Running Buildbot's Tests (optional)</h3>

<p>If you wish, you can run the buildbot unit test suite.  First, ensure you have
the <a href="http://pypi.python.org/pypi/mock">mock</a> Python module installed from
PyPi.  This module is not required for ordinary Buildbot operation - only to
run the tests.  Note that this is not the same as the Fedora <code>mock</code>
package!  You can check with

<pre class="example">     python -mmock
</pre>
   <p>Then, run the tests:

<pre class="example">     PYTHONPATH=. trial buildbot.test
     # or
     PYTHONPATH=. trial buildslave.test
</pre>
   <p>Nothing should fail, although a few might be skipped.

   <p>If any of the tests fail for reasons other than a missing <code>mock</code>, you
should stop and investigate the cause before continuing the installation
process, as it will probably be easier to track down the bug early.  In most
cases, the problem is incorrectly installed Python modules or a badly
configured PYTHONPATH.  This may be a good time to contact the Buildbot
developers for help.

   <p>If you cannot or do not wish to install the buildbot into a site-wide location
like <samp><span class="file">/usr</span></samp> or <samp><span class="file">/usr/local</span></samp>, you can also install it into the
account's home directory or any other location using a tool like
<a href="http://pypi.python.org/pypi/virtualenv">virtualenv</a>.

   </body></html>