llvm.org GIT mirror llvm / 1de4849
Modified instructions to configure llvm-test by configure llvm with the Path --with-llvmgccdir set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44390 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 11 years ago
1 changed file(s) with 13 addition(s) and 29 deletion(s). Raw diff Collapse all Expand all
151151

                  
                
152152 % cd llvm/projects
153153 % svn co http://llvm.org/svn/llvm-project/test-suite/trunk llvm-test
154 % cd llvm-test
155 % ./configure --with-llvmsrc=$LLVM_SRC_ROOT --with-llvmobj=$LLVM_OBJ_ROOT
154 % cd ..
155 % ./configure --with-llvmgccdir=$LLVM_GCC_DIR
156 % cd projects/llvm-test
156157 % gmake
157158
158159
693694
694695

This will get the test suite into llvm/projects/llvm-test

695696
696
  • Configure the test suite. You can do this one of two ways:

  • 697
    698
    699
  • Use the regular llvm configure:

  • 700
    701
    702
    
                      
                    
    703 % cd $LLVM_OBJ_ROOT ; $LLVM_SRC_ROOT/configure
    704
    705
    706
    707

    This will ensure that the projects/llvm-test directory is

    708 also properly configured.

    709
    710
  • Use the configure script found in the llvm-test

  • 711 source directory:

    712
    713
    714
    
                      
                    
    715 % $LLVM_SRC_ROOT/projects/llvm-test/configure \
    716 --with-llvmsrc=$LLVM_SRC_ROOT \
    717 --with-llvmobj=$LLVM_OBJ_ROOT
    718
    719
    720
    721 </ol>
    697 <li>

    Configure the test suite using llvm configure. This will automatically configure llvm-test.

    698 You must do it from the top level otherwise llvm-gcc will not be set which is required to
    699 run llvm-test.:

    700
    701
    
                      
                    
    702 % cd $LLVM_OBJ_ROOT ; $LLVM_SRC_ROOT/configure --with-llvmgccdir=$LLVM_GCC_DIR
    703
    704
    722705
  • gmake
  • 723706
    724707

    Note that the second and third steps only need to be done once. After you

    725708 have the suite checked out and configured, you don't need to do it again (unless
    726 the test code or configure script changes).

    709 the test code or configure script changes). $LLVM_GCC_DIR is the path to the LLVM
    710 C/C++ FrontEnd

    727711
    728712

    To make a specialized test (use one of the

    729713 llvm-test/TEST.<type>.Makefiles), just run: