[llvm-dev] [clang] Running a single testcase
George Karpenkov via llvm-dev
llvm-dev at lists.llvm.org
Tue May 8 11:15:44 PDT 2018
Hi,
> On May 6, 2018, at 5:10 AM, Sedat Dilek via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> What am I missing?
> What do I need to run a single clang testcase?
I might be missing some context here, but to address a very similar problem I have introduced an environment variable LIT_FILTER.
So if you want to run the test blah.test, you could run
$ env LIT_FILTER=blah.test ninja check-clang
I have found that much easier than trying to invoke clang directly.
George
>
> Thanks in advance.
>
> Regards,
> - Sedat -
>
> [1] https://github.com/llvm-mirror/clang/raw/master/test/Sema/asm.c
> [2] https://llvm.org/docs/CommandGuide/lit.html
> [3] https://llvm.org/docs/TestingGuide.html
> [4] https://llvm.org/docs/TestSuiteMakefileGuide.html
> [5] http://clang.llvm.org/hacking.html
> [6] http://clang.llvm.org/hacking.html#testingCommands
> <TestingConfig.py><lit.cfg.py><lit.site.cfg.py.in>_______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list