[cfe-dev] [check-clang][lit] can I just run my own test case in when using `make check-clang`?

Yafei Liu via cfe-dev cfe-dev at lists.llvm.org
Sun Nov 8 19:19:09 PST 2020


Weird thing is that if I run ./bin/llvm-lit -v
./tools/clang/test/Sema/asm.c, it works

But if I run ./bin/llvm-lit -v
./tools/clang/test/Frontend/plugin-attribute.cpp it says
UNSUPPORTED: Clang :: Frontend/plugin-attribute.cpp (1 of 1)


On Mon, Nov 9, 2020 at 11:05 AM Yafei Liu <yfliu at mobvoi.com> wrote:

> I worte a reguation test and want to check if my code works, but it seems
> that I have to run `make check-clang`, and it will run all the tests
> belongs to check-clang, which takes a lot of times.
>
> Since the test case is a cpp file and build into a bin with other tests
> (correct if I'm wrong), I can't use things like llvm-lit
> llvm-project/clang/test/Frontend/mytest.cpp
>
> So anyway I can run "mytest" singlely?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20201109/fe0a2353/attachment.html>


More information about the cfe-dev mailing list