]> git.notmuchmail.org Git - notmuch/commitdiff
test: add test-binaries target
authorDavid Bremner <bremner@debian.org>
Sat, 3 Dec 2011 22:05:08 +0000 (14:05 -0800)
committerDavid Bremner <bremner@debian.org>
Tue, 6 Dec 2011 13:37:44 +0000 (09:37 -0400)
The goal here is to have a simple way of making sure all of the
binaries needed to run tests are available.

test/Makefile.local
test/README

index 646779e19fb7af0ba195d3bf601723d9ffbbc3bb..bffbbdbdc0e2aa797b8895baef4049fab9a59003 100644 (file)
@@ -15,7 +15,10 @@ $(dir)/symbol-test: $(dir)/symbol-test.o
        $(call quiet,CC) $^ -o $@ -Llib -lnotmuch -lxapian
 
 .PHONY: test check
-test:  all $(dir)/smtp-dummy $(dir)/symbol-test
+
+test-binaries: $(dir)/smtp-dummy $(dir)/symbol-test
+
+test:  all test-binaries
        @${dir}/notmuch-test $(OPTIONS)
 
 check: test
index 2481f16d1ebefac322f855ef2c8b043a17988185..2e757e0eeca8d1c7641848bbb744ee681008fb9c 100644 (file)
@@ -13,7 +13,8 @@ notmuch-test script). Either command will run all available tests.
 
 Alternately, you can run a specific subset of tests by simply invoking
 one of the executable scripts in this directory, (such as ./search,
-./reply, etc.)
+./reply, etc). Note that you will probably want "make test-binaries"
+before running individual tests.
 
 The following command-line options are available when running tests: