[PATCH] InstrProf: Add initial compiler-rt test

Alexey Samsonov samsonov at google.com
Fri Mar 28 09:05:18 PDT 2014


On Fri, Mar 28, 2014 at 3:39 AM, Duncan P. N. Exon Smith <
dexonsmith at apple.com> wrote:

> This patch adds the infrastructure for compiler-rt tests for instrumented
> profiling.
> It also adds a single very simple test.
>
> I’m a little lost with lit and cmake; could someone who knows better have
> a look to
> make sure I have the right magic?
>
> I copied and modified the logic from the test/asan/ directory.
>
> There are two things that don’t (or probably don’t) work.
>
>  1. You cannot call:
>
>         $ cd llvm/projects/compiler-rt
>         $ path/to/llvm-lit test/profile
>
>     The other compiler-rt tests seem to have the same defect, and I’m not
> sure how
>     to fix it.
>

It would be nice to fix it, but for now there is a workaround:
$ cd /path/to/build/tree
$ ./bin/llvm-lit projects/compiler-rt/test/profile


>
>     Nevertheless, using cmake+ninja, you can call:
>
>         $ ninja check-profile
>
>  2. I didn’t do anything with configure+make, since the other tests in
> compiler-rt
>     didn’t have a model I could copy.  So the tests probably aren’t
> registered
>     there.
>

Yep, compiler-rt test suite is not ported to Makefile build.


>
> Thanks for any pointers!
>
> Duncan
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>


-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140328/ca20fe76/attachment.html>


More information about the llvm-commits mailing list