<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>~robcee/ &#187; unittest</title>
	<atom:link href="http://antennasoft.net/robcee/tag/unittest/feed/" rel="self" type="application/rss+xml" />
	<link>http://antennasoft.net/robcee</link>
	<description>more than just sandwiches</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:44:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Back to the &#8216;Bug</title>
		<link>http://antennasoft.net/robcee/2008/11/26/back-to-the-bug/</link>
		<comments>http://antennasoft.net/robcee/2008/11/26/back-to-the-bug/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 18:22:41 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fireunit]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[unittest]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/2008/11/26/back-to-the-bug/</guid>
		<description><![CDATA[I&#8217;ve actually been back from a brief 2 week hiatus for a couple of weeks now, trying to get my head back in the swing of things. The pace of Firebug development continues unabated. Honza is busy back-porting some Net panel changes from 1.4 to 1.3. We expect a final release of Firebug 1.3 sometime [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve actually been back from a brief 2 week hiatus for a couple of weeks now, trying to get my head back in the swing of things. The pace of Firebug development continues unabated. Honza is busy back-porting some Net panel changes from 1.4 to 1.3. We expect a final release of Firebug 1.3 sometime next week. John Barton says the new improved viewport code for the Script panel is looking solid.</p>
<p>While that&#8217;s cooking, Firebug 1.4 is going into its 7th alpha with even more tasty goodness included in the Net panel — we&#8217;re considering renaming it to the Honza panel, or maybe just putting an icon of Honza&#8217;s face in there. It&#8217;s got that much Honza in it. Also, John Barton has added some new Script panel improvements and performance enhancements. Scrolling should be even smoother and there&#8217;s a new &#8220;break-on-next&#8221; debugging feature which, at the moment, as almost sure to break things in new and exciting ways. Feel free to try it out at the usual place: <a target="_blank" href="http://getfirebug.com/releases/firebug/1.4/">http://getfirebug.com/releases/firebug/1.4</a>.</p>
<p>John Resig and Honza have been working on getting Fireunit ready for prime-time as well. Over the next month, I plan on integrating that with some revamped build scripts to get our unittest environment running.</p>
<p>Now I&#8217;d like to reintroduce the <a target="_blank" href="http://blog.getfirebug.com/">Firebug Development Blog</a>. It&#8217;s been freshly reminted and the links should finally work again on the <a target="_blank" href="http://getfirebug.com/">getfirebug.com</a> website. Expect updates from the team about new features and usage tips as well as developer-related information like API changes. If you&#8217;re into Firebug, you&#8217;ll want to add that <a href="feed://http//blog.getfirebug.com/feed">feed</a> to your reader of choice.</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2008/11/26/back-to-the-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weekly Meeting Recap, October 21, 2008</title>
		<link>http://antennasoft.net/robcee/2008/10/23/weekly-meeting-recap-october-21-2008-2/</link>
		<comments>http://antennasoft.net/robcee/2008/10/23/weekly-meeting-recap-october-21-2008-2/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 15:54:44 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Chromebug]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[fireunit]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[unittest]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/2008/10/23/weekly-meeting-recap-october-21-2008-2/</guid>
		<description><![CDATA[Just a quick blurb about what we covered in this week&#8217;s meeting: Firebug 1.3.0b2 is available on getfirebug.com Discussed Honza&#8217;s awesome improvements to the Net panel Discussed John Resig&#8217;s further efforts on FireUnit and NetUnit integration Starting to push new code to 1.4 branch, 1.3 for bugfixes and cleanup only. That&#8217;s the short version. The [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick blurb about what we covered in this week&#8217;s <a target="_blank" href="https://wiki.mozilla.org/Firebug/WeeklyUpdates/2008-10-21">meeting</a>:</p>
<ul>
<li>Firebug 1.3.0b2 is available on <a href="http://getfirebug.com/releases/firebug/1.3/">getfirebug.com</a></li>
<li>Discussed Honza&#8217;s awesome improvements to the Net panel</li>
<li>Discussed John Resig&#8217;s further efforts on FireUnit and NetUnit integration</li>
<li>Starting to push new code to 1.4 branch, 1.3 for bugfixes and cleanup only.</li>
</ul>
<p>That&#8217;s the short version.</p>
<p><a href="http://www.flickr.com/photos/robceemoz/2967271174/" title="Firebug 1.3b2 Net panel by robceemoz, on Flickr"><img src="http://farm4.static.flickr.com/3159/2967271174_aaa1f5333a_m.jpg" width="240" height="222" alt="Firebug 1.3b2 Net panel" align="left" style="margin-right: 8px;" /></a> The longer version includes some good discussion about the net panel improvements, including some ideas for color improvements and drawing <a target="_blank" href="https://developer.mozilla.org/web-tech/2008/10/13/mozafterpaint/">MozAfterPaint</a> events on top of time-lines. We&#8217;re starting to see some additional load events super-imposed on the network traffic now, so the term &#8220;Net panel&#8221; is probably going to be replaced with something like, Construction Timeline in a later version. I don&#8217;t know what that name will be yet.</p>
<p>Resig&#8217;s improvements to <a target="_blank" href="http://antennasoft.net/robcee/2008/10/07/fireunit-the-early-years/">FireUnit</a> include a test-runner mechanism for running through a set of chrome files containing unittests. He&#8217;s also making good progress on integrating Honza&#8217;s NetUnit tests which will include the httpd.js server for hosting locally stored tests. We&#8217;re getting that much closer to having a usable unittest solution.</p>
<p>That&#8217;s not to say that we have full unittest coverage yet. I spent a couple of days messing around last week trying to write some Script panel unittests but ended up scrapping them because I coded around the thing I was trying to test. It was educational at least. I&#8217;ve moved back to working on rewriting some of the packaging tools so we can have a saner, cross-platform mechanism for building the extension and stripping out all the debugging and tracing code. Hint: It will probably be written in a language named for a certain non-venomous snake.</p>
<p>Not mentioned in the bullets, John Barton has moved Chromebug into the google code <a target="_blank" href="http://code.google.com/p/fbug/source/browse/">repository</a> we&#8217;re using for Firebug. Feel free to check it out and <a target="_blank" href="http://antennasoft.net/robcee/2008/08/29/building-chromebug/">give it a whirl</a>. We should be much closer to having Chromebug in a usable state where Firefox and extension developers can start using it.</p>
<div class="code">svn co http://fbug.googlecode.com/svn/chromebug/ chromebug</div>
<p>Oh, and one last thing: For all you testers running nightlies, we&#8217;re going to bump the MaxVersion on Firebug to 3.1 so you can start re-enabling your compatibility checks. Note that Firebug 1.3 on Firefox 3.1 will be considered experimental and useful for testing purposes only. We know there are problems, but we need to track them down and fix them in Firebug 1.4. If you encounter a problem, do a search in our <a target="_blank" href="http://code.google.com/p/fbug/issues/list">Issues</a> database and if you don&#8217;t find it, file it!</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2008/10/23/weekly-meeting-recap-october-21-2008-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FireUnit &#8211; the early years</title>
		<link>http://antennasoft.net/robcee/2008/10/07/fireunit-the-early-years/</link>
		<comments>http://antennasoft.net/robcee/2008/10/07/fireunit-the-early-years/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 20:05:25 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[fireunit]]></category>
		<category><![CDATA[unittest]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/2008/10/07/fireunit-the-early-years/</guid>
		<description><![CDATA[One of our goals for moving forward with Firebug is to build a system to run automated unit tests for it. Currently, Firebug is modified, packaged and then tested by a small (but enthusiastic!) group of developers. When changes are made to the codebase, the area under development might be tested by the developer, but [...]]]></description>
			<content:encoded><![CDATA[<p>One of our goals for moving forward with Firebug is to build a system to run automated unit tests for it. Currently, Firebug is modified, packaged and then tested by a small (but enthusiastic!) group of developers. When changes are made to the codebase, the area under development might be tested by the developer, but there&#8217;s no way of knowing if what you&#8217;ve done has broken some other part of the application. As a friend of mine is fond of saying, software is hard.</p>
<p>Enter FireUnit! An extension for Firebug that aims to be able to test Firebug itself, and later on, perhaps be a useful framework for developing unittests for the web. It&#8217;s still very early on, but there&#8217;s a core emerging.</p>
<p>Installing FireUnit is currently a bit of a manual affair. Download the source code from the github <a target="_blank" href="http://github.com/jeresig/fireunit/tree/master">repository</a> and extract the downloaded zip or tar file to your local filesystem.</p>
<p>Open your profile/extensions directory for the Firefox profile that you use with Firebug. Create a new empty text file there with the name &#8220;fireunit@mozilla.com&#8221; (no quotes, of course). In this text file, add the full path to the FireUnit directory you unpacked in the previous step. E.g., &#8220;/Volumes/Data/Projects/FIREBUG/fireunit&#8221; in my case.
<div align="center"><img src="http://antennasoft.net/robcee/wp-content/uploads/2008/10/picture-1.png" alt="" /><br /><small><small><i>Test panel of FireUnit after running commandline.html</i></small></small></div>
<p>When you open/restart Firefox with this profile and open Firebug, you should now see a new &#8220;Test&#8221; panel in the list of tabs. Go to the location bar and type in / paste chrome://fireunit/content/test/commandline.html. You should see some flickering as FireUnit runs through the tests in that commandline.html. When done, you should see a bunch of passes listed in the Test panel (hopefully no failures!).</p>
<p>While I&#8217;m rambling about testing, I should mention that there will soon be a new alpha version of Firebug 1.3 (a4) available for download at <a target="_blank" href="http://getfirebug.com/releases/firebug/1.3/">getfirebug.com/releases/firebug1.3</a>. This would be an ideal version for you to try out FireUnit on! For the more adventurous in the crowd, Chromebug 0.3a8 is R261 on <a target="_blank" href="https://fireclipse.svn.sourceforge.net/svnroot/fireclipse/trunk/FireclipseExtensions/chromebug">https://fireclipse.svn.sourceforge.net/svnroot/fireclipse/trunk/FireclipseExtensions/chromebug</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2008/10/07/fireunit-the-early-years/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox 3 Unittest Architecture</title>
		<link>http://antennasoft.net/robcee/2008/06/06/firefox-3-unittest-architecture/</link>
		<comments>http://antennasoft.net/robcee/2008/06/06/firefox-3-unittest-architecture/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 12:45:14 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[robots]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[unittest]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/?p=77</guid>
		<description><![CDATA[Now that we're on the verge of shipping Firefox 3 to hundreds of millions of users around the planet, and getting ready to move our development efforts into new territory on a new repository, it's a good time to talk about the tireless robots that have diligently checked every source change for nearly a year and a half. They've worked hard, been yelled at, called names and had tense discussions with developers and IT personnel during that entire period. Some have passed on, retired to the quieter pastures of staging or have been melted down for scrap. A couple of die-hards survived relatively unscathed and are looking forward for more action, their scars worn like badges of honor…]]></description>
			<content:encoded><![CDATA[<p>Now that we&#8217;re on the verge of shipping Firefox 3 to hundreds of millions of users around the planet, and getting ready to move our development efforts into new territory on a new repository, it&#8217;s a good time to talk about the tireless robots that have diligently checked every source change for nearly a year and a half. They&#8217;ve worked hard, been yelled at, called names and had tense discussions with developers and IT personnel during that entire period. Some have passed on, retired to the quieter pastures of staging or have been melted down for scrap. A couple of die-hards survived relatively unscathed and are looking forward for more action, their scars worn like badges of honor…</p>
<p><a href="http://www.flickr.com/photos/robceemoz/2554121522/" target="_blank"><img class="alignleft" style="float: left;" src="http://farm4.static.flickr.com/3019/2554121522_4c702a0a79_m.jpg" alt="unittest diagram" width="240" height="184" /></a>Ok, that&#8217;s laying it on pretty thick, but I have a fond affection for a few of these machines. For instance, <a href="http://antennasoft.net/robcee/2007/02/19/im-sure-they-were-here-a-minute-ago/">qm-xserve01</a> was the original Mac unittest Xserve and nothing else has been able to touch it for compile and test time. We recently dropped qm-xserve06 onto the farm and at best, it&#8217;s about 10 minutes slower end-to-end than xserve01. I don&#8217;t know why this is and it shouldn&#8217;t be &#8211; xserve06 is newer and sporting more recent processors and I believe a faster bus. See also <a href="http://antennasoft.net/robcee/2007/04/26/attack-of-the-robots/">qm-win2k3-01</a>, our first physical box running Windows unittests. It&#8217;s been there since April 26th of last year, as Shaver once quipped, &#8220;qm-win2k3-01 taught me to love&#8221;. We&#8217;re still waiting for the t-shirts.</p>
<p>Why are there three of everything? We borrowed a trick from Talos. One of the difficulties of running a testing box is that you sometimes get funny results. There are a lot of moving pieces on these machines and we try to keep them as tight as possible, running as few extra components as we can on identical operating systems (across a single platform), but sometimes things just go a little funny. The thinking was having sets of three (triadic) machines would introduce some error-checking into the runs. One orange run out of three can be discarded. Two out of three and you might have something a little harder to reproduce. Three out of three and you close the tree and backout. I think that system works pretty well in most cases.</p>
<p>The one sad point we&#8217;ve really struggled with during this period is the linux platform. We&#8217;ve been running linux unittests on our Centos5 ReferencePlatform which is solid and well-maintained by Ben Hearsum and Nick Thomas. Running it on VMs introduces some variability that has been really hard to shake down. Tests involving timers are almost guaranteed to fail at some point. Sometimes, if disk access gets a little busy, we see errors in reftests loading some resources, usually pngs of even the smallest size. Then there are the random mochi* failures. These problems are hard to reproduce and even harder to diagnose, usually resulting in a shrug and someone shakily pushing the &#8220;force build&#8221; button on the waterfall page in the hopes that the problem will go away on the next build. It often does.</p>
<p>If you can shed any light on these on-going issues, we could use some help. Please see bugs:</p>
<ul>
<li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=431745" target="_blank">https://bugzilla.mozilla.org/show_bug.cgi?id=431745</a></li>
<li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=435064">https://bugzilla.mozilla.org/show_bug.cgi?id=435064</a></li>
<li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=428865">https://bugzilla.mozilla.org/show_bug.cgi?id=428865</a></li>
</ul>
<p>Moving forward to <a href="http://developer.mozilla.org/devnews/index.php/2008/06/02/mozilla-central-open-for-business/">mozilla-central</a>, we&#8217;ve got a few machines chugging along there and I hear qm-win2k3-03 picked up its first real regression yesterday so things seem to be progressing nicely. Over the next few weeks, we&#8217;re going to give the Firefox3/Gecko1.9 machines a spit-polish, upgrading all of them to buildbot 0.7.7 and matching their installations to what we&#8217;re using on the new machinery. As for what the new machinery will look like, I have a sneaky suspicion it&#8217;s going to look a little bit like Talos.</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2008/06/06/firefox-3-unittest-architecture/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HOWTO: Unit testing Linux</title>
		<link>http://antennasoft.net/robcee/2008/05/22/howto-unit-testing-linux/</link>
		<comments>http://antennasoft.net/robcee/2008/05/22/howto-unit-testing-linux/#comments</comments>
		<pubDate>Thu, 22 May 2008 15:14:13 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[buildbot]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unittest]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/?p=73</guid>
		<description><![CDATA[Mozilla&#8217;s evangelist and resident all-around-good-guy Chris Blizzard wrote an excellent piece yesterday on the dangers of hand-picking patches in a linux distribution, at least as they pertain to Mozilla and Firefox. I don&#8217;t need to say more on that as he covers it pretty well. I will just say that it&#8217;s a hard problem and [...]]]></description>
			<content:encoded><![CDATA[<p>Mozilla&#8217;s evangelist and resident all-around-good-guy <a href="http://www.0xdeadbeef.com/weblog" target="_blank">Chris Blizzard</a> wrote an excellent <a href="http://www.0xdeadbeef.com/weblog/?p=368">piece</a> yesterday on the dangers of hand-picking patches in a linux distribution, at least as they pertain to Mozilla and Firefox. I don&#8217;t need to say more on that as he covers it pretty well. I will just say that it&#8217;s a hard problem and difficult to get it right without having the entire big picture spread out in front of you.</p>
<p>I&#8217;m writing this in the hopes that we can make the process a little easier for those of you responsible for packaging Firefox (and hopefully other Mozilla apps down the road) on Linux.</p>
<p>First, the background: We do automated unit testing. We do it on every checkin and you can see the results posted to <a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox" target="_blank">http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox</a>. The machines responsible for producing those results are running <a href="http://buildbot.net/trac" target="_blank">buildbot</a>. We&#8217;re currently using, a slightly customized version 0.7.5 (available from Mozilla&#8217;s cvs repo at cvs-mirror.mozilla.org in mozilla/tools/buildbot, branch BUILDBOT_BRANCH_0_7_5) on top of Twisted 2.4.0. Soon, we&#8217;ll be moving forward to version 0.7.7 and Twisted 8.x on all our machines as part of a Grand Unified Vision. More on that later.</p>
<p>We have some scattered documentation around the mozilla wikisphere that we&#8217;ll be consolidating and cleaning up over the summer. The important bits are: the main Mozilla Buildbot Wiki page at <a href="http://wiki.mozilla.org/Buildbot" target="_blank">http://wiki.mozilla.org/Buildbot</a>. Of some but decreasing importance is the <a href="http://wiki.mozilla.org/BuildbotTestfarm" target="_blank">BuildbotTestFarm</a> setup page. It has links to the important buildbot master configuration and setup files, namely <a href="http://lxr.mozilla.org/mozilla/source/tools/buildbot-configs/testing/unittest/master.cfg" target="_blank">master.cfg</a> and <a href="http://lxr.mozilla.org/mozilla/source/tools/buildbot-configs/testing/unittest/mozbuild.py">mozbuild.py</a> in the <a href="http://lxr.mozilla.org/mozilla/source/tools/buildbot-configs/testing/unittest/">unittest</a> directory. Also, <a href="http://wiki.mozilla.org/BuildbotTestFarmUse" target="_blank">http://wiki.mozilla.org/BuildbotTestFarmUse</a> has a really awesome <a href="http://wiki.mozilla.org/Image:Buildbot_network_diagram_2.png" target="_blank">diagram</a> that I created (and recently updated!) that you&#8217;ll want to show to all your friends and possibly print out and hang on your cubicle wall.</p>
<p>Ok, let&#8217;s use all this to setup an example buildbot master and slave on your linux environment of choice. First, we&#8217;ll assume you&#8217;re capable of actually building the browser on your slave machine according to <a href="http://developer.mozilla.org/en/docs/Linux_Build_Prerequisites" target="_blank">Linux_Build_Prerequisites</a>. On your buildbot master (it can be the same machine as the slave if you&#8217;re just doing a single builder), create the master directory by typing &#8220;buildbot create-master unittest_master&#8221; (where unittest_master is your directory name, it can be anything). Copy master.cfg, mozbuild.py and the default <a href="http://lxr.mozilla.org/mozilla/source/tools/buildbot-configs/testing/unittest/mozconfig-places" target="_blank">mozconfig</a> file into this newly-created directory and modify the .cfg file to taste. If you&#8217;re doing a straight copy and paste from our version, you can delete all those extra machine names and will have something that will look more like this: <a href="http://antennasoft.net/robcee/example-mastercfg/">master.cfg</a><a href="http://pastebin.mozilla.org/439706" target="_blank"></a>. Rename URLs and links as appropriate. If you don&#8217;t use Tinderbox server for hosting your builds, you can remove the &#8220;c<span class="br0">[</span><span class="st0">'status'</span><span class="br0">]</span>.<span class="me1">append</span><span class="br0">(</span>tinderbox.<span class="me1">TinderboxMailNotifier</span><span class="br0">(&#8230;&#8221; section entirely and just use the buildbot waterfall.</span></p>
<p>Once you&#8217;ve got that setup, start it up by running &#8220;buildbot start unittest_master&#8221; in the parent directory and you should see some log chatter as it starts up. You can verify by visiting localhost:2005 on the master machine and seeing a waterfall with an empty table in it. It&#8217;s waiting for a slave to connect. If you don&#8217;t see this, you&#8217;ve done something horribly wrong and will need to start from scratch, probably after thinking about it for a few minutes and maybe getting a cup of your favorite caffeinated warm beverage. This thoughtful reflection is important. I can&#8217;t stress this enough!</p>
<p>Now that you&#8217;re properly caffeinated, let&#8217;s create the slave. I&#8217;m going to assume you&#8217;re running it on the same machine as the one you&#8217;ve just created the master on. In a nearby directory, type &#8220;buildbot create-slave slave-dir localhost:9989 linux 1h34rtL1nuX&#8221;. It should create a directory named &#8220;slave-dir&#8221; and add a few files to it. Now the fun part: type &#8220;buildbot start slave-dir&#8221; and you should be up and running. Verify this on the buildbot waterfall page where you should see the slave connected and a build starting up.</p>
<p>At this point, I&#8217;m going to finish up with a few caveats. These instructions assume you&#8217;re using the same buildbot version we&#8217;ve used for these setups (version 0.7.5 running on twisted 2.4.0 with python 2.4 or 2.5). You&#8217;ll need to modify your master.cfg file slightly if you&#8217;re using a newer version. For excruciating details on how we setup these machines, see <a href="http://wiki.mozilla.org/ReferencePlatforms/Linux-CentOS-5.0">http://wiki.mozilla.org/ReferencePlatforms/Linux-CentOS-5.0</a>. All machines running Reftests are required to have 24 or 32bit displays for image comparison. Lastly, the test machine will have to have run any version of Firefox before for the default profile to have been initialized.</p>
<p>The file &#8220;mozbuild.py&#8221; mentioned above contains the interesting bits. If you&#8217;re curious about how to run any of the individual unittests from a run, be sure to take a look in there at the &#8220;command=&#8221; parameters to the various testing classes. Good luck, and have fun!<br />
<a href="http://wiki.mozilla.org/Buildbot" target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2008/05/22/howto-unit-testing-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

