[PATCH 2/2] test/libnotmuch-abi: compare exported symbols, available symbols, and...
authordavid <david@tethera.net>
Wed, 29 Jun 2011 11:56:35 +0000 (08:56 +2100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:49 +0000 (09:38 -0800)
1b/1e1190bfe0a3352bd8ade4b080986f758cab79 [new file with mode: 0644]

diff --git a/1b/1e1190bfe0a3352bd8ade4b080986f758cab79 b/1b/1e1190bfe0a3352bd8ade4b080986f758cab79
new file mode 100644 (file)
index 0000000..ec99c60
--- /dev/null
@@ -0,0 +1,86 @@
+Return-Path: <bremner@tethera.net>\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 540E9429E5F\r
+       for <notmuch@notmuchmail.org>; Wed, 29 Jun 2011 04:57:26 -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 K1ujHyUC+4Wx for <notmuch@notmuchmail.org>;\r
+       Wed, 29 Jun 2011 04:57:26 -0700 (PDT)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\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 D3650429E5B\r
+       for <notmuch@notmuchmail.org>; Wed, 29 Jun 2011 04:57:25 -0700 (PDT)\r
+Received: from zancas.localnet\r
+       (fctnnbsc30w-142167176081.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
+       [142.167.176.81]) (authenticated bits=0)\r
+       by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p5TBvMmP028339\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
+       Wed, 29 Jun 2011 08:57:23 -0300\r
+Received: from bremner by zancas.localnet with local (Exim 4.76)\r
+       (envelope-from <bremner@tethera.net>)\r
+       id 1QbtOT-00055S-Sk; Wed, 29 Jun 2011 08:57:21 -0300\r
+From: david@tethera.net\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] test/libnotmuch-abi: compare exported symbols,\r
+       available symbols, and linker script.\r
+Date: Wed, 29 Jun 2011 08:56:35 -0300\r
+Message-Id: <1309348595-19503-2-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To: <1309348595-19503-1-git-send-email-david@tethera.net>\r
+References: <1309348595-19503-1-git-send-email-david@tethera.net>\r
+Cc: David Bremner <bremner@debian.org>\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: Wed, 29 Jun 2011 11:57:26 -0000\r
+\r
+From: David Bremner <bremner@debian.org>\r
+\r
+This uses objdump and awk to grab the available "notmuch_" symbols\r
+from the object files and all exported symbols from libnotmuch.so. The\r
+symbols from the linker script are grabbed using sed.  All three of\r
+these sets of symbols should be equal.\r
+---\r
+ test/libnotmuch-abi |   10 ++++++++++\r
+ 1 files changed, 10 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/libnotmuch-abi b/test/libnotmuch-abi\r
+index a7467b8..0e6192b 100755\r
+--- a/test/libnotmuch-abi\r
++++ b/test/libnotmuch-abi\r
+@@ -23,4 +23,14 @@ mkdir -p fakedb/.notmuch\r
+ test_expect_success 'running exception test' run_exception_test\r
+ test_begin_subtest 'checking output'\r
+ test_expect_equal "$result" "$output" \r
++\r
++objdump -t $TEST_DIRECTORY/../lib/*.o | awk '$4 == ".text" && $6 ~ "^notmuch" {print $6}' | sort | uniq >  all-symbols.txt\r
++\r
++test_begin_subtest 'checking linker script'\r
++sed -n 's/^\s*\(notmuch_.*\);/\1/p' $TEST_DIRECTORY/../notmuch.sym | sort> script-symbols.txt\r
++test_expect_equal_file all-symbols.txt script-symbols.txt\r
++\r
++test_begin_subtest 'comparing exported symbols'\r
++objdump -T $TEST_DIRECTORY/../lib/libnotmuch.so | awk '$4 == ".text" {print $7}' | sort | uniq >  lib-symbols.txt\r
++test_expect_equal_file all-symbols.txt lib-symbols.txt\r
+ test_done\r
+-- \r
+1.7.5.4\r
+\r