From f287f01cd11bef94ff90433d2dfe27b78c0f9f4c Mon Sep 17 00:00:00 2001
From: NAKAMURA Takumi
Date: Wed, 9 Feb 2011 04:19:28 +0000
Subject: [PATCH] Add testing stuff to CMake documents.
- Note "GnuWin32".
- Note LLVM_LIT_TOOLS_DIR
- Now we can run tests on VS w/e all tests might pass or not!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125177 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/CMake.html | 8 +++++++-
docs/GettingStartedVS.html | 12 +++++++++++-
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/docs/CMake.html b/docs/CMake.html
index fc729af1740..e303d132b59 100644
--- a/docs/CMake.html
+++ b/docs/CMake.html
@@ -339,6 +339,12 @@
on Visual C++ and Xcode,
"-sv" on others.
+ LLVM_LIT_TOOLS_DIR:STRING
+ The path to GnuWin32 tools for tests. Valid on Windows host.
+ Defaults to "", then Lit seeks tools according to %PATH%.
+ Lit can find tools(eg. grep, sort, &c) on LLVM_LIT_TOOLS_DIR at first,
+ without specifying GnuWin32 to %PATH%.
+
LLVM_ENABLE_FFI:BOOL
Indicates whether LLVM Interpreter will be linked with Foreign
Function Interface library. If the library or its headers are
@@ -364,7 +370,7 @@
make check
-Testing is not supported on Visual Studio.
+On Visual Studio, you may run tests to build the project "check".
diff --git a/docs/GettingStartedVS.html b/docs/GettingStartedVS.html
index 96b7bfe928b..7417f4aaa9b 100644
--- a/docs/GettingStartedVS.html
+++ b/docs/GettingStartedVS.html
@@ -112,7 +112,8 @@
If you would like to run the LLVM tests you will need
Python. Versions 2.4-2.7 are known to
- work.
+ work. You will need "GnuWin32"
+ tools, too.
Do not install the LLVM directory tree into a path containing spaces (e.g.
C:\Documents and Settings\...) as the configure step will fail.
@@ -191,6 +192,15 @@
program will print the corresponding fibonacci value.
+ Test LLVM on Visual Studio:
+
+ - If %PATH% does not contain GnuWin32, you may specify LLVM_LIT_TOOLS_DIR
+ on CMake for the path to GnuWin32.
+ - You can run LLVM tests to build the project "check".
+
+
+
+
Test LLVM:
- The LLVM tests can be run by cding to the llvm source directory