diff options
author | Shantonu Sen <ssen@apple.com> | 2009-06-26 05:44:53 +0000 |
---|---|---|
committer | Shantonu Sen <ssen@apple.com> | 2009-06-26 05:44:53 +0000 |
commit | 1b6d3daa59b6938fcbafe1fbb24035734c94ba8c (patch) | |
tree | 76ee1d7e90c2cf78e32da7176250c6af9263f0e0 /docs/TestingGuide.html | |
parent | 5202312d2ed5078b0451838ee2661f4eb5ff2ef9 (diff) | |
download | external_llvm-1b6d3daa59b6938fcbafe1fbb24035734c94ba8c.zip external_llvm-1b6d3daa59b6938fcbafe1fbb24035734c94ba8c.tar.gz external_llvm-1b6d3daa59b6938fcbafe1fbb24035734c94ba8c.tar.bz2 |
Clarify how to configure llvm-gcc-4.2 for use with
test suite. Remove documentation for --with-f2c, which
is no longer supported. Remove information about obtaining
tcl/expect, which ship with Mac OS X by default since
10.4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/TestingGuide.html')
-rw-r--r-- | docs/TestingGuide.html | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/docs/TestingGuide.html b/docs/TestingGuide.html index 5fc59a7..60fe18a 100644 --- a/docs/TestingGuide.html +++ b/docs/TestingGuide.html @@ -78,27 +78,8 @@ required to build LLVM, plus the following:</p> <dd>Expect is required by DejaGNU.</dd> <dt><a href="http://www.tcl.tk/software/tcltk/">tcl</a></dt> <dd>Tcl is required by DejaGNU. </dd> - -<ul> -<li><tt>./configure --with-f2c=$DIR</tt><br> -This will specify a new <tt>$DIR</tt> for the above-described search -process. This will only work if the binary, header, and library are in their -respective subdirectories of <tt>$DIR</tt>.</li> - -<li><tt>./configure --with-f2c-bin=/binary/path --with-f2c-inc=/include/path ---with-f2c-lib=/lib/path</tt><br> -This allows you to specify the F2C components separately. Note: if you choose -this route, you MUST specify all three components, and you need to only specify -<em>directories</em> where the files are located; do NOT include the -filenames themselves on the <tt>configure</tt> line.</li> -</ul></dd> </dl> -<p>Darwin (Mac OS X) developers can simplify the installation of Expect and tcl -by using fink. <tt>fink install expect</tt> will install both. Alternatively, -Darwinports users can use <tt>sudo port install expect</tt> to install Expect -and tcl.</p> - </div> <!--=========================================================================--> @@ -122,14 +103,17 @@ tests" and are in the <tt>llvm</tt> module in subversion under the <div class="doc_text"> -<p>Code fragments are small pieces of code that test a specific feature of LLVM -or trigger a specific bug in LLVM. They are usually written in LLVM assembly -language, but can be written in other languages if the test targets a particular -language front end. These tests are driven by the DejaGNU testing framework, -which is hidden behind a few simple makefiles.</p> +<p>Code fragments are small pieces of code that test a specific +feature of LLVM or trigger a specific bug in LLVM. They are usually +written in LLVM assembly language, but can be written in other +languages if the test targets a particular language front end (and the +appropriate <tt>--with-llvmgcc</tt> options were used +at <tt>configure</tt> time of the <tt>llvm</tt> module). These tests +are driven by the DejaGNU testing framework, which is hidden behind a +few simple makefiles.</p> -<p>These code fragments are not complete programs. The code generated from them is -never executed to determine correct behavior.</p> +<p>These code fragments are not complete programs. The code generated +from them is never executed to determine correct behavior.</p> <p>These code fragment tests are located in the <tt>llvm/test</tt> directory.</p> @@ -251,10 +235,18 @@ programs), first checkout and setup the <tt>test-suite</tt> module:</p> % cd .. % ./configure --with-llvmgccdir=$LLVM_GCC_DIR </pre> -<p>where <tt>$LLVM_GCC_DIR</tt> is the directory where you <em>installed</em> -llvm-gcc, not it's src or obj dir.</p> </div> +<p>where <tt>$LLVM_GCC_DIR</tt> is the directory where +you <em>installed</em> llvm-gcc, not it's src or obj +dir. The <tt>--with-llvmgccdir</tt> option assumes that +the <tt>llvm-gcc-4.2</tt> module was configured with +<tt>--program-prefix=llvm-</tt>, and therefore that the C and C++ +compiler drivers are called <tt>llvm-gcc</tt> and <tt>llvm-g++</tt> +respectively. If this is not the case, +use <tt>--with-llvmgcc</tt>/<tt>--with-llvmgxx</tt> to specify each +executable's location.</p> + <p>Then, run the entire test suite by running make in the <tt>test-suite</tt> directory:</p> @@ -448,6 +440,11 @@ that subdirectory.</p> </pre> </div> +<p>If your system includes GNU <tt>grep</tt>, make sure +that <tt>GREP_OPTIONS</tt> is not set in your environment. Otherwise, +you may get invalid results (both false positives and false +negatives).</p> + </div> <!-- _______________________________________________________________________ --> @@ -746,6 +743,8 @@ test suite creates temporary files during execution.</p> have the suite checked out and configured, you don't need to do it again (unless the test code or configure script changes).</p> +</div> + <!-- _______________________________________________________________________ --> <div class="doc_subsection"> <a name="testsuiteexternal">Configuring External Tests</a></div> |