From c4c268b04fec5e4c2a0ad4e9aa5b2192456624eb Mon Sep 17 00:00:00 2001
From: Stuart Hastings
-
The External directory contains Makefiles for building code that is external to (i.e., not distributed with) LLVM. The most prominent members of this directory are the SPEC 95 and SPEC 2000 benchmark suites. The External -directory does not contain these actual tests,but only the Makefiles that know +directory does not contain these actual tests, but only the Makefiles that know how to properly compile these programs from somewhere else. The presence and location of these external programs is configured by the llvm-test configure script.
@@ -710,15 +710,20 @@ test suite creates temporary files during execution. % svn co http://llvm.org/svn/llvm-project/test-suite/trunk test-suite -This will get the test suite into llvm/projects/test-suite.
+This will get the test suite into llvm/projects/test-suite.
-Configure llvm from the top level of each build tree (LLVM object directory tree) - in which you want to run the test suite, just as you do before building LLVM.
-When running configure, you must either: (1) have llvm-gcc - in your path, or (2) specify the directory where llvm-gcc is - installed using --with-llvmgccdir=$LLVM_GCC_DIR.
-This step tells the configure machinery that the test suite - is now available so it can be configured for your build tree:
+Configure and build llvm.
Configure and build llvm-gcc.
Install llvm-gcc somewhere.
Re-configure llvm from the top level of + each build tree (LLVM object directory tree) in which you want + to run the test suite, just as you do before building LLVM.
+During the re-configuration, you must either: (1) + have llvm-gcc you just built in your path, or (2) + specify the directory where your just-built llvm-gcc is + installed using --with-llvmgccdir=$LLVM_GCC_DIR.
+You must also tell the configure machinery that the test suite + is available so it can be configured for your build tree:
% cd $LLVM_OBJ_ROOT ; $LLVM_SRC_ROOT/configure [--with-llvmgccdir=$LLVM_GCC_DIR] @@ -743,12 +748,16 @@ the test code or configure script changes). +Configuring External Tests
Note, when configuring the test-suite module, you might want to -specify the following configuration option:
+In order to run the External tests in the test-suite + module, you must specify --with-externals. This + must be done during the re-configuration step (see above), + and the llvm re-configuration must recognize the + previously-built llvm-gcc. If any of these is missing or + neglected, the External tests won't work.
In addition to the regular "whole program" tests, the test-suite +
In addition to the regular "whole program" tests, the test-suite module also provides a mechanism for compiling the programs in different ways. If the variable TEST is defined on the gmake command line, the test system will include a Makefile named TEST.<value of TEST variable>.Makefile.