[cfe-dev] Run tests after building with CMake and Xcode?
aikavanak at gmail.com
Sun Sep 19 04:25:04 CDT 2010
Thank you for the quick & informative reply, Óscar.
> tools/clang/tests/CMakeLists.txt configures the paths for lit. The key
> variable is LLVM_TOOLS_DIR.
This variable is defined in terms of LLVM_TOOLS_BINARY_DIR,
and I haven't been able to figure out where that one gets set, either.
Even so, I suspect LLVM_TOOLS_DIR is correct, based on the
output I'm getting (see below).
> If you can't figure out the problem please show the piece of output that
> makes you think that the test scripts are looking at the wrong directory
> for executing clang, plus version numbers, etc.
Here's the output from running the tests, through the first failure:
(Note: /Users/Ryan/llvm-xcode is where CMake put its output,
and /Users/Ryan/llvm is the unmodified SVN checkout folder.)
Running Clang regression tests
/usr/bin/python2.6 /Users/Ryan/llvm/utils/lit/lit.py --param
--param build_config=Debug -sv --no-progress-bar
lit.py: lit.cfg:129: note: using clang: '/Users/Ryan/llvm-xcode/bin/Debug/clang'
-- Testing: 2552 tests, 2 threads --
FAIL: Clang :: Index/code-complete-errors.c (1155 of 2552)
******************** TEST 'Clang :: Index/code-complete-errors.c'
Exit Code: 1
Command Output (stderr):
error: expected string not found in input
_Complex cd; // CHECK: code-complete-errors.c:1:1: warning: plain
'_Complex' requires a type specifier; assuming '_Complex double'
<stdin>:1:1: note: scanning from here
fatal error: error invoking
-fsyntax-only -Xclang -code-completion-at -Xclang
-Xclang -no-code-completion-debug-printer -Xclang
-pedantic : /Users/Ryan/llvm-xcode/lib/Debug/../bin/clang is not
It's the "error invoking /Users/Ryan/llvm-xcode/lib/Debug/../bin/clang"
part that led me to believe the path was set up incorrectly. Notice that
the "note: using clang ..." in the beginning of the output has the
There are 34 more failures like this, most with the same error. A few fail
with just "expected string not found in input," and no "error invoking ..."
I'm using r114308 of LLVM & Clang, CMake 2.8-2, and Xcode 3.2.4.
I used the default configuration in CMake when generating the
More information about the cfe-dev