Problem running clang-test when building with existing llvm install

Is there a way to successfully run "make clang-test" when building clang with an existing llvm install? I.e. without a full llvm source tree.

I have successfully built clang using the -DCLANG_PATH_TO_LLVM_BUILD option to cmake, and I got most of the tests to pass by:
1) changing the variable LLVM_TOOLS_BINARY_DIR in <llvm_install>/share/llvm/cmake/LLVMConfig.cmake to point into the installation rather than the non-existent build directory
2) putting FileCheck into the bin directory of the install

However, I still see many failures (the complete list is attached):

cmake -DCLANG_PATH_TO_LLVM_BUILD=../../llvm/install ..
make -j4
make -j4 clang-test
...
  Expected Passes : 3774
  Expected Failures : 26
  Unsupported Tests : 1
  Unexpected Failures: 184

All of the tests pass when using a full llvm source tree.

Ben Langmuir

failing_tests.txt (6.05 KB)

I guess "make clang-test" could not be available yet w/o LLVM build tree.

Please make sure;

1) where is "Lit"? Which version of Lit do you install?
2) Do you find "FileCheck" "count" "not" in your $PATH?

...Takumi

Please make sure;

1) where is "Lit"? Which version of Lit do you install?
2) Do you find "FileCheck" "count" "not" in your $PATH?

Thanks for the suggestions. I was missing count and not, and I was using an old version of lit. Now all of the tests pass as expected.

Ben Langmuir