Re: [PATCH/RFC 0/3] Maildir custom flags and notmuch tags
[notmuch-archives.git] / 7b / 8372903fc4d090a76785d8ba94007a44300e35
1 Return-Path: <aidecoe@aidecoe.name>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id A3A52431FD0\r
6         for <notmuch@notmuchmail.org>; Fri, 25 Nov 2011 02:55:08 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 48oHSdduCzKG for <notmuch@notmuchmail.org>;\r
16         Fri, 25 Nov 2011 02:55:08 -0800 (PST)\r
17 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
18         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id DCE33431FB6\r
21         for <notmuch@notmuchmail.org>; Fri, 25 Nov 2011 02:55:07 -0800 (PST)\r
22 Received: by bkaq10 with SMTP id q10so4563796bka.26\r
23         for <notmuch@notmuchmail.org>; Fri, 25 Nov 2011 02:55:06 -0800 (PST)\r
24 Received: by 10.204.156.208 with SMTP id y16mr33403421bkw.72.1322218506424;\r
25         Fri, 25 Nov 2011 02:55:06 -0800 (PST)\r
26 Received: from localhost (abtw56.neoplus.adsl.tpnet.pl. [83.8.168.56])\r
27         by mx.google.com with ESMTPS id x14sm18440443bkf.10.2011.11.25.02.55.03\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Fri, 25 Nov 2011 02:55:05 -0800 (PST)\r
30 From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@aidecoe.name>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [PATCH 1/2] Build symbol-test with make instead of hardcoding in\r
33         symbol-hiding.\r
34 Date: Fri, 25 Nov 2011 11:54:51 +0100\r
35 Message-Id: <1322218492-8300-1-git-send-email-aidecoe@aidecoe.name>\r
36 X-Mailer: git-send-email 1.7.8.rc3\r
37 Cc: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@aidecoe.name>\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Fri, 25 Nov 2011 10:55:08 -0000\r
51 \r
52 If symbol-test is built in symbol-hiding with hardcoded g++ invokation,\r
53 it's not so easy to pass $(srcdir) which is required to find notmuch.h\r
54 when srcdir and builddir are separate directories.\r
55 ---\r
56  test/.gitignore     |    1 +\r
57  test/Makefile.local |    5 ++++-\r
58  test/basic          |    2 +-\r
59  test/symbol-hiding  |    3 +--\r
60  4 files changed, 7 insertions(+), 4 deletions(-)\r
61 \r
62 diff --git a/test/.gitignore b/test/.gitignore\r
63 index 9e97052..7e30e8d 100644\r
64 --- a/test/.gitignore\r
65 +++ b/test/.gitignore\r
66 @@ -1,4 +1,5 @@\r
67  test-results\r
68  corpus.mail\r
69  smtp-dummy\r
70 +symbol-test\r
71  tmp.*\r
72 diff --git a/test/Makefile.local b/test/Makefile.local\r
73 index 8eb0433..a672fd3 100644\r
74 --- a/test/Makefile.local\r
75 +++ b/test/Makefile.local\r
76 @@ -11,8 +11,11 @@ smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)\r
77  $(dir)/smtp-dummy: $(smtp_dummy_modules)\r
78         $(call quiet,CC) $^ -o $@\r
79  \r
80 +$(dir)/symbol-test: $(dir)/symbol-test.o\r
81 +       $(call quiet,CC) $^ -o $@ -Llib -lnotmuch -lxapian\r
82 +\r
83  .PHONY: test check\r
84 -test:  all $(dir)/smtp-dummy\r
85 +test:  all $(dir)/smtp-dummy $(dir)/symbol-test\r
86         @${dir}/notmuch-test $(OPTIONS)\r
87  \r
88  check: test\r
89 diff --git a/test/basic b/test/basic\r
90 index 38db2ba..5463bf8 100755\r
91 --- a/test/basic\r
92 +++ b/test/basic\r
93 @@ -56,7 +56,7 @@ tests_in_suite=$(for i in $TESTS; do echo $i; done | sort)\r
94  available=$(ls -1 $TEST_DIRECTORY/ | \\r
95      sed -r -e "/^(aggregate-results.sh|Makefile|Makefile.local|notmuch-test)/d" \\r
96            -e "/^(README|test-lib.sh|test-lib.el|test-results|tmp.*|valgrind|corpus*)/d" \\r
97 -          -e "/^(emacs.expected-output|smtp-dummy|smtp-dummy.c|test-verbose|symbol-test.cc)/d" \\r
98 +          -e "/^(emacs.expected-output|smtp-dummy|smtp-dummy.c|test-verbose|symbol-test.cc|symbol-test|symbol-test.o)/d" \\r
99            -e "/^(test.expected-output|.*~)/d" \\r
100            -e "/^(gnupg-secret-key.asc)/d" \\r
101            -e "/^(gnupg-secret-key.NOTE)/d" \\r
102 diff --git a/test/symbol-hiding b/test/symbol-hiding\r
103 index d0b31ae..f67b653 100755\r
104 --- a/test/symbol-hiding\r
105 +++ b/test/symbol-hiding\r
106 @@ -12,13 +12,12 @@ test_description='exception symbol hiding'\r
107  . ./test-lib.sh\r
108  \r
109  run_test(){\r
110 -    result=$(LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib ./symbol-test 2>&1)\r
111 +    result=$(LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib $TEST_DIRECTORY/symbol-test 2>&1)\r
112  }\r
113  \r
114  output="A Xapian exception occurred opening database: Couldn't stat 'fakedb/.notmuch/xapian'\r
115  caught No chert database found at path \`./nonexistant'"\r
116  \r
117 -g++ -o symbol-test -I$TEST_DIRECTORY/../lib $TEST_DIRECTORY/symbol-test.cc -L$TEST_DIRECTORY/../lib -lnotmuch -lxapian\r
118  mkdir -p fakedb/.notmuch\r
119  test_expect_success 'running test' run_test\r
120  test_begin_subtest 'checking output'\r
121 -- \r
122 1.7.8.rc3\r
123 \r