How to run the tests of clang

Hi,all:
i want run the test below <llvm_src>/tools/clang/test/CodeGenOpenCL,but i got a error when i use command line like this:
./llvm-lit <llvm_src>/tools/clang/test/CodeGenOpenCL/address-spaces.cl
if anyone can tell me how to run the tests?
thanks!

regard,
ccwang

Wang,

llvm-lit is supposed to run on the top of build directory, and it
should be located in "bin" directory.
Of course, you should build the tree in advance.

$ Release+Asserts/bin/llvm-lit -v tools/clang/test
/path/to/clang-srcdir/test/CodeGenOpenCL/address-spaces.cl
(or bin/llvm-lit, if you are using cmake)

...Takumi

hi,Takumi:
Thanks for your help,and now i can work well with your method.

regrard,
ccwang