<div dir="ltr">+samsonov</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 3:39 AM, Duncan P. N. Exon Smith <span dir="ltr"><<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This patch adds the infrastructure for compiler-rt tests for instrumented profiling.<br>
It also adds a single very simple test.<br>
<br>
I’m a little lost with lit and cmake; could someone who knows better have a look to<br>
make sure I have the right magic?<br>
<br>
I copied and modified the logic from the test/asan/ directory.<br>
<br>
There are two things that don’t (or probably don’t) work.<br>
<br>
 1. You cannot call:<br>
<br>
        $ cd llvm/projects/compiler-rt<br>
        $ path/to/llvm-lit test/profile<br>
<br>
    The other compiler-rt tests seem to have the same defect, and I’m not sure how<br>
    to fix it.<br>
<br>
    Nevertheless, using cmake+ninja, you can call:<br>
<br>
        $ ninja check-profile<br>
<br>
 2. I didn’t do anything with configure+make, since the other tests in compiler-rt<br>
    didn’t have a model I could copy.  So the tests probably aren’t registered<br>
    there.<br>
<br>
Thanks for any pointers!<br>
<span class="HOEnZb"><font color="#888888"><br>
Duncan<br>
<br>
</font></span></blockquote></div><br></div>