[PATCH] InstrProf: Add initial compiler-rt test

Duncan P. N. Exon Smith dexonsmith at apple.com
Thu Mar 27 16:39:22 PDT 2014

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.

    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

Thanks for any pointers!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: instrprof-tests.patch
Type: application/octet-stream
Size: 5399 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140327/7c3b1d5a/attachment.obj>

More information about the llvm-commits mailing list