[PATCH v3 01/13] test: Include generated dependencies for test sources
authorAustin Clements <amdragon@MIT.EDU>
Fri, 1 Aug 2014 02:09:51 +0000 (22:09 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:00 +0000 (10:04 -0800)
df/43557f27eab23e8a25690c75842f14336b0536 [new file with mode: 0644]

diff --git a/df/43557f27eab23e8a25690c75842f14336b0536 b/df/43557f27eab23e8a25690c75842f14336b0536
new file mode 100644 (file)
index 0000000..c67ba80
--- /dev/null
@@ -0,0 +1,126 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 214EA431FD9\r
+       for <notmuch@notmuchmail.org>; Thu, 31 Jul 2014 19:10:23 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 2oU087MueSfS for <notmuch@notmuchmail.org>;\r
+       Thu, 31 Jul 2014 19:10:17 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-8.mit.edu (dmz-mailsec-scanner-8.mit.edu\r
+       [18.7.68.37])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A6B6F431FBD\r
+       for <notmuch@notmuchmail.org>; Thu, 31 Jul 2014 19:10:11 -0700 (PDT)\r
+X-AuditID: 12074425-f79766d000006da8-5d-53daf702d9e7\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+       (using TLS with cipher AES256-SHA (256/256 bits))\r
+       (Client did not present a certificate)\r
+       by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id AA.2B.28072.207FAD35; Thu, 31 Jul 2014 22:10:10 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id s712AAvQ010401; \r
+       Thu, 31 Jul 2014 22:10:10 -0400\r
+Received: from drake.dyndns.org\r
+       (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+       [216.15.114.40]) (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s712A6vo029971\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Thu, 31 Jul 2014 22:10:08 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1XD2IH-00033U-Qp; Thu, 31 Jul 2014 22:10:05 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v3 01/13] test: Include generated dependencies for test\r
+ sources\r
+Date: Thu, 31 Jul 2014 22:09:51 -0400\r
+Message-Id: <1406859003-11561-2-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 2.0.0\r
+In-Reply-To: <1406859003-11561-1-git-send-email-amdragon@mit.edu>\r
+References: <1406859003-11561-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFtrNIsWRmVeSWpSXmKPExsUixG6nrsv0/VawwfIpNhar5/JYXL85k9mB\r
+       yWPnrLvsHs9W3WIOYIrisklJzcksSy3St0vgyuj9dpCx4Bp3xaTJE1kbGHdwdjFyckgImEi0\r
+       /dnGBmGLSVy4tx7I5uIQEpjNJPHi0AMWCGcjo8SEW73sEM4dJomVFy+zgrQICcxllJj3ihfE\r
+       ZhPQkNi2fzkjiC0iIC2x8+5ssBpmAUeJz/sXAY3l4BAW8JdY9lYZJMwioCrxctp3dhCbV8BB\r
+       4srRhawQV8hJNNz4BHYRJ1Dr/38LoFY5SLSe3so8gZF/ASPDKkbZlNwq3dzEzJzi1GTd4uTE\r
+       vLzUIl0LvdzMEr3UlNJNjOAwclHdwTjhkNIhRgEORiUeXofQW8FCrIllxZW5hxglOZiURHlt\r
+       PgKF+JLyUyozEosz4otKc1KLDzFKcDArifC+/ACU401JrKxKLcqHSUlzsCiJ8761tgoWEkhP\r
+       LEnNTk0tSC2CycpwcChJ8J75CtQoWJSanlqRlplTgpBm4uAEGc4DNFzoG8jw4oLE3OLMdIj8\r
+       KUZFKXHePSDNAiCJjNI8uF5YnL9iFAd6RZj3IUgVDzBFwHW/AhrMBDT4+a3rIINLEhFSUg2M\r
+       cx6l39aZ96nFq7fStM91G5NFRazy6/CezGbfH5w29mceZe2UlHnWY/tx9beZGqypcitOCgSt\r
+       Uv5ozXg1uvNb1hvX++yPXLdc+6d0f8PHCY/6+ll4s/8f4ahRsFk2a2malNOeN2/6Xy60rG8y\r
+       /yu1xLWFjUHg58xrtzvzNgpH5WSe8ne9v5dBiaU4I9FQi7moOBEABXjOnM4CAAA=\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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, 01 Aug 2014 02:10:23 -0000\r
+\r
+Previously the build system was generating automatic header\r
+dependencies for test sources, but only smtp-dummy was in SRCS, so\r
+only its dependencies were being included.  Add all of the test\r
+sources to SRCS so that the root Makefile.local includes their\r
+dependencies.\r
+---\r
+ test/Makefile.local | 19 ++++++++++++-------\r
+ 1 file changed, 12 insertions(+), 7 deletions(-)\r
+\r
+diff --git a/test/Makefile.local b/test/Makefile.local\r
+index 1c85b18..916dd0b 100644\r
+--- a/test/Makefile.local\r
++++ b/test/Makefile.local\r
+@@ -37,12 +37,17 @@ $(dir)/parse-time: $(dir)/parse-time.o parse-time-string/parse-time-string.o\r
\r
+ .PHONY: test check\r
\r
+-TEST_BINARIES=$(dir)/arg-test \\r
+-            $(dir)/hex-xcode \\r
+-            $(dir)/random-corpus \\r
+-            $(dir)/parse-time \\r
+-            $(dir)/smtp-dummy \\r
+-            $(dir)/symbol-test\r
++test_main_srcs=$(dir)/arg-test.c \\r
++            $(dir)/hex-xcode.c \\r
++            $(dir)/random-corpus.c \\r
++            $(dir)/parse-time.c \\r
++            $(dir)/smtp-dummy.c \\r
++            $(dir)/symbol-test.cc \\r
++\r
++test_srcs=$(test_main_srcs) $(dir)/database-test.c\r
++\r
++TEST_BINARIES := $(test_main_srcs:.c=)\r
++TEST_BINARIES := $(TEST_BINARIES:.cc=)\r
\r
+ test-binaries: $(TEST_BINARIES)\r
\r
+@@ -51,7 +56,7 @@ test:        all test-binaries\r
\r
+ check: test\r
\r
+-SRCS := $(SRCS) $(smtp_dummy_srcs)\r
++SRCS := $(SRCS) $(test_srcs)\r
+ CLEAN += $(TEST_BINARIES) $(addsuffix .o,$(TEST_BINARIES)) \\r
+        $(dir)/database-test.o \\r
+        $(dir)/corpus.mail $(dir)/test-results $(dir)/tmp.*\r
+-- \r
+2.0.0\r
+\r