From 1b6d3daa59b6938fcbafe1fbb24035734c94ba8c Mon Sep 17 00:00:00 2001 From: Shantonu Sen Date: Fri, 26 Jun 2009 05:44:53 +0000 Subject: [PATCH] Clarify how to configure llvm-gcc-4.2 for use with test suite. Remove documentation for --with-f2c, which is no longer supported. Remove information about obtaining tcl/expect, which ship with Mac OS X by default since 10.4. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74271 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/TestingGuide.html | 55 +++++++++++++++++++++--------------------- test/Makefile | 4 +++ 2 files changed, 31 insertions(+), 28 deletions(-) diff --git a/docs/TestingGuide.html b/docs/TestingGuide.html index 5fc59a7eec4..60fe18a8e5a 100644 --- a/docs/TestingGuide.html +++ b/docs/TestingGuide.html @@ -78,27 +78,8 @@ required to build LLVM, plus the following:

Expect is required by DejaGNU.
tcl
Tcl is required by DejaGNU.
- - -

Darwin (Mac OS X) developers can simplify the installation of Expect and tcl -by using fink. fink install expect will install both. Alternatively, -Darwinports users can use sudo port install expect to install Expect -and tcl.

- @@ -122,14 +103,17 @@ tests" and are in the llvm module in subversion under the
-

Code fragments are small pieces of code that test a specific feature of LLVM -or trigger a specific bug in LLVM. They are usually written in LLVM assembly -language, but can be written in other languages if the test targets a particular -language front end. These tests are driven by the DejaGNU testing framework, -which is hidden behind a few simple makefiles.

+

Code fragments are small pieces of code that test a specific +feature of LLVM or trigger a specific bug in LLVM. They are usually +written in LLVM assembly language, but can be written in other +languages if the test targets a particular language front end (and the +appropriate --with-llvmgcc options were used +at configure time of the llvm module). These tests +are driven by the DejaGNU testing framework, which is hidden behind a +few simple makefiles.

-

These code fragments are not complete programs. The code generated from them is -never executed to determine correct behavior.

+

These code fragments are not complete programs. The code generated +from them is never executed to determine correct behavior.

These code fragment tests are located in the llvm/test directory.

@@ -251,10 +235,18 @@ programs), first checkout and setup the test-suite module:

% cd .. % ./configure --with-llvmgccdir=$LLVM_GCC_DIR -

where $LLVM_GCC_DIR is the directory where you installed -llvm-gcc, not it's src or obj dir.

+

where $LLVM_GCC_DIR is the directory where +you installed llvm-gcc, not it's src or obj +dir. The --with-llvmgccdir option assumes that +the llvm-gcc-4.2 module was configured with +--program-prefix=llvm-, and therefore that the C and C++ +compiler drivers are called llvm-gcc and llvm-g++ +respectively. If this is not the case, +use --with-llvmgcc/--with-llvmgxx to specify each +executable's location.

+

Then, run the entire test suite by running make in the test-suite directory:

@@ -448,6 +440,11 @@ that subdirectory.

+

If your system includes GNU grep, make sure +that GREP_OPTIONS is not set in your environment. Otherwise, +you may get invalid results (both false positives and false +negatives).

+ @@ -746,6 +743,8 @@ test suite creates temporary files during execution.

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

+ +
Configuring External Tests
diff --git a/test/Makefile b/test/Makefile index 82422b551d7..e02daa07254 100644 --- a/test/Makefile +++ b/test/Makefile @@ -22,6 +22,10 @@ include Makefile.tests # DejaGNU testing support #===------------------------------------------------------------------------===# +ifneq ($(GREP_OPTIONS),) +$(warning GREP_OPTIONS environment variable may interfere with test results) +endif + ifdef VERBOSE RUNTESTFLAGS := $(VERBOSE) endif -- 2.34.1