<?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>sp2hari@weblog... &#187; SOC</title>
	<atom:link href="http://sp2hari.com/tag/soc/feed/" rel="self" type="application/rss+xml" />
	<link>http://sp2hari.com</link>
	<description>I see, learn and rediscover... everyday!</description>
	<lastBuildDate>Thu, 24 Nov 2011 22:06:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>My Tinderbox is working&#8230;</title>
		<link>http://sp2hari.com/2007/08/25/my-tinderbox-is-working/</link>
		<comments>http://sp2hari.com/2007/08/25/my-tinderbox-is-working/#comments</comments>
		<pubDate>Sat, 25 Aug 2007 19:12:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[LDTP]]></category>
		<category><![CDATA[SOC]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[tinderbox]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=70</guid>
		<description><![CDATA[Yes, you heard it right. My tinderbox is working. Even now i don&#8217;t know why i was trying to setup a tinderbox after both Emily and Nags asked me to concentrate on Firefox automation. I felt it was almost done &#8230; <a href="http://sp2hari.com/2007/08/25/my-tinderbox-is-working/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="text-align: justify;">Yes, you heard it right. My tinderbox is working. Even now i don&#8217;t know why i was trying to setup a tinderbox after both Emily and Nags asked me to concentrate on Firefox automation. I felt it was almost done and just few more steps, i will be able to set it up. And that&#8217;s what finally happened :)</div>
<p>So in this post, i am going to mention about all issues i faced in setting up a tinderbox and steps to fix them.</p>
<div style="text-align: justify;">Note :: If you are ever setting up a tinderbox, be prepared to see huge log files. Like once my compilation ran for few hours and produced a log file of size 15MB. And if you are stuck up, DON&#8217;T send the entire file. A tail of that file should do. In fact, you should be in a position to  find out from while line the exact error starts.</div>
<p>Yeah before you start reading this<br /><a href="http://sp2hari.blogspot.com/2007/06/conquered-solaris.html">http://sp2hari.blogspot.com/2007/06/conquered-solaris.html</a> and<br /><a href="http://sp2hari.blogspot.com/2007/06/tinderbox.html">http://sp2hari.blogspot.com/2007/06/tinderbox.html</a>  has instructions about how to setup Tinderbox in Solaris environment.</p>
<p>Ok the first error i got was</p>
<div style="text-align: left;"><span style="font-family:courier new;">Building deps for jsinterp.c</span><br /><span style="font-family:courier new;">cc -o jsinterp.o -c  -DOSTYPE=\&#8221;SunOS5\&#8221; -DOSARCH=SunOS -DEXPORT_JS_API  -DJS_USE_SAFE_ARENA   -I../../dist/include   -I../../dist/include/js -I../../dist/include/nspr  -DMOZ_PNG_READ -DMOZ_PNG_WRITE  -I../../dist/sdk/include -I.    -KPIC  -xlibmil -xstrconst -xbuiltin=%all -mt  -DNDEBUG -DTRIMMED -xO4   -DMOZILLA_VERSION=\&#8221;1.9a7pre\&#8221; -DMOZILLA_VERSION_U=1.9a7pre -DSOLARIS=1 -DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DHAVE_INT16_T=1 -DHAVE_INT32_T=1 -DHAVE_INT64_T=1 -DHAVE_UINT=1 -DHAVE_UINT_T=1 -DHAVE_UINT16_T=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_BYTEORDER_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_X11_XKBLIB_H=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_LIBSOCKET=1 -DFUNCPROTO=15 -DHAVE_XSHM=1 -D_REENTRANT=1 -DHAVE_RANDOM=1 -DHAVE_STRERROR=1 -DHAVE_LCHOWN=1 -DHAVE_FCHMOD=1 -DHAVE_SNPRINTF=1 -DHAVE_MEMMOVE=1 -DHAVE_RINT=1 -DHAVE_STAT64=1 -DHAVE_LSTAT64=1 -DHAVE_FLOCKFILE=1 -DHAVE_LOCALTIME_R=1 -DHAVE_STRTOK_R=1 -DHAVE_LANGINFO_CODESET=1 -DVA_COPY=va_copy -DHAVE_VA_COPY=1 -DHAVE_I18N_LC_MESSAGES=1 -DMOZ_EMBEDDING_LEVEL_DEFAULT=1 -DMOZ_EMBEDDING_LEVEL_BASIC=1 -DMOZ_EMBEDDING_LEVEL_MINIMAL=1 -DMOZ_PHOENIX=1 -DMOZ_BUILD_APP=browser -DMOZ_XUL_APP=1 -DMOZ_DEFAULT_TOOLKIT=\&#8221;cairo-gtk2\&#8221; -DMOZ_WIDGET_GTK2=1 -DMOZ_ENABLE_XREMOTE=1 -DMOZ_THEBES=1 -DMOZ_CAIRO_GFX=1 -DMOZ_X11=1 -DMOZ_DISTRIBUTION_ID=\&#8221;org.mozilla\&#8221; -DMOZ_ENABLE_XFT=1 -DMOZ_ENABLE_PANGO=1 -DMOZ_ENABLE_COREXFONTS=1 -DMOZ_ENABLE_GNOMEUI=1 -DMOZ_EXTRA_X11CONVERTERS=1 -DOJI=1 -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1 -DACCESSIBILITY=1 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1 -DMOZ_NO_XPCOM_OBSOLETE=1 -DMOZ_XTF=1 -DMOZ_MATHML=1 -DMOZ_ENABLE_CANVAS=1 -DMOZ_SVG=1 -DMOZ_SVG_FOREIGNOBJECT=1 -DMOZ_UPDATE_CHANNEL=default -DMOZ_PLACES=1 -DMOZ_PLACES_BOOKMARKS=1 -DMOZ_FEEDS=1 -DMOZ_STORAGE=1 -DMOZ_SAFE_BROWSING=1 -DMOZ_URL_CLASSIFIER=1 -DMOZ_LOGGING=1 -DMOZ_USER_DIR=\&#8221;.mozilla\&#8221; -DMOZ_ENABLE_LIBXUL=1 -DHAVE_STDINT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_INT_TYPES_H=1 -DHAVE_UINT64_T=1 -DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_RDF=1 -DMOZ_MORKREADER=1 -DMOZ_DLL_SUFFIX=\&#8221;.so\&#8221; -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 -DMOZ_ACCESSIBILITY_ATK=1 -DATK_MAJOR_VERSION=1 -DATK_MINOR_VERSION=12 -DATK_REV_VERSION=3 -DMOZILLA_LOCALE_VERSION=\&#8221;1.9a1\&#8221; -DMOZILLA_REGION_VERSION=\&#8221;1.9a1\&#8221; -DMOZILLA_SKIN_VERSION=\&#8221;1.8\&#8221;  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT jsinterp.c</span><br /><span style="font-family:courier new;">ube: error: Assert has been violated at &#8216;/set/venus/builds.intel-S2/nightly.Thu/intel-S2/lang/ube/graphs/src/scregion.c 305&#8242;.</span><br /><span style="font-family:courier new;">cc: ube failed for jsinterp.c</span><br /><span style="font-family:courier new;">gmake[4]: *** [jsinterp.o] Error 2</span></div>
<p>
<div style="text-align: left;">
<div style="text-align: justify;">Dave from Sun china asked me use a patch for Sun Studio 11 Compiler C. I don&#8217;t have the link to the patch now but the patch id is 121016-05. I remember getting it from the sun website. So searching there should give you the link. The above patch was dependent on patch 120759-06. So installed  patch 120759-06 first and then install the patch 121016-05.</div>
<p>Steps to add a patch in Solaris are given below. The commands are for patch 121016-05. Change the id according to the patch you are installing.</p>
<p>1. Download 121016-05.zip and extract the contents in your current directory<br />2. Login as root<br />3. <span style="font-family:courier new;">root@home# patchadd 121016-05 </span><br />Note :: If the above command doesn&#8217;t work, then try <span style="font-family:courier new;"><br />root@home# patchadd . 121016-05</span></p>
<div style="text-align: justify;">The above steps should install the patch in your system. To check whether the patch is installed properly, check the folder /var/sadm/patch/. You should see seperate directories for each patch you have installed. In my system here, the /var/sdm/patch is like</div>
<div style="text-align: left; font-family: courier new;"># cd /var/sadm/patch/<br /># ls<br />120759-06  121016-05</p>
</div>
<p>That fixed the above problem :).</p>
<p>The next error i got was</p>
<p><span style="font-family:courier new;">jsinterp.c</span><br /><span style="font-family:courier new;">ir2hf: error: Ran out of memory</span><br /><span style="font-family:courier new;">cc: ir2hf failed for jsinterp.c</span></p>
</div>
<div style="text-align: justify;">Now this is a strange problem and which can be fixed without much issue. You need more RAM. My system had 768MB (512+256) RAM, but you need 1GB RAM to fix this issue. So next day i got 1GB RAM and never got this error back.</div>
<p>
<div style="text-align: justify;">After that, i got many compilation errors. This happened because of some issue in the mozilla code. This generally never happens. I got errors in lines having inline. Anyway now i am not getting the error anymore. So i think the mozilla code is fixed now. :)</div>
<p>Finally i got an error saying,</p>
<p><span style="font-family:courier new;">gmake[3]: Leaving directory `/export/home/hari/tinderbox</span>
<div style="font-family: courier new;" id="mb_0"><wbr>/SunOS_5.11_Depend/mozilla&#8217;<br />gmake[2]: Leaving directory `/export/home/hari/tinderbox<wbr>/SunOS_5.11_Depend/mozilla&#8217;<br />make[1]: Leaving directory `/export/home/hari/tinderbox<wbr>/SunOS_5.11_Depend/mozilla&#8217;<br />firefox-bin built successfully.<br />firefox-bin built successfully.<br />firefox-bin binary exists, build successful.<br />Unable to find path to Talkback client. Proceeding as if Talkback was not installed.</p>
<p>Running regxpcom test &#8230;<br />Timeout = 120 seconds.<br />Begin: Fri Aug 24 08:08:37 2007<br />cmd = /export/home/hari/tinderbox<wbr>/SunOS_5.11_Depend/mozilla/<wbr>/dist/bin/firefox-bin -register<br />End:   Fri Aug 24 08:08:38 2007<br />&#8212;&#8212;&#8212;&#8211; Output from regxpcom &#8212;&#8212;&#8212;&#8212;-<br />&#8212;&#8212;&#8212;&#8211; End Output from regxpcom &#8212;&#8212;&#8212;<br />regxpcom: test failed<br />No profile found, creating profile.<br />Begin: Fri Aug 24 08:08:38 2007<br />cmd = /export/home/hari/tinderbox<wbr>/SunOS_5.11_Depend/mozilla/<wbr>/dist/bin/firefox-bin -CreateProfile default<br />End:   Fri Aug 24 08:08:39 2007<br />&#8212;&#8212;&#8212;&#8211; Output from Profile Creation &#8212;&#8212;&#8212;&#8212;-<br />Xlib: connection to &#8220;:0.0&#8243; refused by server<br />Xlib: No protocol specified</p>
<p>(firefox-bin:6432): Gtk-WARNING **: cannot open display:<br />&#8212;&#8212;&#8212;&#8211; End Output from Profile Creation &#8212;&#8212;&#8212;<br />ERROR: profile /export/home/hari/tinderbox<wbr>/SunOS_5.11_Depend/.mozilla<wbr>/firefox/ does not exist<br />no pref file found</div>
<p>
<div style="text-align: justify;">The solution for the above bug was to allow connections to X server. This is done by executing the following command before starting a tinderbox compilation. Remember the user who is running the tinderbox should execute the command.</div>
<p><span style="font-family:courier new;">hari@home:~$/usr/openwin/bin/xhost +<br />access control disabled, clients can connect from any host<br /></span><br />Few other things to note while trying to compile firefox under tinderbox are<br />1. Never ever run two instances of tinderbox at the same time. Make sure the first one is killed before starting a new one.<br />2. Delete the <span style="font-family:courier new;">SunOS_5.11_Depend <span style="font-family:georgia;">folder when you are facing any compilation errors.<br />3. Use -XO3 for CFLAGS and CXXFLAGS<br />4. Make sure your mozconfig file has these lines<br /><span style="font-family:courier new;">ac_add_options &#8211;disable-freetype2</span><br /><span style="font-family:courier new;">ac_add_options &#8211;disable-debug</span><br /><span style="font-family:courier new;">ac_add_options &#8211;disable-tests</p>
<p></span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/08/25/my-tinderbox-is-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SOC &#8230;.</title>
		<link>http://sp2hari.com/2007/08/22/soc/</link>
		<comments>http://sp2hari.com/2007/08/22/soc/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 12:53:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[LDTP]]></category>
		<category><![CDATA[SOC]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=69</guid>
		<description><![CDATA[Updates about SOC.30 test scripts are working fine without any issue :). My target is to write 50 test cases and i will try to reach that this weekend :) :). The scripts can be downloaded from here. Things to &#8230; <a href="http://sp2hari.com/2007/08/22/soc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Updates about SOC.<br />30 test scripts are working fine without any issue :). My target is to write 50 test cases and i will try to reach that this weekend :) :).</p>
<p>The scripts can be downloaded from <a href="http://freeshells.ch/%7Esp2hari/soc/tinder2.tar.gz">here</a>.</p>
<p>Things to be modified when you run your script in your environment are.<br />1. In the file firefox.xml, change the value of &lt;filepath&gt; for <filepath></filepath> so that it points the file called index.html in the folder called data in your scripts directory.</p>
<p>Let me give a detailed HOW TO for running these scripts.</p>
<p>1. First, LDTP must be installed in your system.<br />The <a href="http://ldtp.freedesktop.org/wiki/CVS">CVS</a> page in <a href="http://ldtp.freedesktop.org/">ldtp.freedesktop.org</a> provides the instructions for getting the LDTP code through CVS.</p>
<p>Note : I had a small issue compiling the code which i got from CVS.<br />While using ./configure it gave me an error saying</p>
<p>./configure: line 3998: syntax error near unexpected token `LIBXML2,&#8217;<br />./configure: line 3998: `PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.0.0)&#8217;</p>
<p>The above error is because autoconf and pkg-conf are installed at two different locations. For more details check <a href="http://lists.freedesktop.org/pipermail/xserver/2003-December/000573.html">http://lists.freedesktop.org/pipermail/xserver/2003-December/000573.html</a></p>
<p>So i used <a href="http://people.freedesktop.org/%7Enagappan/ldtp-0.8.0.tar.gz">this</a> package which compiled without any issue :).<br />For more details on how to install, check <a href="http://ldtp.freedesktop.org/wiki/GNU/Linux_environment">here</a>.</p>
<p>2. Enable Accessibility from  gnome-control-center</p>
<p>3. Download and start Firefox3.0a*pre from <a href="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk">here</a>  ( Any  FF3.0 alpha release should  work, though with FF3.0a8pre, it is tested throughly.<br />Note :: When you start firefox, make sure you don&#8217;t have any other instance of firefox running.</p>
<p>4.Run the command</p>
<p><span style="font-style: italic;">hari@home:~/soc/tinderbox$ <span style="font-weight: bold;">ldtprunner run.xml</span></span></p>
<p>If you have set LDTP_DEBUG=1 in your shell, then it will show lots of output. Don&#8217;t get scared. It only means things are working fine :)<br />Note :: You can also work with LDTP_DEBUG unset, if you want a &#8220;clean&#8221; output.</p>
<p>Once that command is executed, then it will run the test cases provided in the run.xml.</p>
<p>A file called log.xml gives the details about the test cases run. The last three lines in the log file should be like this if the test case ran properly for all the 30 test cases provided.</p>
<p>&lt;groupsstatus total=&#8221;30&#8243; pass=&#8221;30&#8243; fail=&#8221;0&#8243;/&gt;<br />&lt;/group&gt;<br />&lt;/ldtp&gt;</p>
<p>The screen record video on Solaris 11 is given can be viewed from here.<br /><a href="http://download.freedesktop.org/ldtp/movies/screen2.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://download.freedesktop<wbr>.org/ldtp/movies/screen2.html</a></p>
<p>The current status of the test cases can be viewed from here.<br /><a href="http://ldtp.freedesktop.org/wiki/Firefox_Test_Cases"><span style="text-decoration: underline;">http://ldtp.freedesktop.org/wiki/Firefox_Test_Cases</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/08/22/soc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris Firefox Automation :)</title>
		<link>http://sp2hari.com/2007/08/17/solaris-firefox-automation/</link>
		<comments>http://sp2hari.com/2007/08/17/solaris-firefox-automation/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 08:31:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[LDTP]]></category>
		<category><![CDATA[SOC]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=68</guid>
		<description><![CDATA[Check out this for the video :). Nice right ;)]]></description>
			<content:encoded><![CDATA[<p><a href="http://freeshells.ch/%7Esp2hari/screen2.html">Check out this</a> for the video :). Nice right ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/08/17/solaris-firefox-automation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tinderbox &#8230;.</title>
		<link>http://sp2hari.com/2007/06/29/tinderbox/</link>
		<comments>http://sp2hari.com/2007/06/29/tinderbox/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 13:52:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[SOC]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[tinderbox]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=64</guid>
		<description><![CDATA[You never know when things will work and but if you believe that they will work ,they will. Ha, finally my own quote :P . The Solaris download which i asked my friend to do failed :-( . Crap . &#8230; <a href="http://sp2hari.com/2007/06/29/tinderbox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="text-align: justify;">You never know when things will work and but if you believe that they will work ,they will. Ha, finally my own quote :P .</div>
<p>
<div style="text-align: justify;">The Solaris download which i asked my friend to do failed :-( . Crap . I waited for that for more than 2 days and finally it failed. Now i can&#8217;t to afford to wait more. I have to proceed with Tinderbox, that too with real pace. With <a href="http://blogs.sun.com/roller/page/emily">Emily</a>&#8216;s trip to <a href="http://guadec.org">GUADEC</a> and college reopening soon, i really have to do some magic.</div>
<p>
<div style="text-align: justify;">Emily wanted me to update from Solaris Nevada snv_55 to Solaris Nevada snv_64. Even i wanted to see what&#8217;s new in next version but looks like fate was against me.</div>
<p>
<div style="text-align: justify;">As such i had to reinstall my Solaris Nevada snv_55 because while installing i made a stupid mistake of selecting the default options. If you are ever planning to install Solaris, never ever do that. Do choose the custom install . After some two steps it will ask you which hard disk to choose and after that you can edit the partition size. If you fail to do this, Solaris by default allocates only required space to / and rest all to /export/home. For me it ended up having only 400MB free space in / while my /export/home had around 15GB free space :-(. I never wanted to try gparted and other things. A reinstall will fix all the problems and it did.</div>
<p>
<div style="text-align: justify;">So finally my partition size fixed and i am ready to start Tinderbox, when the postman gave a parcel for me. It was Solaris Nevada snv_64 from SUN, which i had registered few days back. I didn&#8217;t know whether to cry or laugh. Felt like banging my head on the monitor. Murphy is GOD . :-)</div>
<p>
<div style="text-align: justify;">So made another install of Solaris Nevada snv_64 and finally was ready to start with Tinderbox. Now i had Solaris Nevada snv_64 and all the softwares required. A new and nice thing about this version is a Shutdown button in the start menu. I really missed that in the previous version.</p>
</div>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_7owHVJdIzX8/RoUjV5ApE4I/AAAAAAAABDk/ZJm-vuXIjxc/s1600-h/Screenshot.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_7owHVJdIzX8/RoUjV5ApE4I/AAAAAAAABDk/ZJm-vuXIjxc/s400/Screenshot.jpg" alt="" id="BLOGGER_PHOTO_ID_5081506613545210754" border="0" /></a>
<div style="text-align: justify;">Another small thing about networking in Solaris. If you want your Solaris box to work with dns entries provided, then you should edit the /etc/nsswitch.conf as follows .</div>
<p>A line in /etc/nsswitch.conf will be as follows<br /><span style="font-style: italic;">hosts:      files </span><br />Change that line to<br /><span style="font-style: italic;">hosts:      files dns<br /></span>This will make sure that first /etc/hosts and then dns entires are looked during networking. <span style="font-style: italic;"><br /></span><br />The mail from Emily had the following details with <a href="http://freeshells.ch/%7Esp2hari/soc/tinderbox-setup.tar.gz">this</a> attachment.</p>
<div style="direction: ltr;"><span style="font-style: italic;">Pre-steps</span><br /><span style="font-style: italic;">1. Install the latest Solaris Express(s11)</span><br /><span style="font-style: italic;">2. Install SunOne Studio compiler</span><br /><span style="font-style: italic;">3. Install JDS CBE</span></p>
<p><span style="font-style: italic;">1. Set up environment var. (See myenv.sh attached)</span><br /><span style="font-style: italic;">2. Check out tinderbox client from community</span><br /><span style="font-style: italic;">   $ . /path/to/myenv.sh</span><br /><span style="font-style: italic;">   $ cvs co -d tinderbox mozilla/tools/tinderbox</span><br /><span style="font-style: italic;">3. Some modification to be done in the tinderbox source code</span><br /><span style="font-style: italic;">   1) post-mozilla.pl</span><br /><span style="font-style: italic;">      $ cd tinderbox; mv post-mozilla.pl post-mozilla.pl.bak</span><br /><span style="font-style: italic;">   2) tinder-confg.pl (modify the one attached and use it)</span><br /><span style="font-style: italic;">      $BuildAdministrator = &#8220;%YOUR_ALIAS&#8221;</span><br /><span style="font-style: italic;">      $CVS           = &#8216;runsocks cvs -q&#8217;: (only necessary if you use proxy to access Internet)</span><br /><span style="font-style: italic;">   3) mozconfig (use the one attached)</span></p>
<p><span style="font-style: italic;">4, this step is necessary only if you access Internet via proxy</span><br /><span style="font-style: italic;">   1) build-seamonkey-util.pl(see the patch file build-seamonkey-util.pl.diff)</span><br /><span style="font-style: italic;">   2) set http_proxy and ftp_proxy in $HOME/.wgetrc since tinderbox client uses wget to send test result to server</span></p>
<p><span style="font-style: italic;">5, let&#8217;s go &#8212; start up your tinderbox client</span><br /><span style="font-style: italic;">   $ . /path/to/myenv.sh</span><br /><span style="font-style: italic;">   $ cd /path/to/tinderbox &&amp; ./build-firefox.pl &#8211;depend -t MozillaTest  > ~/build-firefox.log 2>&#038;1 &amp;</span></p>
<p>So things were really were clear in her mail.<br />As of now, i was in pre-steps with just Solaris 11 and neither a Solaris studio nor a CBE . So i started with Solaris studio.</p>
<div style="text-align: justify;">The nice thing about Solaris is that the installing a new software is a matter of few clicks. Almost all the installers in Solaris works right out of the box. So with a few seconds i had Solaris studio installed . I had to change my PATH variables like</div>
<p><span style="font-style: italic;">export PATH=/opt/SUNWspro/bin:$PATH</span><br /><span style="font-style: italic;">export MANPATH=/opt/SUNWspro/man:$MANPATH</span></p>
<div style="text-align: justify;">So after this, you will have to run sunstudio, but i got the following error saying &#8220;java 2 SDK not found&#8221;<br />Omg, so now i had to install j2sdk. Downloaded the file &#8220;j2sdk-1_4_2_15-solaris-i586.sh&#8221; and when i ran that shell script, it created a folder in the current directory with quite a few files.</div>
<p>
<div style="text-align: justify;">No i had no clue what to do that. Finally pinging a few of my friends, came to know that i had to set JAVA_HOME and change PATH variable again. I copied the folder that shell script created (<span>j2sdk1.4.2_15</span>) to /opt and had to modify the environment variables as shown below.</div>
<p><span style="font-style: italic;">export JAVA_HOME=/opt/j2sdk1.4.2_15</span><br /><span style="font-style: italic;">export PATH=/opt/j2sdk1.4.2_15/bin:$PATH</span></p>
<div style="text-align: justify;">Now if you run sunstudio, things work fine :-) . So now 2/3 pre-steps done. The only step remaining is Common Build Environment (CBE).</div>
<div style="text-align: justify;">Now this again wasn&#8217;t that difficult. The only catch is to give the proper C compiler. As such, i was supposed to use the Solaris compiler that comes along with Sun studio and not gcc. So first time i made a mistake of giving the path to gcc but next time did that fine.</div>
<p>
<div style="text-align: justify;">Phew, all pre-steps done. Now to setup tinderbox. All the steps mentioned there worked right out of box. In step 2, it needed the environment variable $CVSROOT. As such $CVS_ROOT was configured in Emily&#8217;s script. So just changed  that to $CVSROOT and things worked fine :-)</div>
<p>
<div style="text-align: justify;">Now finally i ran tinderbox and i am not quite sure about the ouput it produced . It surely generates a lot of output . I had no clue what the output meant and what i am supposed to do with that.</div>
<p>The output i got was like</p>
<p><span style="font-style: italic;">Name &#8220;TreeSpecific::clobber_target&#8221; used only once: possible typo at ./build-firefox.pl line 33.</span><br /><span style="font-style: italic;">Name &#8220;TreeSpecific::build_target&#8221; used only once: possible typo at ./build-firefox.pl line 31.</span><br /><span style="font-style: italic;">Name &#8220;TreeSpecific::checkout_clobber_target&#8221; used only once: possible typo at ./build-firefox.pl line 13.</span><br /><span style="font-style: italic;">Name &#8220;TreeSpecific::extrafiles&#8221; used only once: possible typo at ./build-firefox.pl line 34.</span><br /><span style="font-style: italic;">Possible unintended interpolation of @gmail in string at (eval 318) line 23.</span><br /><span style="font-style: italic;">Starting dir is : /root/tinderbox/SunOS_5.11_Depend</span></p>
<p><span style="font-style: italic;">tinderbox: tree: MozillaTest</span><br /><span style="font-style: italic;">tinderbox: builddate: 1183129260</span><br /><span style="font-style: italic;">tinderbox: status: building</span><br /><span style="font-style: italic;">tinderbox: build: SunOS/i386 5.11 home Depend trunk</span><br /><span style="font-style: italic;">tinderbox: errorparser: unix</span><br /><span style="font-style: italic;">tinderbox: buildfamily: unix</span><br /><span style="font-style: italic;">tinderbox: version: $Revision: 1.1 $ </span><br /><span style="font-style: italic;">tinderbox: END</span></p>
<p><span style="font-style: italic;">Opening SunOS_5.11_Depend.log</span><br /><span style="font-style: italic;">current dir is &#8212; home:/root/tinderbox/SunOS_5.11_Depend</span><br /><span style="font-style: italic;">Build Administrator is sp2hari.com</span><br /><span style="font-style: italic;">uname -a = SunOS home 5.11 snv_64a i86pc i386 i86pc</span><br /><span style="font-style: italic;">AB_CARDCATALOG=/usr/dt/share/answerbooks/C/ab_cardcatalog</span><br /><span style="font-style: italic;">ADDON_PATH=/root/tinderbox/SunOS_5.11_Depend/mozilla//dist/bin:</span><br /><span style="font-style: italic;">COLORTERM=gnome-terminal</span><br /><span style="font-style: italic;">CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot</span><br /><span style="font-style: italic;">CVS_ROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot</span><br /><span style="font-style: italic;">DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-zAaS6sa66Z,guid=9c8119a191db027be12633004684e7cc</span><br /><span style="font-style: italic;">DESKTOP_STARTUP_ID=</span><br /><span style="font-style: italic;">DISPLAY=:0.0</span><br /><span style="font-style: italic;">DTAPPSEARCHPATH=/root/.dt/appmanager:/usr/dt/appconfig/appmanager/%L:/usr/dt/appconfig/appmanager/C</span><br /><span style="font-style: italic;">DTDATABASESEARCHPATH=/root/.dt/types,/usr/dt/appconfig/types/%L,/usr/dt/appconfig/types/C</span><br /><span style="font-style: italic;">DTDEVROOT=</span><br /><span style="font-style: italic;">DTHELPSEARCHPATH=/root/.dt/help/root-home-0/%H:/root/.dt/help/root-home-0/%H.sdl:/root/.dt/help/root-home-0/%H.hv:/root/.dt/help/%H:/root/.dt/help/%H.sdl:/root/.dt/help/%H.hv:/usr/dt/appconfig/help/%L/%H:/usr/dt/appconfig/help/%L/%H.sdl:/usr/dt/appconfig/help/%L/%H.hv:/usr/dt/appconfig/help/C/%H:/usr/dt/appconfig/help/C/%H.sdl:/usr/dt/appconfig/help/C/%H.hv</span><br /><span style="font-style: italic;">DTSCREENSAVERLIST=StartDtscreenSwarm StartDtscreenQix     StartDtscreenFlame StartDtscreenHop StartDtscreenImage StartDtscreenLife     StartDtscreenRotor StartDtscreenPyro StartDtscreenWorm StartDtscreenBlank</span><br /><span style="font-style: italic;">DTSOURCEPROFILE=true</span><br /><span style="font-style: italic;">DTUSERSESSION=root-home-0</span><br /><span style="font-style: italic;">DTXSERVERLOCATION=local</span><br /><span style="font-style: italic;">EDITOR=/usr/dt/bin/dtpad</span><br /><span style="font-style: italic;">GNOME_DESKTOP_SESSION_ID=Default</span><br /><span style="font-style: italic;">GNOME_KEYRING_SOCKET=/var/tmp/keyring-a1aGab/socket</span><br /><span style="font-style: italic;">GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2</span><br /><span style="font-style: italic;">G_BROKEN_FILENAMES=yes</span><br /><span style="font-style: italic;">G_FILENAME_ENCODING=@locale,UTF-8</span><br /><span style="font-style: italic;">HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help</span><br /><span style="font-style: italic;">HOME=/root</span><br /><span style="font-style: italic;">JAVA_HOME=/opt/j2sdk1.4.2_15</span><br /><span style="font-style: italic;">LANG=C</span><br /><span style="font-style: italic;">LC_ALL=C</span><br /><span style="font-style: italic;">LC_CTYPE=C</span><br /><span style="font-style: italic;">LD_LIBRARY_PATH=/root/tinderbox/SunOS_5.11_Depend/mozilla/dist/bin:</span><br /><span style="font-style: italic;">LIBPATH=/root/tinderbox/SunOS_5.11_Depend/mozilla//dist/bin:</span><br /><span style="font-style: italic;">LIBRARY_PATH=/root/tinderbox/SunOS_5.11_Depend/mozilla//dist/bin:/root/tinderbox/SunOS_5.11_Depend/mozilla//dist/bin/components:</span><br /><span style="font-style: italic;">LOGNAME=root</span><br /><span style="font-style: italic;">MAIL=/var/mail/root</span><br /><span style="font-style: italic;">MANPATH=/opt/SUNWspro/man:/usr/dt/man:/usr/man:/usr/openwin/share/man</span><br /><span style="font-style: italic;">MOZCONFIG=/root/tinderbox/mozconfig</span><br /><span style="font-style: italic;">MOZILLA_FIVE_HOME=/root/tinderbox/SunOS_5.11_Depend/mozilla//dist/bin</span><br /><span style="font-style: italic;">MOZ_BYPASS_PROFILE_AT_STARTUP=1</span><br /><span style="font-style: italic;">MOZ_CO_DATE=06/29/2007 15:01 +0000</span><br /><span style="font-style: italic;">MOZ_PACKAGE_MSI=0</span><br /><span style="font-style: italic;">MOZ_SYMBOLS_TRANSFER_TYPE=scp</span><br /><span style="font-style: italic;">NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat:/usr/dt/lib/nls/msg/C/%N.cat</span><br /><span style="font-style: italic;">NO_EM_RESTART=1</span><br /><span style="font-style: italic;">OLDPWD=/root</span><br /><span style="font-style: italic;">OPENWINHOME=/usr/openwin</span><br /><span style="font-style: italic;">PATH=/opt/csw/bin:/opt/SUNWspro/bin:/opt/SUNWspro/bin:/opt/j2sdk1.4.2_15/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/root/tinderbox/SunOS_5.11_Depend/mozilla//dist/bin</span><br /><span style="font-style: italic;">PWD=/root/tinderbox</span><br /><span style="font-style: italic;">SDT_NO_DTDBCACHE=1</span><br /><span style="font-style: italic;">SDT_NO_TOOLTALK=1</span><br /><span style="font-style: italic;">SESSIONTYPE=altDt</span><br /><span style="font-style: italic;">SESSION_MANAGER=local/home:/tmp/.ICE-unix/316,inet6/home:35165,inet/home:60138</span><br /><span style="font-style: italic;">SESSION_SVR=home</span><br /><span style="font-style: italic;">SHELL=/bin/bash</span><br /><span style="font-style: italic;">SHLVL=2</span><br /><span style="font-style: italic;">SSH_AGENT_PID=321</span><br /><span style="font-style: italic;">SSH_AUTH_SOCK=/tmp/ssh-XXXAaGNa/agent.316</span><br /><span style="font-style: italic;">START_SPECKEYSD=no</span><br /><span style="font-style: italic;">TERM=xterm</span><br /><span style="font-style: italic;">TZ=Asia/Calcutta</span><br /><span style="font-style: italic;">USER=root</span><br /><span style="font-style: italic;">WINDOWID=41943093</span><br /><span style="font-style: italic;">XFILESEARCHPATH=/etc/dt/app-defaults/%L/%N:/etc/dt/app-defaults/C/%N:/usr/dt/app-defaults/%L/%N:/usr/dt/app-defaults/C/%N:/usr/openwin/lib/locale/%L/%T/%N%S:/usr/openwin/lib/%T/%N%S</span><br /><span style="font-style: italic;">XMBINDDIR=/usr/dt/lib/bindings</span><br /><span style="font-style: italic;">XMICONBMSEARCHPATH=/root/.dt/icons/%B%M.bm:/root/.dt/icons/%B%M.pm:/root/.dt/icons/%B:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B</span><br /><span style="font-style: italic;">XMICONSEARCHPATH=/root/.dt/icons/%B%M.pm:/root/.dt/icons/%B%M.bm:/root/.dt/icons/%B:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B</span><br /><span style="font-style: italic;">XPCOM_DEBUG_BREAK=warn</span><br /><span style="font-style: italic;">_=./build-firefox.pl</span><br /><span style="font-style: italic;">dtstart_sessionlogfile=/dev/null</span><br /><span style="font-style: italic;">&#8211;>mozconfig<----------------------------------------</span><br /><span style="font-style: italic;"># Make flags</span><br /><span style="font-style: italic;">mk_add_options MOZ_CO_PROJECT=browser</span><br /><span style="font-style: italic;">mk_add_options MOZ_CO_MODULE=&#8221;mozilla/tools/codesighs&#8221;</span></p>
<p><span style="font-style: italic;"># Configure flags</span><br /><span style="font-style: italic;">ac_add_options &#8211;enable-application=browser</span><br /><span style="font-style: italic;">ac_add_options &#8211;enable-optimize</span><br /><span style="font-style: italic;">ac_add_options &#8211;enable-codesighs</span><br /><span style="font-style: italic;">ac_add_options &#8211;enable-crypto</span><br /><span style="font-style: italic;">ac_add_options &#8211;enable-xft</span><br /><span style="font-style: italic;">ac_add_options &#8211;enable-svg</span><br /><span style="font-style: italic;">ac_add_options &#8211;enable-canvas</span><br /><span style="font-style: italic;">ac_add_options &#8211;disable-freetype2</span><br /><span style="font-style: italic;">ac_add_options &#8211;disable-debug</span><br /><span style="font-style: italic;">ac_add_options &#8211;disable-tests</span><br /><span style="font-style: italic;">&#8211;>end mozconfig<----------------------------------------</span><br /><span style="font-style: italic;">Didn&#8217;t find /root/tinderbox/post-mozilla.pl</span><br /><span style="font-style: italic;">===============================</span><br /><span style="font-style: italic;">Compiler is &#8212; CC</span><br /><span style="font-style: italic;">===============================</span><br /><span style="font-style: italic;">Begin: Fri Jun 29 20:32:28 2007</span><br /><span style="font-style: italic;">cvs -q checkout -P -D &#8220;06/29/2007 15:01 +0000&#8243; mozilla/client.mk mozilla/browser/config</span><br /><span style="font-style: italic;">End:   Fri Jun 29 20:32:31 2007</span><br /><span style="font-style: italic;">/root/tinderbox/SunOS_5.11_Depend/mozilla//dist/bin/firefox-bin does not exist.</span><br /><span style="font-style: italic;">No binary detected; none deleted.</span><br /><span style="font-style: italic;">Begin: Fri Jun 29 20:32:31 2007</span><br /><span style="font-style: italic;">make -f client.mk  checkout</span><br /><span style="font-style: italic;">make: Fatal error in reader: client.mk, line 126: Unexpected end of line seen</span><br /><span style="font-style: italic;">End:   Fri Jun 29 20:32:32 2007</span><br /><span style="font-style: italic; font-weight: bold;">Error: CVS checkout failed.</span></p>
<p>The last line is scary :-(. Have to ask about that to emily or nags soon. And oh yeah, now that i have setup a Tinderbox in Solaris, i want to setup one in Linux. Just want to see whether it is so easy in Linux. ;). Now i got my confidence back :). I can now really finish lots in integration of  Firefox Test cases into Tinderbox before i go back to college. And now i am no more scared of Solaris :-) .</p>
<p>Have to figure out something about the Tinderbox log.<br />Bye for now. </div>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/06/29/tinderbox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Conquered solaris &#8230;.</title>
		<link>http://sp2hari.com/2007/06/20/conquered-solaris/</link>
		<comments>http://sp2hari.com/2007/06/20/conquered-solaris/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 01:13:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[SOC]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=59</guid>
		<description><![CDATA[Got up at 4 PM :-). Yes 4 PM. Yesterday after finding out that my Ethernet card had some arbit problem, planned to buy a new one. But felt like checking my Ethernet card for the last time. Went to &#8230; <a href="http://sp2hari.com/2007/06/20/conquered-solaris/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Got up at 4 PM :-). Yes 4 PM. Yesterday after finding out  that my Ethernet card had some arbit problem, planned to buy a new one. But felt like checking my Ethernet card for the last time. Went to my friend&#8217;s place and checked my Ethernet and it worked there :-(. I was both happy and sad. Happy because my Ethernet is working, no need to buy another one and sad because now i don&#8217;t even know what is the problem with my computer. Anyway i got another Ethernet card from my friend&#8217;s computer (of course after promising her a treat).</p>
<div style="text-align: justify;">First checked the computer with her Ethernet card. Internet worked both in Solaris and Windows. WOW :) . Now again, i checked again with my Ethernet card and WOW WOW WOW, it connected to Internet from all three OS. Now what is happening here ??? Yesterday i spent more than 7 hours trying to make this card work and now this is working out of box within 5 mins. And as such i did the same thing what i did previous night. Looks like you can never try to reason out few things.</div>
<p>
<div style="text-align: justify;">Anyway now i am in Solaris and it is cool. First had to install new softwares. <a href="http://theyagar.info/">Taggy</a> gave me the <a href="http://blogs.sun.com/migi/entry/jpack_install_your_software_easily">this</a> link. And <a href="http://www.blastwave.org/howto.html">this</a> one was also very useful. So within a matter of 5 mins, i installed most of the softwares i might need.</div>
<p>As  such i had three main things to do in Solaris according to the mail <a href="http://blogs.sun.com/roller/page/emily">Emily Chen</a> sent me. They are</p>
<p>1. Read about tinderbox setup from <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.mozilla.org/projects/tinderbox/" target="_blank"><span style="text-decoration: underline;">http://www.mozilla.org/projects/tinderbox/</span></a> .<br /><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.mozilla.org/projects/tinderbox/" target="_blank"></a><br />2. Sun Studio 11<br /><a href="http://developers.sun.com/sunstudio/products/previous/11/index.jsp">http://developers.sun.com/sunstudio/products/previous/11/index.jsp</a><br />On Solaris, Sun Studio is used to build Firefox, not gcc, so have to install Sun Studio.</p>
<p>3. Set up CBE (Common Build Environment)<br /><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://opensolaris.org/os/project/jds/contributing/building/" target="_blank">http://opensolaris.org/os<wbr>/project/jds/contributing<wbr>/building/</a></p>
<div style="text-align: justify;">Now my goals were very clear. And internet from Solaris was working cool, just thought of downloading everything then, but Sun Studio was around 300 MB and already my internet bills have reached peak. So had to wait till 11 PM ( 11PM to 9 AM free internet :P) .</p>
</div>
<div style="text-align: justify;">Started downloading at 11. 15 . OMG. It started at 7KBs and said it is gonna take 24 hrs :-(. Now i can&#8217;t do anything to this. Have to sit and wait :P .  When i am writing this blog (ie 8 AM), it says only 5 hrs left.</div>
<p>
<div style="text-align: justify;">Still network configuration has few glitches. I have to enter the DNS entries every time i reboot the system. And even though i have configured it to activate on boot, the Ethernet card has to manually activated after every time. This is strange since, i have a file called hostname.rtls0 in / (which should activate the Ethernet card on boot )</p>
<p>Yesterday Solaris had me. It made me frust to the core. It made me raise doubts about whether i will be able to finish SOC on time. But today is my day. I conquered :P solaris. In fact now that Solaris phobia is slowly disappearing. Now it is time to say Hello World to Tinderbox :P.</div>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/06/20/conquered-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>networking not working :P&#8230;</title>
		<link>http://sp2hari.com/2007/06/19/networking-not-working-p/</link>
		<comments>http://sp2hari.com/2007/06/19/networking-not-working-p/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 22:45:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[SOC]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=58</guid>
		<description><![CDATA[I have got a new phobia. Solaris phobia :P. lol.Well how easy solaris can ruin one whole night. Though i shouldn&#8217;t blame Solaris completely but at least it deserves something for troubling me with DNS thing sometime back . Anyway &#8230; <a href="http://sp2hari.com/2007/06/19/networking-not-working-p/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have got a new phobia. Solaris phobia :P. lol.<br />Well how easy solaris can ruin one whole night. Though i shouldn&#8217;t blame Solaris completely but at least it deserves something for troubling me with DNS thing sometime back .</p>
<div style="text-align: justify;">Anyway here comes the story. After discussing with <a href="http://prashblog.com">Casanova</a> about tinderbox i realized that setting up tinderbox is an important issue. So i was all set to start with tinderbox setup. But looks like fate had other plans. Anyway after discussing with Casanova ( at around 10 pm ), soon started working into tinderbox.</div>
<p>
<div style="text-align: justify;">But once i booted into Solaris and went to Google.com, it said &#8220;Could Not Connect&#8221;. Since i have seen this error many a times already, i just went to the network manager and found all my previous entries missing there :P. Nothing unusual actually. So entered the values again and restarted networking. Now again the same old error. Since i have already configured DNS once and connected to internet from solaris, i thought the same settings will work this time also.</div>
<p>
<div style="text-align: justify;">But noticed something strange. This time it won&#8217;t even ping to my DNS or Gateway. Well this is certainly strange. I called <a href="http://theyagar.info/">taggy</a> (solaris club head :P) and explained him the situation. He gave a few solutions and i tried some other things which i found in internet. The bad part about networking not working is that even to Google  or download something, you need to reboot :-( &#8220;Life is too short for reboots&#8221; they used to say.</div>
<p>
<div style="text-align: justify;">Anyway now the time was 12 . Shit. Two hours gone and still no progress. Had a idea of going back to Firefox test cases but NO. I have to work with Tinderbox and i will do it tonight. So read manuals from here and there about configuration and tried everything given there :(. No luck. Though internet seems to work from windows and Linux.</div>
<p>
<div style="text-align: justify;">Now one unfortunate thing is i have two Ethernet cards ( Realtek and VIA). Solaris detects only Realtek , so i use that for Solaris while i use VIA for Linux and Windows. Just then it realized. Is the Realtek Ethernet card working ??? What if that has the problem ??</div>
<p>
<div style="text-align: justify;">So one more reboot. Configured the Realtek card to connect to internet. Widows detected the card, LAN enabled but internet was not working. Same problem as i had in solaris. SHIT SHIT SHIT. So finally my Ethernet card has some problem :-(. The strange thing is, it detects my card and all, but just that it wont send/receive anything through the card. Strange problem, but why to me :-( :-(</div>
<p>
<div style="text-align: justify;">After realizing the problem (well time is 3 am now),  i thought of  finding the driver for the   VIA Ethernet card, and managed to download a driver. A reboot back to Solaris, i realized that i don&#8217;t even have a gcc to compile the driver. Downloaded gcc and finally now it is 5 am :-(</div>
<p>
<div style="text-align: justify;">I am NOT going to try installing the driver for VIA Ethernet card. I am getting frustrated , irritated and what not,when i  see a reboot. A 60-75 reboots in a span of 7 hours is not something really exciting and motivating :(. So all i am gonna do is to check this Ethernet card in friends place and get a new one.</div>
<p>
<div style="text-align: justify;">Finally when i wrote this blog it is 5 AM. From 10 PM to 5 AM, no progress at all. All i found out is my Ethernet card might not be working :( :( . Not even a single line of Code in 7 hrs of real hard working :-(, actually not even a single word of code :P .<br />A nightout is nothing new for me, but this time i really felt the pain of one whole night completely wasted :(.</div>
<p>
<div style="text-align: justify;">Now all i hope is my Ethernet card should have a problem, so that i can get another one soon and start with my work. Only God can save me if it was not an Ethernet problem :P.</div>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/06/19/networking-not-working-p/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Internet from solaris &#8230;</title>
		<link>http://sp2hari.com/2007/06/10/internet-from-solaris/</link>
		<comments>http://sp2hari.com/2007/06/10/internet-from-solaris/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 00:07:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[SOC]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=51</guid>
		<description><![CDATA[DNS makes our life real easy. Without that, i don&#8217;t think people will say check out http://google.com but check out http://64.233.187.99. I realized how important DNS is to us and without DNS how one can go mad. I installed Solaris &#8230; <a href="http://sp2hari.com/2007/06/10/internet-from-solaris/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>DNS makes our life real easy. Without that, i don&#8217;t think people will say check out http://google.com but check out http://64.233.187.99. I realized how important DNS is to us and without DNS how one can go mad.</p>
<p>I installed Solaris (Neveda ) two weeks back and it was good. :-) . Though i was a bit scared in the initial stages, i didn&#8217;t find much difference between Linux and Solaris as far as LDTP is concerned. Anyway i had <a href="http://blogs.sun.com/roller/page/emily">Emily Chen</a> from Sun China (my Soc Mentor ) to help me with the issues and many thanks to her, she was always willing to help me in any issue. In fact almost all her mails had something saying<br />&#8221; I am on Gtalk almost every workday, feel free to ping me when you have problems. &#8221; or something similar to that :-) :-)</p>
<p>But there was one issue which really troubled me in Solaris and that was DNS wasn&#8217;t working. Instead of typing http://www.google.com, i had to type http://64.233.187.99/ :(</p>
<p>I had a huge list of servers which i might use and their ip&#8217;s . (Many thanks to dnsstuff.com). I was getting more and more frust typing IP&#8217;s instead of url&#8217;s and browsing only the cached page instead of the actual pages. I tried many a things and even Emily also helped me with few tips and tricks. But things never worked. I was really getting irritated as this was delaying my progress in SOC.</p>
<p>Determined to solve the issue somehow, i started trying all the options in the Network Settings. One strange thing i noted is that, whenever i add a DNS server and close it, next time i open Network Settings, the entries won&#8217;t be there. Simply disappeared from there :-(.</p>
<p>I noticed an option called Location in the Network Settings. It was empty and i wasn&#8217;t sure whether i have seen anything like this in Linux.</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_7owHVJdIzX8/RmyZjLijUXI/AAAAAAAAA6Y/IbEDS0CDZhY/s1600-h/Screenshot.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_7owHVJdIzX8/RmyZjLijUXI/AAAAAAAAA6Y/IbEDS0CDZhY/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5074599709811888498" border="0"></a><br />Not sure of what to do with that Location, i gave &#8220;home&#8221; there. I wasn&#8217;t sure whether this will solve my problem, but no harm in trying. But once i restarted network, www.google.com worked.<br />YES. IT WORKED. IT WORKED .IT WORKED. IT WORKED .IT WORKED. IT WORKED</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_7owHVJdIzX8/RmyZNbijUWI/AAAAAAAAA6Q/8U5fC2hAKvo/s1600-h/Screenshot-2.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_7owHVJdIzX8/RmyZNbijUWI/AAAAAAAAA6Q/8U5fC2hAKvo/s320/Screenshot-2.png" alt="" id="BLOGGER_PHOTO_ID_5074599336149733730" border="0"></a>I am pretty sure anyone who had seen me at that time would have thought that i am mad. Even i wont blame them . I accept, suddenly jumping out of the chair and shouting &#8220;IT WORKED&#8221; at 3 in the morning is quite odd. :P</p>
<p>Anyways, now that things have started working, will be saying my &#8220;Hello World&#8221; to tinderbox soon :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/06/10/internet-from-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Running a test case &#8230;</title>
		<link>http://sp2hari.com/2007/06/10/running-a-test-case/</link>
		<comments>http://sp2hari.com/2007/06/10/running-a-test-case/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 22:28:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[SOC]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=50</guid>
		<description><![CDATA[Having written the test scripts for Firefox, this time going to tell how to test Firefox with these scripts. The test scripts can be found here There is a wiki page in LDTP website which gives quick tips about how &#8230; <a href="http://sp2hari.com/2007/06/10/running-a-test-case/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Having written the test scripts for Firefox, this time going to tell how to test Firefox with these scripts. The test scripts can be found <a href="http://people.freedesktop.org/%7Enagappan/firefox.tar.gz">here</a></p>
<p>There is a <a href="http://ldtp.freedesktop.org/wiki/How_to_execute_scripts">wiki page</a> in LDTP website which gives quick tips about how to run LDTP test cases.</p>
<p>First quick steps to get LDTP installed . If you have LDTP already installed, then you can skip this.</p>
<p><span style="font-weight: bold;">Installation</span><br />Get the source/binary from the <a href="http://ldtp.freedesktop.org/wiki/Download">downloads section</a> of LDTP web page. Any other dependencies which LDTP might need while installation is libxml2 and libat-spi. (I generally install the debug and dev packages of the above two). After this installation of LDTP shouldn&#8217;t have any issues :-)</p>
<p><span style="font-weight: bold;">Runner XML<br /></span>Runner XML files makes testing many test cases one after another in a batch mode easy. A sample runner XML can be found <a href="http://ldtp.freedesktop.org/wiki/Sample_ldtprunner_XML">here</a>. A very simple runner XML needed to run a single test case will be like</p>
<p><ldtp><group style="font-style: italic;">&lt;ldtp&gt;<br />&lt;logfileoverwrite&gt;1&lt;/logfileoverwrite&gt;<br />&lt;logfile&gt;log.xml&lt;/logfile&gt;<br />&lt;group&gt;<br />&lt;script&gt;<br />&lt;name&gt;verifyaddress-autocomplete.py&lt;/name&gt;<br />&lt;data&gt;firefox.xml&lt;/data&gt;<br />&lt;/script&gt;<br />&lt;/group&gt;<br />&lt;/ldtp&gt;</p>
<p></group><group>The tags are self explanatory.<br />You can have any number of script blocks and thereby test any number of test cases one after another. The data tag is not necessary but it is better to have a separate data file.<br /></group></ldtp><br /><span style="font-weight: bold;">Test<br /></span>Well, that&#8217;s all you have to do. Start Firefox and then</p>
<p><span style="font-style: italic;">hari@home:~$ ldtprunner run.xml</span></p>
<p>The above command starts testing the application with the test case provided in the run.xml .</p>
<p>Note :: It is also possible to test simply by giving</p>
<p><span style="font-weight: bold;"></span><span style="font-style: italic;">hari@home:~$ python verifyaddress-autocomplete.py</span></p>
<p>But i prefer doing it using runner XML, as that has more features.</p>
<p>There is a complete tutorial for LDTP <a href="http://freeshells.ch/%7Esp2hari/soc/ldtp-tutorial.pdf">here.</a> This explains everything needed to write a test script clearly and is worth reading :)</p>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/06/10/running-a-test-case/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SOC report &#8230;</title>
		<link>http://sp2hari.com/2007/06/08/soc-report/</link>
		<comments>http://sp2hari.com/2007/06/08/soc-report/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 16:45:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[SOC]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=49</guid>
		<description><![CDATA[My SoC is going fine and great. Hoping to finish this well ahead of time:) This is a blog + report :) So i have started with Automation of Firefox.For the current status of all the test cases i have &#8230; <a href="http://sp2hari.com/2007/06/08/soc-report/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My SoC is going fine and great. Hoping to finish this well ahead of time:) This is a blog + report :)</p>
<p>So i have started with Automation of Firefox.<br />For the current status of all the test cases i have mentioned here, check this <a href="http://ldtp.freedesktop.org/wiki/Firefox_Test_Cases">link</a></p>
<p>The categories under which i have written test cases till now are<br />1. Firefox 3.0 :: SmokeTests :: <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&#038;product_id=1&amp;branch_id=15&#038;testgroup_id=54&amp;subgroup_id=748&#038;print=1">Functionality</a><br />Most of the test cases in this category are done. certain test cases which are yet to be done are marked as TODO in the status page.</p>
<p>2. Firefox 2.0 :: Basic Functional Tests :: <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&amp;amp;amp;product_id=1&#038;branch_id=11&amp;testgroup_id=25&#038;subgroup_id=323&amp;print=1">Help</a><br />This is a really small category, with just two cases. Both of them working fine, but have to check the closewindow() function which didn&#8217;t close the help window.</p>
<p>3. Firefox 2.0 :: Basic Functional Tests :: <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&#038;product_id=1&amp;branch_id=11&#038;testgroup_id=25&amp;subgroup_id=316&#038;print=1">Options (Preferences)</a><br />Have done almost all the test cases. There is again a small issue in this. The objects shown in the preferences window are list-items whose parent is a list. We tried to copy the code for combobox for list but it didn&#8217;t work. Have to add functions specific for list in list.c</p>
<p>4. Firefox 2.0 :: Basic Functional Tests :: <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&amp;amp;amp;product_id=1&#038;branch_id=11&amp;testgroup_id=25&#038;subgroup_id=318&amp;print=1">Printing</a><br />This had bug in the print preview option. The CPU just hangs and processor takes 100% load . This bug is already reported in <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=323652">bugzilla.mozilla.org</a> .</p>
<p>5. Firefox 2.0 :: Basic Functional Tests :: <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&#038;product_id=1&amp;branch_id=11&#038;testgroup_id=25&amp;subgroup_id=320&#038;print=1">Location bar</a><br />Works perfectly. Had to use LTFX functions activatewin and typekey .</p>
<p>6. Firefox 2.0 :: Basic Functional Tests :: <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&amp;amp;amp;product_id=1&#038;branch_id=11&amp;testgroup_id=25&#038;subgroup_id=315&amp;print=1">Popup and Annoyance Blocking</a><br />Most of the test cases have been automated. Testing Java and Javascript is a small issue in this.</p>
<p>Some of the important categories which i have started tesing and is in near completion are<br />1. <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&#038;product_id=1&amp;branch_id=11&#038;testgroup_id=25&amp;subgroup_id=313&#038;print=1">Bookmarks</a><br />2. <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&amp;amp;amp;product_id=1&#038;branch_id=11&amp;testgroup_id=25&#038;subgroup_id=324&amp;print=1">MenuBar</a><br />3. <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&#038;product_id=1&amp;branch_id=11&#038;testgroup_id=25&amp;subgroup_id=499&#038;print=1">RSS</a><br />4. <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&amp;amp;amp;product_id=1&#038;branch_id=11&amp;testgroup_id=25&#038;subgroup_id=311&amp;print=1">Downloading</a><br />5. <a href="http://litmus.mozilla.org/show_test.cgi?searchType=by_category&#038;product_id=1&amp;branch_id=11&#038;testgroup_id=25&amp;subgroup_id=310&#038;print=1">Addons Manager</a></p>
<p>Finally, the code for the above tests can be found <a href="http://people.freedesktop.org/%7Enagappan/firefox.tar.gz">here. </a><br />Finally one small and interesting thing ;-). The icon which shows that the loading of a page ( the circular thing which rotates while a page is loading) is a push button :-) . Was really surprised when i noticed it :P. No clue why is it that way ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/06/08/soc-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I got my copy :-)</title>
		<link>http://sp2hari.com/2007/06/06/i-got-my-copy/</link>
		<comments>http://sp2hari.com/2007/06/06/i-got-my-copy/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 15:53:00 +0000</pubDate>
		<dc:creator>sp2hari</dc:creator>
				<category><![CDATA[SOC]]></category>

		<guid isPermaLink="false">http://sp2hari.com/?p=46</guid>
		<description><![CDATA[This is my first post related to my SoC.So let me just introduce things.I am doing Google Summer Of Code under Mozilla Foundation . My mentors are Nagappan from Novell, Bangalore and Emily Chen from Sun, China. When i started &#8230; <a href="http://sp2hari.com/2007/06/06/i-got-my-copy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is my first post related to my SoC.<br />So let me just introduce things.<br />I am doing <a href="http://code.google.com/soc/">Google Summer Of Code</a> under <a href="http://code.google.com/soc/mozilla/about.html">Mozilla Foundation</a> . My mentors are <a href="http://nagappanal.blogspot.com/">Nagappan</a> from Novell, Bangalore and <a href="http://blogs.sun.com/roller/page/emily">Emily Chen</a> from Sun, China.</p>
<p>When i started working for my SoC, i got a mail from Google SoC team saying<br /><span style="font-style: italic;">&#8220;Hello everyone,</p>
<p>In keeping with last year&#8217;s tradition, we will be sending a surprise<br />to all students.  Last year we sent a cool Google notebook (complete<br />with paper legacy interface), and this year we have something even<br />cooler in the works.</p>
<p>If you really feel you must, go ahead and start a barrage of &#8220;I wonder<br />what it could be&#8221; posts to the list.  But please don&#8217;t.  You&#8217;ll have<br />the ultra-cool surprise in hand soon.</p>
<p>One final reminder, when you get your surprise, please don&#8217;t tell the<br />rest of the world until June 4, 2007.  We&#8217;d like to keep it a surprise<br />for as many folks as possible.</p>
<p>After that, by all means blog, post, etc.  :)</p>
<p>Cheers,<br />LH &#8220;</p>
<p></span><span>The moment someone tells you that you are going to get a surprise, you start thinking only about it and nothing else. :-) . And of course i am no exception. All i knew was it is a book signed by its author. There is long discussion in the Google soc group guessing whether it can be Linus or someone else.</p>
<p>Finally i got the book few days back. It is </span><a href="http://producingoss.com/">Producing Open Source Software:   How to Run a Successful Free Software Project</a>   <span> by <a href="http://www.red-bean.com/kfogel/">karl fogel.</a></p>
<p>Wow :) i never  thought just a book will make me so happy. This is the first book i have ever got which is signed by its author :) and i felt so happy that i can&#8217;t describe it here :-)</p>
<p>I really can&#8217;t wait to get back to college so that i can scan the first page ;-) and put it up here. Man, just a simple signature with a text saying &#8220;Happy Hacking&#8221; but whenever i see it ,makes me feel happy and proud :-).</p>
<p>And yes, the best part was that the author was kind enough to post a blog about it. So if you don&#8217;t believe what i am telling you, check out his <a href="http://www.rants.org/2007/05/29/keepin-it-real-for-the-google-summer-of-code-students/">blog about the book</a> here.</p>
<p>The review about the book in one line. &#8220;The more i read it, the more i love it.&#8221; There are many places where the author has taken care to give appropriate examples, funny incidents, etc.</p>
<p>Finally<br />Thanks a ton for Google for such a nice idea. :-)<br /></span></p>
]]></content:encoded>
			<wfw:commentRss>http://sp2hari.com/2007/06/06/i-got-my-copy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

