From d72b3ceb6b576abda52c5d07a602f546c351e67b Mon Sep 17 00:00:00 2001 From: Daniel Malea Date: Tue, 28 May 2013 19:14:44 +0000 Subject: [PATCH] Add instructions for running LLDB tests with non-default compiler/architectures - documented the cmake variable LLDB_TEST_ARGS llvm-svn: 182797 --- lldb/www/build.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lldb/www/build.html b/lldb/www/build.html index e10e7abe9ad6..89b413bde75b 100755 --- a/lldb/www/build.html +++ b/lldb/www/build.html @@ -183,6 +183,15 @@

If you wish to build a release version of LLDB, run configure with the --enable-optimized flag.

Testing

+

By default, the check-lldb target builds the 64-bit variants of the test programs with the same + compiler that was used to build LLDB. It is possible to customize the architecture and compiler by appending -A and + -C options respectively to the CMake variable LLDB_TEST_ARGS. For example, to test LLDB against 32-bit binaries + built with a custom version of clang, do:

+ +
> cmake -DLLDB_TEST_ARGS="-A i386 -C /path/to/custom/clang" -G Ninja +
> ninja check-lldb +
+

Note that multiple -A and -C flags can be specified to LLDB_TEST_ARGS.

In addition to running all the LLDB test suites with the "check-lldb" CMake target above, it is possible to run individual LLDB tests. For example, to run the test cases defined in TestInferiorCrashing.py, run: