<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">You'll probably have better chance on the cfe-dev mailing-list<div class="">(LLVM-dev to BCC).</div><div class=""><br class=""></div><div class="">-- </div><div class="">Mehdi</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Feb 9, 2016, at 12:07 PM, Sidney San Martín via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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 class=""><br class=""></div><div class="">- First, I followed the instructions at <a href="http://clang.llvm.org/hacking.html#testingNonWindows" class="">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 class=""><br class=""></div><div class="">- 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 class=""><br class=""></div><div class="">- Finally, I found <a href="http://clang.llvm.org/extra/clang-tidy/#testing-checks" class="">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 class=""><br class=""></div><div class="">What should I be doing instead?</div></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class=""></div></blockquote></div><br class=""></div></body></html>