<div dir="ltr">With CMake you go into your "build" directory (where you build the system) and run<div><br></div><div>"make check-clang-tools"</div><div><br></div><div>Also "make clang-tidy" will just rebuild clang-tidy<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 9, 2016 at 3:23 PM, Sidney San MartÃn <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-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"><div dir="ltr"><div>(Reposted from llvm-dev)</div><span class=""><div><br></div><div>I came to the recent LLVM/Clang hackathon and made a new checker for clang-tidy. I'm working on wrapping up and submitting my patch, and I can't seem to run the tests.</div><div><br></div><div>- First, I followed the instructions at <a href="http://clang.llvm.org/hacking.html#testingNonWindows" target="_blank">http://clang.llvm.org/hacking.html#testingNonWindows</a>. I ran `make test` in my build directory, and also tried running `make` in the `test` subdirectory. They both exited in under a second with no output.</div><div><br></div><div>- Then, I tried doing the same thing in the `tools/clang/tools/extra` subdirectory of my build directory, where clang-tidy lives. Same result.</div><div><br></div><div>- Finally, I found <a href="http://clang.llvm.org/extra/clang-tidy/#testing-checks" target="_blank">http://clang.llvm.org/extra/clang-tidy/#testing-checks</a>. This explains how to create tests but not how to run them. I made a relatively wonky command line that seems to run my test successfully (along the lines of `PATH=$PATH:$BUILD_DIR/bin ./check_clang_tidy.py ../../test/clang-tidy/misc-my-check.cpp misc-my-check /tmp/foo.tmp`), but it doesn't feel right.</div><div><br></div><div>What should I be doing instead?</div></span></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Tim Halloran<br>SureLogic, Inc.<br>5808 Forbes Avenue, Pittsburgh PA 15217-1602<br>(412) 722-3338</div>
</div></div></div>