<div dir="ltr">Thanks Vitaly and Vedant.<div>Both methods worked for me.</div><div>The trick for running llvm-lit directly is to add the arch in the path (actually part of the directory structure inside the build folder, so I could have known).</div><div><br></div><div>cheers,</div><div>  Johan</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 1, 2019 at 12:30 AM Vedant Kumar <<a href="mailto:vedant_kumar@apple.com">vedant_kumar@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div>It's also possible to run lit on a test directory that's constructed within the build dir, e.g.:</div><div><br></div><div>~/src/builds/llvm-project-master-RA (0) $ ./bin/llvm-lit projects/compiler-rt/test/profile/Profile-x86_64h/instrprof-basic.c</div><div><br></div><div>vedant<br><div><br><blockquote type="cite"><div>On Oct 31, 2019, at 3:44 PM, Vitaly Buka via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br><div><div dir="ltr"><div>I usually run single tests (compiler-rt and LLVM) as</div>LIT_FILTER=<testname> ninja check-<component><br></div><br><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" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></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">Hello all,<br><div>  I am having trouble running only a single lit-based test of compiler-rt.</div><div>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><br></div><div>For LLVM I can do the following:</div><div>> cd build/buildtrunk/test</div><div>> ../bin/llvm-lit  --show-tests .<br></div><div>And it shows all tests discovered of the llvm main library, but not tests of for example clang or compiler-rt.</div><div>Running a single test works aswell:</div><div>> ../bin/llvm-lit -v tools/yaml2obj/versym-section.yaml<br>-- Testing: 1 tests, 1 workers --<br>PASS: LLVM :: tools/yaml2obj/versym-section.yaml (1 of 1)<br></div><div>...</div><div><br></div><div>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><br></div><div>What is are command / How do I run a single lit-based compiler-rt test?</div><div><br></div><div>Thanks a lot,</div><div>  Johan</div><div><br></div><div> </div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>
_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br></div></blockquote></div><br></div></div></blockquote></div>