[PATCH 06/10] cli: Introduce "notmuch address" command
[notmuch-archives.git] / 1b / 1e1190bfe0a3352bd8ade4b080986f758cab79
1 Return-Path: <bremner@tethera.net>\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 540E9429E5F\r
6         for <notmuch@notmuchmail.org>; Wed, 29 Jun 2011 04:57:26 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 K1ujHyUC+4Wx for <notmuch@notmuchmail.org>;\r
16         Wed, 29 Jun 2011 04:57:26 -0700 (PDT)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id D3650429E5B\r
21         for <notmuch@notmuchmail.org>; Wed, 29 Jun 2011 04:57:25 -0700 (PDT)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc30w-142167176081.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [142.167.176.81]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p5TBvMmP028339\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Wed, 29 Jun 2011 08:57:23 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1QbtOT-00055S-Sk; Wed, 29 Jun 2011 08:57:21 -0300\r
31 From: david@tethera.net\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 2/2] test/libnotmuch-abi: compare exported symbols,\r
34         available symbols, and linker script.\r
35 Date: Wed, 29 Jun 2011 08:56:35 -0300\r
36 Message-Id: <1309348595-19503-2-git-send-email-david@tethera.net>\r
37 X-Mailer: git-send-email 1.7.5.4\r
38 In-Reply-To: <1309348595-19503-1-git-send-email-david@tethera.net>\r
39 References: <1309348595-19503-1-git-send-email-david@tethera.net>\r
40 Cc: David Bremner <bremner@debian.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Wed, 29 Jun 2011 11:57:26 -0000\r
54 \r
55 From: David Bremner <bremner@debian.org>\r
56 \r
57 This uses objdump and awk to grab the available "notmuch_" symbols\r
58 from the object files and all exported symbols from libnotmuch.so. The\r
59 symbols from the linker script are grabbed using sed.  All three of\r
60 these sets of symbols should be equal.\r
61 ---\r
62  test/libnotmuch-abi |   10 ++++++++++\r
63  1 files changed, 10 insertions(+), 0 deletions(-)\r
64 \r
65 diff --git a/test/libnotmuch-abi b/test/libnotmuch-abi\r
66 index a7467b8..0e6192b 100755\r
67 --- a/test/libnotmuch-abi\r
68 +++ b/test/libnotmuch-abi\r
69 @@ -23,4 +23,14 @@ mkdir -p fakedb/.notmuch\r
70  test_expect_success 'running exception test' run_exception_test\r
71  test_begin_subtest 'checking output'\r
72  test_expect_equal "$result" "$output" \r
73 +\r
74 +objdump -t $TEST_DIRECTORY/../lib/*.o | awk '$4 == ".text" && $6 ~ "^notmuch" {print $6}' | sort | uniq >  all-symbols.txt\r
75 +\r
76 +test_begin_subtest 'checking linker script'\r
77 +sed -n 's/^\s*\(notmuch_.*\);/\1/p' $TEST_DIRECTORY/../notmuch.sym | sort> script-symbols.txt\r
78 +test_expect_equal_file all-symbols.txt script-symbols.txt\r
79 +\r
80 +test_begin_subtest 'comparing exported symbols'\r
81 +objdump -T $TEST_DIRECTORY/../lib/libnotmuch.so | awk '$4 == ".text" {print $7}' | sort | uniq >  lib-symbols.txt\r
82 +test_expect_equal_file all-symbols.txt lib-symbols.txt\r
83  test_done\r
84 -- \r
85 1.7.5.4\r
86 \r