X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FTestingGuide.html;h=ab4628a080723bf080300d00407670fea3cf2796;hb=9ac0ca07f9e1a12f224994aa297cfc856e4b1e0d;hp=2dd66d31c085537b7517ff72f84eae30802031ba;hpb=c6e32eb9ce753f8cbb1330f72d488ac73b763778;p=oota-llvm.git diff --git a/docs/TestingGuide.html b/docs/TestingGuide.html index 2dd66d31c08..ab4628a0807 100644 --- a/docs/TestingGuide.html +++ b/docs/TestingGuide.html @@ -24,7 +24,11 @@
  • LLVM Test Suite Tree
  • DejaGNU Structure
  • llvm-test Structure
  • -
  • Running the LLVM Tests
  • +
  • Running the LLVM Tests + +
  • Running the nightly tester
  • @@ -88,6 +92,12 @@ this route, you MUST specify all three components, and you need to only specify filenames themselves on the configure line. + +

    Darwin (Mac OS X) developers can simplify the installation of Expect and tcl +by using fink. fink install expect will install both. Alternatively, +Darwinports users can use sudo port install expect to install Expect +and tcl.

    + @@ -96,40 +106,57 @@ filenames themselves on the configure line.
    -

    The tests are located in two separate CVS modules. The basic feature and -regression tests are in the main "llvm" module under the directory -llvm/test. A more comprehensive test suite that includes whole -programs in C and C++ is in the llvm-test module. This module should -be checked out to the llvm/projects directory. When you -configure the llvm module, the llvm-test module -will be automatically configured. Alternatively, you can configure the llvm-test module manually.

    -

    To run all of the simple tests in LLVM using DejaGNU, use the master Makefile in the -llvm/test directory:

    +

    The tests are located in two separate Subversion modules. The basic feature + and regression tests are in the main "llvm" module under the directory + llvm/test. A more comprehensive test suite that includes whole +programs in C and C++ is in the test-suite module. This module should +be checked out to the llvm/projects directory as llvm-test (for +historical purpose). When you configure the llvm module, +the llvm-test directory will be automatically configured. +Alternatively, you can configure the test-suite module manually.

    +

    To run all of the simple tests in LLVM using DejaGNU, use the master Makefile + in the llvm/test directory:

    + +
     % gmake -C llvm/test
     
    -or
    +
    + +

    or

    + +
     % gmake check
     
    -

    To run only a subdirectory of tests in llvm/test using DejaGNU (ie. Regression/Transforms). Just substitute the path to the subdirectory:

    +
    + +

    To run only a subdirectory of tests in llvm/test using DejaGNU (ie. +Regression/Transforms), just set the TESTSUITE variable to the path of the +subdirectory (relative to llvm/test):

    + +
     % gmake -C llvm/test TESTSUITE=Regression/Transforms
     
    +
    -

    Note: If you are running the tests with objdir != subdir you must -have run the complete testsuite before you can specify a subdirectory.

    +

    Note: If you are running the tests with objdir != subdir, you +must have run the complete testsuite before you can specify a +subdirectory.

    To run the comprehensive test suite (tests that compile and execute whole programs), run the llvm-test tests:

    +
     % cd llvm/projects
    -% cvs co llvm-test
    +% svn co http://llvm.org/svn/llvm-project/test-suite/trunk llvm-test
     % cd llvm-test
     % ./configure --with-llvmsrc=$LLVM_SRC_ROOT --with-llvmobj=$LLVM_OBJ_ROOT
     % gmake
     
    +
    @@ -141,13 +168,14 @@ programs), run the llvm-test tests:

    The LLVM test suite contains two major categories of tests: code fragments and whole programs. Code fragments are in the llvm module -under the directory under the llvm/test directory. The whole programs -test suite are in the llvm-test module under the main directory.

    +under the llvm/test directory. The whole programs +test suite is in the llvm-test module under the main directory.

    -
    Code Fragments -
    + +
    Code Fragments
    +
    @@ -164,7 +192,9 @@ determine correct behavior.

    +
    Whole Programs
    +
    @@ -183,7 +213,7 @@ a way of benchmarking LLVM performance, both in terms of the efficiency of the programs generated as well as the speed with which LLVM compiles, optimizes, and generates code.

    -

    All "whole program" tests are located in the llvm-test CVS +

    All "whole program" tests are located in the test-suite Subversion module.

    @@ -198,22 +228,31 @@ module.

    subtrees of the test suite directory tree are as follows: