llvm.org GIT mirror llvm / 792321a
Wrap long lines fix typo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28429 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 19 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
107107 programs in C and C++ is in the llvm-test module. This module should
108108 be checked out to the llvm/projects directory. When you
109109 configure the llvm module, the llvm-test module
110 will be automatically configured. Alternatively, you can configure the llvm-test module manually.

111

To run all of the simple tests in LLVM using DejaGNU, use the master Makefile in the

112 llvm/test directory:

110 will be automatically configured. Alternatively, you can configure the
111 llvm-test module manually.

112

To run all of the simple tests in LLVM using DejaGNU, use the master Makefile

113 in the llvm/test directory:

113114

                  
                
114115 % gmake -C llvm/test
115116
322323 that you might find useful when writing RUN lines.

323324
324325

Lastly, you can easily mark a test that is expected to fail on a

325 specific platform or with a specific version of llvmgcc by using the XFAIL keyword. Xfail lines are
326 specific platform or with a specific version of llvmgcc by using the
327 XFAIL keyword. Xfail lines are
326328 specified in the comments of the test program using XFAIL,
327329 followed by a colon, and one or more regular expressions (separated by
328330 a comma) that will match against the target triplet or llvmgcc version for the
329 machine. You can use * to match all targets. You can specify the major or full version (i.e. 3.4) for llvmgcc. Here is an example of an
331 machine. You can use * to match all targets. You can specify the major or full
332 version (i.e. 3.4) for llvmgcc. Here is an example of an
330333 XFAIL line:

331334

                  
                
332335 ; XFAIL: darwin,sun,llvmgcc4
401404 are not executed inside of the LLVM source tree. This is because the
402405 test suite creates temporary files during execution.

403406
404

The master Makefile in llvm/test is capable of running only the DejaGNU driven

405 tests. By default, it will run all of these tests.

407

The master Makefile in llvm/test is capable of running only the DejaGNU

408 driven tests. By default, it will run all of these tests.

406409
407410

To run only the DejaGNU driven tests, run gmake at the

408411 command line in llvm/test. To run a specific directory of tests, use
431434 properly configured.
432435
  • Use the configure script found in the llvm-test source
  • 433436 directory:
    434 $LLVM_SRC_ROOT/projects/llvm-test/configure --with-llvmsrc=$LLVM_SRC_ROOT --with-llvmobj=$LLVM_OBJ_ROOT
    437 $LLVM_SRC_ROOT/projects/llvm-test/configure
    438 --with-llvmsrc=$LLVM_SRC_ROOT --with-llvmobj=$LLVM_OBJ_ROOT
    435439
    436440
    437441
  • gmake
  • 482486

    If you'd like to set up an instance of the nightly tester to run on your

    483487 machine, take a look at the comments at the top of the
    484488 utils/NightlyTester.pl file. We usually run it from a crontab entry
    485 that looks ilke this:

    489 that looks like this:

    486490
    487491
    488492
    
                      
                    
    489 5 3 * * * $HOME/llvm/utils/NightlyTest.pl -parallel $CVSROOT $HOME/buildtest-X86 $HOME/cvs/testresults-X86
    493 5 3 * * * $HOME/llvm/utils/NightlyTest.pl -parallel $CVSROOT \
    494 $HOME/buildtest $HOME/cvs/testresults
    490495
    491496
    492497
    505510 export LD_LIBRARY_PATH=/proj/install/lib
    506511 cd $BASE
    507512 cp /proj/work/llvm/llvm/utils/NightlyTest.pl .
    508 nice ./NightlyTest.pl -nice -release -verbose -parallel -enable-linscan -noexternals 2>&1 > output.log
    509 mail -s 'X86 nightly tester results' llvm-testresults@cs.uiuc.edu < output.log
    513 nice ./NightlyTest.pl -nice -release -verbose -parallel -enable-linscan \
    514 -noexternals 2>&1 > output.log
    515 mail -s 'X86 nightly tester results' 516 listinfo/llvm-testresults">llvm-testresults@cs.uiuc.edu < output.log
    510517
    511518
    512519