]> git.notmuchmail.org Git - notmuch/commitdiff
make test: NOTMUCH_TEST_QUIET=1 is now the default
authorTomi Ollila <tomi.ollila@iki.fi>
Fri, 11 Sep 2015 20:44:11 +0000 (23:44 +0300)
committerDavid Bremner <david@tethera.net>
Fri, 25 Sep 2015 11:00:18 +0000 (08:00 -0300)
make test V=1 (or any other value than 0) and make test V=0
works similar way as build in general

test/Makefile.local

index 2331ceb15e33d2733c79187c413601484c2bbd67..2b18691403aaa101ab81878c22f957eb1a1f034b 100644 (file)
@@ -56,7 +56,17 @@ TEST_BINARIES := $(TEST_BINARIES:.cc=)
 test-binaries: $(TEST_BINARIES)
 
 test:  all test-binaries
+ifeq ($V,)
+       @echo 'Use "$(MAKE) V=1" to print test headings and PASSIng results.'
+       @env NOTMUCH_TEST_QUIET=1 ${test_src_dir}/notmuch-test $(OPTIONS)
+else
+# The user has explicitly enabled quiet execution.
+ifeq ($V,0)
+       @env NOTMUCH_TEST_QUIET=1 ${test_src_dir}/notmuch-test $(OPTIONS)
+else
        @${test_src_dir}/notmuch-test $(OPTIONS)
+endif
+endif
 
 check: test