<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">It's also possible to run lit on a test directory that's constructed within the build dir, e.g.:</div><div class=""><br class=""></div><div class="">~/src/builds/llvm-project-master-RA (0) $ ./bin/llvm-lit projects/compiler-rt/test/profile/Profile-x86_64h/instrprof-basic.c</div><div class=""><br class=""></div><div class="">vedant<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 31, 2019, at 3:44 PM, Vitaly Buka via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">I usually run single tests (compiler-rt and LLVM) as</div>LIT_FILTER=<testname> ninja check-<component><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 31, 2019 at 3:33 PM Johan Engelen via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Hello all,<br class=""><div class=""> I am having trouble running only a single lit-based test of compiler-rt.</div><div class="">My folder structure is: inside the llvm monorepo checkout, I have a dir "build" with subdir "buildtrunk". I ran cmake inside "buildtrunk" and also run ninja from there.</div><div class=""><br class=""></div><div class="">For LLVM I can do the following:</div><div class="">> cd build/buildtrunk/test</div><div class="">> ../bin/llvm-lit --show-tests .<br class=""></div><div class="">And it shows all tests discovered of the llvm main library, but not tests of for example clang or compiler-rt.</div><div class="">Running a single test works aswell:</div><div class="">> ../bin/llvm-lit -v tools/yaml2obj/versym-section.yaml<br class="">-- Testing: 1 tests, 1 workers --<br class="">PASS: LLVM :: tools/yaml2obj/versym-section.yaml (1 of 1)<br class=""></div><div class="">...</div><div class=""><br class=""></div><div class="">However whatever I try, I have not succeeded in having Lit discover the compiler-rt tests, and I didn't manage to run just one compiler-rt test. Information online is sparse, and I didn't find it there either.</div><div class=""><br class=""></div><div class="">What is are command / How do I run a single lit-based compiler-rt test?</div><div class=""><br class=""></div><div class="">Thanks a lot,</div><div class=""> Johan</div><div class=""><br class=""></div><div class=""> </div></div>
_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
</blockquote></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>