<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 4, 2018 at 8:14 AM, Eli Davis <span dir="ltr"><<a href="mailto:eli@aarno-labs.com" target="_blank">eli@aarno-labs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Ah, that makes a lot of sense. Thank you! Do you have any tips
      (or points to documentation) for how to run compiler-rt tests?
      Just invoking llvm-lit doesn't seem to work<br></p></div></blockquote><div><br></div><div>They should run as part of check-all when you have compiler-rt checked out in llvm/projects/ (or the equivalent with the monorepo setup, which I think is just setting the appropriate LLVM_EXTERNAL_*_SOURCE_DIR cmake variable).</div><div>I forget, but I'd be surprised if there isn't a "check-compiler-rt" or similar. I've also used llvm-lit in the past (look at what check-compiler-rt does; I think it just calls llvm-lit).</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><p>
    </p><div><div class="h5">
    <br>
    <div class="m_5990643758475129001moz-cite-prefix">On 01/03/2018 11:17 PM, Sean Silva
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Typically this would be tested alongside the
        runtime component in compiler-rt.
        <div>For example, PGO instrumentation has its "end-to-end" tests
          in <a href="https://github.com/llvm-mirror/compiler-rt/tree/master/test/profile" target="_blank">https://github.com/llvm-<wbr>mirror/compiler-rt/tree/<wbr>master/test/profile</a></div>
        <div><br>
        </div>
        <div>-- Sean Silva</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jan 2, 2018 at 11:16 AM, Eli
          Davis via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
            <br>
            I am writing an instrumentation pass using LLVM. I have unit
            tests using llvm-lit in the style of the tests in llvm/test
            to make sure the IR changes show up in the correct place. I
            would also like to have some end-to-end tests that start
            from a .c file, compile the program, run it, and check the
            output.<br>
            <br>
            I imagine I could do this as a test in the same style, but
            I'm wondering if that's the llvm-correct way of doing it.
            Can anyone advise?<br>
            <br>
            Thank you!<br>
            <br>
            Eli<br>
            <br>
            ______________________________<wbr>_________________<br>
            LLVM Developers mailing list<br>
            <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
            <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div></div>