alexp via llvm-dev
2019-Jan-24 17:42 UTC
[llvm-dev] Is ist a good idea to use lit and other test tools for non llvm projects?
Hi, I have a project which uses llvm, but is (at least not yet) a contribution / not in the source tree of llvm. Is it a good idea (e.g. instead of using boost test framework) to use the llvm testsuite related tools in this case? Alex
David Greene via llvm-dev
2019-Jan-24 20:17 UTC
[llvm-dev] Is ist a good idea to use lit and other test tools for non llvm projects?
alexp via llvm-dev <llvm-dev at lists.llvm.org> writes:> I have a project which uses llvm, but is (at least not yet) a > contribution / not in the source tree of llvm. > Is it a good idea (e.g. instead of using boost test framework) to use > the llvm testsuite related tools in this case?That probably depends on the project, but I've long wished LLVM's testing tools were available outside of LLVM, packaged up separately so they could be more widely used. They're great tools! -David
whitequark via llvm-dev
2019-Jan-24 20:20 UTC
[llvm-dev] Is ist a good idea to use lit and other test tools for non llvm projects?
On 2019-01-24 20:17, David Greene via llvm-dev wrote:> alexp via llvm-dev <llvm-dev at lists.llvm.org> writes: > >> I have a project which uses llvm, but is (at least not yet) a >> contribution / not in the source tree of llvm. >> Is it a good idea (e.g. instead of using boost test framework) to use >> the llvm testsuite related tools in this case? > > That probably depends on the project, but I've long wished LLVM's > testing tools were available outside of LLVM, packaged up separately so > they could be more widely used. They're great tools!lit is, in fact, packaged separately--it is available on PyPI. FileCheck isn't; there is a similar tool on PyPI, called OutputCheck, which I have used extensively for similar jobs (matching compiler IR) but I like it much less than FileCheck. -- whitequark
alexp via llvm-dev
2019-Jan-26 16:50 UTC
[llvm-dev] Is ist a good idea to use lit and other test tools for non llvm projects?
Yes, lit can be used either from a compiled llvm package or even be installed (its in bin/llvm-lit). I decided to give it a try. Alex On 1/24/19 6:42 PM, alexp via llvm-dev wrote:> Hi, > > I have a project which uses llvm, but is (at least not yet) a > contribution / not in the source tree of llvm. > Is it a good idea (e.g. instead of using boost test framework) to use > the llvm testsuite related tools in this case? > > Alex > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >
alexp via llvm-dev
2019-Feb-26 12:41 UTC
[llvm-dev] Is ist a good idea to use lit and other test tools for non llvm projects?
After of few week of applying my regression test set-up, I wanted to state that I use lit and FileCheck (which are both found in the llvmBuild/bin dir). Works like a charm, and I will use it in future, even for non llvm related projects. Alex On 1/24/19 6:42 PM, alexp via llvm-dev wrote:> Hi, > > I have a project which uses llvm, but is (at least not yet) a > contribution / not in the source tree of llvm. > Is it a good idea (e.g. instead of using boost test framework) to use > the llvm testsuite related tools in this case? > > Alex > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >
Seemingly Similar Threads
- Is ist a good idea to use lit and other test tools for non llvm projects?
- llvm-lit output directory - role?
- [LLVMdev] Getting FileCheck's colored output through lit (& possibly ninja)
- [LLVMdev] make check-lit + grep escape characters
- can llvm-lit pass output of one RUN command as an argument to another RUN command