v3 of message properties patches
[notmuch-archives.git] / 54 / b00e1e288e2a1f6a736b434234a6587fa6835e
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 BEEAE429E21\r
6         for <notmuch@notmuchmail.org>; Sat, 26 Nov 2011 12:51:31 -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 WtT6X0Nf3nUJ for <notmuch@notmuchmail.org>;\r
16         Sat, 26 Nov 2011 12:51:31 -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 CD1DD431FB6\r
21         for <notmuch@notmuchmail.org>; Sat, 26 Nov 2011 12:51:30 -0800 (PST)\r
22 Received: by bkaq10 with SMTP id q10so6685693bka.26\r
23         for <notmuch@notmuchmail.org>; Sat, 26 Nov 2011 12:51:29 -0800 (PST)\r
24 Received: by 10.204.36.8 with SMTP id r8mr33293896bkd.129.1322340689413;\r
25         Sat, 26 Nov 2011 12:51:29 -0800 (PST)\r
26 Received: from localhost (dhm251.neoplus.adsl.tpnet.pl. [83.23.194.251])\r
27         by mx.google.com with ESMTPS id z1sm1086852fad.21.2011.11.26.12.51.27\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Sat, 26 Nov 2011 12:51:28 -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] Build symbol-test with make instead of hardcoding in\r
33         symbol-hiding.\r
34 Date: Sat, 26 Nov 2011 21:51:21 +0100\r
35 Message-Id: <1322340681-22458-1-git-send-email-aidecoe@aidecoe.name>\r
36 X-Mailer: git-send-email 1.7.8.rc3\r
37 In-Reply-To: <87k46mbsup.fsf@rocinante.cs.unb.ca>\r
38 References: <87k46mbsup.fsf@rocinante.cs.unb.ca>\r
39 Cc: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@aidecoe.name>\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Sat, 26 Nov 2011 20:51:31 -0000\r
53 \r
54 If symbol-test is built in symbol-hiding with hardcoded g++ invokation,\r
55 it's not so easy to pass $(srcdir) which is required to find notmuch.h\r
56 when srcdir and builddir are separate directories.\r
57 ---\r
58  test/.gitignore     |    1 +\r
59  test/Makefile.local |    5 ++++-\r
60  test/basic          |    2 +-\r
61  test/symbol-hiding  |    3 +--\r
62  4 files changed, 7 insertions(+), 4 deletions(-)\r
63 \r
64 diff --git a/test/.gitignore b/test/.gitignore\r
65 index 9e97052..7e30e8d 100644\r
66 --- a/test/.gitignore\r
67 +++ b/test/.gitignore\r
68 @@ -1,4 +1,5 @@\r
69  test-results\r
70  corpus.mail\r
71  smtp-dummy\r
72 +symbol-test\r
73  tmp.*\r
74 diff --git a/test/Makefile.local b/test/Makefile.local\r
75 index 9b3308a..b77f721 100644\r
76 --- a/test/Makefile.local\r
77 +++ b/test/Makefile.local\r
78 @@ -11,8 +11,11 @@ smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)\r
79  $(dir)/smtp-dummy: $(smtp_dummy_modules)\r
80         $(call quiet,CC) $^ -o $@\r
81  \r
82 +$(dir)/symbol-test: $(dir)/symbol-test.o\r
83 +       $(call quiet,CC) $^ -o $@ -Llib -lnotmuch -lxapian\r
84 +\r
85  .PHONY: test check\r
86 -test:  all $(dir)/smtp-dummy\r
87 +test:  all $(dir)/smtp-dummy $(dir)/symbol-test\r
88         @${dir}/notmuch-test $(OPTIONS)\r
89  \r
90  check: test\r
91 diff --git a/test/basic b/test/basic\r
92 index f258d1f..4edf831 100755\r
93 --- a/test/basic\r
94 +++ b/test/basic\r
95 @@ -54,7 +54,7 @@ test_begin_subtest 'Ensure that all available tests will be run by notmuch-test'\r
96  eval $(sed -n -e '/^TESTS="$/,/^"$/p' $TEST_DIRECTORY/notmuch-test)\r
97  tests_in_suite=$(for i in $TESTS; do echo $i; done | sort)\r
98  available=$(find "$TEST_DIRECTORY" -maxdepth 1 -type f -executable -printf '%f\n' | \\r
99 -    sed -r -e "/^(aggregate-results.sh|notmuch-test|smtp-dummy|test-verbose)$/d" | \\r
100 +    sed -r -e "/^(aggregate-results.sh|notmuch-test|smtp-dummy|test-verbose|symbol-test)$/d" | \\r
101      sort)\r
102  test_expect_equal "$tests_in_suite" "$available"\r
103  \r
104 diff --git a/test/symbol-hiding b/test/symbol-hiding\r
105 index d0b31ae..f67b653 100755\r
106 --- a/test/symbol-hiding\r
107 +++ b/test/symbol-hiding\r
108 @@ -12,13 +12,12 @@ test_description='exception symbol hiding'\r
109  . ./test-lib.sh\r
110  \r
111  run_test(){\r
112 -    result=$(LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib ./symbol-test 2>&1)\r
113 +    result=$(LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib $TEST_DIRECTORY/symbol-test 2>&1)\r
114  }\r
115  \r
116  output="A Xapian exception occurred opening database: Couldn't stat 'fakedb/.notmuch/xapian'\r
117  caught No chert database found at path \`./nonexistant'"\r
118  \r
119 -g++ -o symbol-test -I$TEST_DIRECTORY/../lib $TEST_DIRECTORY/symbol-test.cc -L$TEST_DIRECTORY/../lib -lnotmuch -lxapian\r
120  mkdir -p fakedb/.notmuch\r
121  test_expect_success 'running test' run_test\r
122  test_begin_subtest 'checking output'\r
123 -- \r
124 1.7.8.rc3\r
125 \r