Johan Engelen via llvm-dev
2019-Oct-31 22:32 UTC
[llvm-dev] How to run single compiler-rt test in monorepo?
Hello all, I am having trouble running only a single lit-based test of compiler-rt. 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. For LLVM I can do the following:> cd build/buildtrunk/test > ../bin/llvm-lit --show-tests .And it shows all tests discovered of the llvm main library, but not tests of for example clang or compiler-rt. Running a single test works aswell:> ../bin/llvm-lit -v tools/yaml2obj/versym-section.yaml-- Testing: 1 tests, 1 workers -- PASS: LLVM :: tools/yaml2obj/versym-section.yaml (1 of 1) ... 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. What is are command / How do I run a single lit-based compiler-rt test? Thanks a lot, Johan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191031/15f62291/attachment.html>
Vitaly Buka via llvm-dev
2019-Oct-31 22:44 UTC
[llvm-dev] How to run single compiler-rt test in monorepo?
I usually run single tests (compiler-rt and LLVM) as LIT_FILTER=<testname> ninja check-<component> On Thu, Oct 31, 2019 at 3:33 PM Johan Engelen via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello all, > I am having trouble running only a single lit-based test of compiler-rt. > 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. > > For LLVM I can do the following: > > cd build/buildtrunk/test > > ../bin/llvm-lit --show-tests . > And it shows all tests discovered of the llvm main library, but not tests > of for example clang or compiler-rt. > Running a single test works aswell: > > ../bin/llvm-lit -v tools/yaml2obj/versym-section.yaml > -- Testing: 1 tests, 1 workers -- > PASS: LLVM :: tools/yaml2obj/versym-section.yaml (1 of 1) > ... > > 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. > > What is are command / How do I run a single lit-based compiler-rt test? > > Thanks a lot, > Johan > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191031/a5235826/attachment.html>
Vedant Kumar via llvm-dev
2019-Oct-31 23:30 UTC
[llvm-dev] How to run single compiler-rt test in monorepo?
It's also possible to run lit on a test directory that's constructed within the build dir, e.g.: ~/src/builds/llvm-project-master-RA (0) $ ./bin/llvm-lit projects/compiler-rt/test/profile/Profile-x86_64h/instrprof-basic.c vedant> On Oct 31, 2019, at 3:44 PM, Vitaly Buka via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I usually run single tests (compiler-rt and LLVM) as > LIT_FILTER=<testname> ninja check-<component> > > On Thu, Oct 31, 2019 at 3:33 PM Johan Engelen via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: > Hello all, > I am having trouble running only a single lit-based test of compiler-rt. > 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. > > For LLVM I can do the following: > > cd build/buildtrunk/test > > ../bin/llvm-lit --show-tests . > And it shows all tests discovered of the llvm main library, but not tests of for example clang or compiler-rt. > Running a single test works aswell: > > ../bin/llvm-lit -v tools/yaml2obj/versym-section.yaml > -- Testing: 1 tests, 1 workers -- > PASS: LLVM :: tools/yaml2obj/versym-section.yaml (1 of 1) > ... > > 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. > > What is are command / How do I run a single lit-based compiler-rt test? > > Thanks a lot, > Johan > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org> > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev> > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191031/af6e5ec2/attachment-0001.html>
Possibly Parallel Threads
- ASAN not finding any bugs?
- Targeting old glibc
- ASAN not finding any bugs?
- Commit history duplicated, seeing weird diffusion activity (Was: [Diffusion] rG67c416dc9a5a: [DebugInfo] Allow spill slots in call site parameter descriptions)
- [yaml2obj] GSoC-20: Add DWARF support to yaml2obj