<div dir="ltr"><div class="gmail_extra"><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></blockquote><div><br></div><div>It would be nice to fix it, but for now there is a workaround:</div><div>$ cd /path/to/build/tree</div><div>$ ./bin/llvm-lit projects/compiler-rt/test/profile</div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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></blockquote><div><br></div><div>Yep, compiler-rt test suite is not ported to Makefile build.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Thanks for any pointers!<br>
<span class="HOEnZb"><font color="#888888"><br>
Duncan<br>
<br>
</font></span><br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div>
</div></div>