<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 26, 2014 at 1:09 PM, Mike Spreitzer <span dir="ltr"><<a href="mailto:mspreitz@us.ibm.com" target="_blank">mspreitz@us.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><tt><font>Thanks for the further updates.  I have just
one question about those.  One way to do both unit testing and system
(integration) testing is to: git clone your favorite project to make a
working local repo somewhere on your testing machine, edit and commit there,
then use DevStack to create a running system in /opt/stack using your modified
project in place of the copy at <a href="http://git.openstack.org" target="_blank">git.openstack.org</a>. </font></tt></blockquote><div><br></div><div>Yes, that is similar to what Sean mentioned, the difference being that his repos are actually in VirtualBox Shared Folders so the Linux VM has access to them. He works on them natively on his laptop so the VM doesn't need his desktop toolset installed.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><tt><font> I think the most direct approach would be
to generalize the title of </font></tt><a href="https://wiki.openstack.org/wiki/Gerrit_Workflow#Unit_Tests_Only" target="_blank"><tt><font>https://wiki.openstack.org/wiki/Gerrit_Workflow#Unit_Tests_Only</font></tt></a><tt><font>
and generalize the introductory remark to include a reference to </font></tt><a href="https://wiki.openstack.org/wiki/Testing#Indirect_Approach" target="_blank"><tt><font>https://wiki.openstack.org/wiki/Testing#Indirect_Approach</font></tt></a><tt><font>
.  Does this make sense to you?</font></tt> </blockquote><div><br></div><div>Sure.  My edits were prompted by the loss of some information useful to making a choice between the two and tweaking the phrasing and sections.</div>
<div><br></div><div>There are a lot of ways to do this, enumerating them is beyond the scope of that doc IMHO.  I think having the basic components/requirements available should be enough, but then I also have my workflow figured out so i probably am still missing something.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><tt><font>As far as my experience goes, the fix to 1203680 would
also cover 1203723: the only thing I find lacking for nova unit testing
in Ubuntu is libmysqlclient-dev, which is among the testing requirements
of glance (see DevStack's files/apts/glance).</font></tt> <br></div>
<br><tt><font>As far as I can tell, Sean Dague is saying the fix
to 1203680 is wrong because it binds unit testing to DevStack and he thinks
unit testing should be independent of DevStack.</font></tt>
<br></blockquote><div><br></div><div>Let me summarize: "Unit testing is not a default requirement for DevStack.  If you want it, we have #testonly tags in the system packaging prereq files that will be installed when <span style="color:rgb(47,47,47);font-family:monospace;font-size:x-small">INSTALL_TESTONLY_PACKAGES=True."</span></div>
<div><br></div><div>Following that, missing system package requirements that affect only unit testing can be added with the #testonly tag.  It is good form to attempt to verify those added on both Ubuntu and Fedora, even better form to get RHEL and SuSE.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><tt><font>Interestingly, installing DevStack with </font></tt><tt><font size="1" color="#2f2f2f">INSTALL_TESTONLY_PACKAGES</font></tt><tt><font>
set to True will have a global side-effect and so will provide the unit
testing requirements even if the indirect procedure (</font></tt><a href="https://wiki.openstack.org/wiki/Testing#Indirect_Approach" target="_blank"><tt><font>https://wiki.openstack.org/wiki/Testing#Indirect_Approach</font></tt></a><tt><font>)
that Sean advocates is used.  In this way the only tie between unit
testing and DevStack is that they be done on the same machine.  Maybe
this is the way to go?</font></tt> <br></blockquote></div><div class="gmail_extra"><br></div>That is exactly what that variable is for.  There are times we don't want those packages installed and it is MUCH easier to add them than to remove them.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">dt<br clear="all"><div><br></div>-- <br><br>Dean Troyer<br><a href="mailto:dtroyer@gmail.com">dtroyer@gmail.com</a><br>
</div></div>