]> git.notmuchmail.org Git - notmuch/commitdiff
Makefile: Add a "make test" target.
authorCarl Worth <cworth@cworth.org>
Thu, 15 Apr 2010 21:56:21 +0000 (14:56 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 15 Apr 2010 21:56:21 +0000 (14:56 -0700)
I just wasted far too much time looking for a bug that wasn't actually
there only because I hadn't recompiled before running the test
suite. Now we can take advantage of actual dependency information to
force a rebuild for "make test".

Makefile.local

index 4a8142f03e6c9810a5d23d046ef5cbac90c74406..fed32c071c82eee9be8039e7c68729f317d3015c 100644 (file)
@@ -45,6 +45,10 @@ ifeq ($(shell cat .first-build-message),)
 endif
 endif
 
+.PHONY: test
+test: all
+       @./test/notmuch-test
+
 $(TAR_FILE):
        git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ HEAD > $(TAR_FILE).tmp
        echo $(VERSION) > version