[PATCH] 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)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:33 +0000 (14:49 -0700)
d1/d17a2f33c8433809d9d1add155b4f5af933dc3 [new file with mode: 0644]

diff --git a/d1/d17a2f33c8433809d9d1add155b4f5af933dc3 b/d1/d17a2f33c8433809d9d1add155b4f5af933dc3
new file mode 100644 (file)
index 0000000..e0f619e
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 470F96DE0ACD\r
+ for <notmuch@notmuchmail.org>; Fri, 11 Sep 2015 13:44:11 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.193\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.193 tagged_above=-999 required=5 tests=[AWL=0.733, \r
+ RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id NITcsbMt4lMV for <notmuch@notmuchmail.org>;\r
+ Fri, 11 Sep 2015 13:44:09 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id C5B656DE09FB\r
+ for <notmuch@notmuchmail.org>; Fri, 11 Sep 2015 13:44:08 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id B56BE1001E5; Fri, 11 Sep 2015 23:44:12 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] make test: NOTMUCH_TEST_QUIET=1 is now the default\r
+Date: Fri, 11 Sep 2015 23:44:11 +0300\r
+Message-Id: <1442004251-32325-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 2.0.0\r
+Cc: tomi.ollila@iki.fi\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 11 Sep 2015 20:44:11 -0000\r
+\r
+make test V=1 (or any other value than 0) and make test V=0\r
+works similar way as build in general\r
+---\r
+\r
+This is 2nd try: In first one I changed test-lib.sh -- there problem\r
+was the precedence between command line argument and NOTMUCH_TEST_QUIET\r
+environment variable. Here I don't see a problem there (although\r
+env NOTMUCH_TEST_QUIET=1 make test V=1 will make environment variable\r
+overrule the V=1 -- I am not sure who cares, though :D)\r
+\r
+Anyway, Someone(TM) may have better solution in mind, so let's\r
+get bikeshedding going!\r
+\r
+ test/Makefile.local | 10 ++++++++++\r
+ 1 file changed, 10 insertions(+)\r
+\r
+diff --git a/test/Makefile.local b/test/Makefile.local\r
+index 2331ceb..2b18691 100644\r
+--- a/test/Makefile.local\r
++++ b/test/Makefile.local\r
+@@ -56,7 +56,17 @@ TEST_BINARIES := $(TEST_BINARIES:.cc=)\r
+ test-binaries: $(TEST_BINARIES)\r
\r
+ test: all test-binaries\r
++ifeq ($V,)\r
++      @echo 'Use "$(MAKE) V=1" to print test headings and PASSIng results.'\r
++      @env NOTMUCH_TEST_QUIET=1 ${test_src_dir}/notmuch-test $(OPTIONS)\r
++else\r
++# The user has explicitly enabled quiet execution.\r
++ifeq ($V,0)\r
++      @env NOTMUCH_TEST_QUIET=1 ${test_src_dir}/notmuch-test $(OPTIONS)\r
++else\r
+       @${test_src_dir}/notmuch-test $(OPTIONS)\r
++endif\r
++endif\r
\r
+ check: test\r
\r
+-- \r
+2.4.3\r
+\r