<div class="gmail_quote">On Mon, Mar 30, 2009 at 10:49 AM, Dan Gohman <span dir="ltr"><<a href="mailto:gohman@apple.com">gohman@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br></div>Hi John,<br>
<br>
><br>
<div class="im">> ======================================================================<br>
> --- llvm/trunk/docs/TestingGuide.html (original)<br>
> +++ llvm/trunk/docs/TestingGuide.html Sun Mar 29 23:37:51 2009<br>
> @@ -695,12 +695,14 @@<br>
><br>
> <p>First, all tests are executed within the LLVM object directory<br>
> tree.  They<br>
> <i>are not</i> executed inside of the LLVM source tree. This is<br>
> because the<br>
> -test suite creates temporary files during execution.</p><br>
> +test suite creates temporary files during execution. This means you<br>
> must create<br>
> +a build tree separate from the LLVM source tree in which to run the<br>
> test suite.</p><br>
<br>
</div>Is this true?  Is it not possible to run the test-suite in srdir ==<br>
objdir mode<br>
when it is run from projects/test-suite?</blockquote><div><br></div><div>I followed what appeared to be the original process description which starts</div><div>off saying that tests are run from within the object (build) directory rather</div>
<div>than the source tree. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">In fact, there's a major problem with running the test-suite in<br>
srcdir != objdir mode -- the objdir contains copies of the srcdir's Makefiles, and the<br>
copies are not updated after an svn update.</blockquote><div><br></div><div>Absolutely. I see now I confused things here. I run the test suite from within a build</div><div>tree and I maintain consistency manually by removing old test results and re-configing</div>
<div>in the build tree. I originally ran it from within my source tree but wanted to have</div><div>more than one test area.</div><div><br></div><div>Should the docs describe running from within the source tree only?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">...<br>
> +         <br>[The Makefiles expect the test suite directory to be<br>
> named either<br>
> +         <tt>test-suite</tt> or <tt>llvm-test</tt>. To be safe, use<br>
> +         <tt>test-suite</tt> as in the above svn command line.]</p><br>
<br>
</div>The name "llvm-test" is a historical artifact. "test-suite" is the<br>
preferred name currently.  It would be better to avoid mentioning "llvm-test"<br>
here, to avoid confusion.</blockquote><div><br></div><div>I was unsure about that, I'll remove "llvm-test".</div><div><br></div><div>Thanks for your help,</div><div>John</div><div><br></div><div> </div></div>