X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FTestingGuide.html;h=b279405103e57de03cd81d56714a7e3d9faf5b4b;hb=d49e18d29f3c5622cfd373fbfa0b954d1c256455;hp=f036515a7b77f152b5d0b8b2008aa9eabb904a26;hpb=eb82da891c2dbc88c4f3a4adbe436d9f7d122a62;p=oota-llvm.git diff --git a/docs/TestingGuide.html b/docs/TestingGuide.html index f036515a7b7..b279405103e 100644 --- a/docs/TestingGuide.html +++ b/docs/TestingGuide.html @@ -106,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 @@ -138,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
 
+
@@ -201,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.

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

subtrees of the test suite directory tree are as follows: