X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FTestingGuide.html;h=b279405103e57de03cd81d56714a7e3d9faf5b4b;hb=4a6da60787fcc66c521288fbd139cf8afdca5957;hp=b865ff554f0afc821c114d077aef35766f1a8567;hpb=792321a6b1f826f57a2320a7a237bf19aceeece2;p=oota-llvm.git diff --git a/docs/TestingGuide.html b/docs/TestingGuide.html index b865ff554f0..b279405103e 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
  • @@ -102,30 +106,40 @@ and tcl.

    -

    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.

    +

    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 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 @@ -134,13 +148,16 @@ 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
    -% cd llvm-test
    -% ./configure --with-llvmsrc=$LLVM_SRC_ROOT --with-llvmobj=$LLVM_OBJ_ROOT
    +% svn co http://llvm.org/svn/llvm-project/test-suite/trunk llvm-test
    +% cd ..
    +% ./configure --with-llvmgccdir=$LLVM_GCC_DIR
    +% cd projects/llvm-test
     % gmake
     
    +
    @@ -157,8 +174,9 @@ test suite is in the llvm-test module under the main directory.

    -
    Code Fragments -
    + +
    Code Fragments
    +
    @@ -175,7 +193,9 @@ determine correct behavior.

    +
    Whole Programs
    +
    @@ -194,7 +214,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.

    @@ -209,22 +229,31 @@ module.

    subtrees of the test suite directory tree are as follows: