<div dir="ltr">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><br></div><div>- First, I followed the instructions atĀ <a href="http://clang.llvm.org/hacking.html#testingNonWindows">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">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></div>