[PATCH 1/4] test: add 'GDB' prereq to 'atomicity' tests
authorPieter Praet <pieter@praet.org>
Fri, 13 May 2011 08:17:13 +0000 (10:17 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:14 +0000 (09:38 -0800)
9d/100c4129af8e1ecbaabae02d65a950e29f7fce [new file with mode: 0644]

diff --git a/9d/100c4129af8e1ecbaabae02d65a950e29f7fce b/9d/100c4129af8e1ecbaabae02d65a950e29f7fce
new file mode 100644 (file)
index 0000000..34d1fa1
--- /dev/null
@@ -0,0 +1,89 @@
+Return-Path: <pieter@praet.org>\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 681EC429E21\r
+       for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:17:53 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 7CG5XW9+COie for <notmuch@notmuchmail.org>;\r
+       Fri, 13 May 2011 01:17:53 -0700 (PDT)\r
+Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id D0EB0431FD0\r
+       for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:17:52 -0700 (PDT)\r
+Received: by mail-wy0-f181.google.com with SMTP id 11so1911216wyi.26\r
+       for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:17:52 -0700 (PDT)\r
+Received: by 10.216.205.26 with SMTP id i26mr1128052weo.58.1305274672501;\r
+       Fri, 13 May 2011 01:17:52 -0700 (PDT)\r
+Received: from localhost (54.209-242-81.adsl-dyn.isp.belgacom.be\r
+       [81.242.209.54])\r
+       by mx.google.com with ESMTPS id f52sm1004097wes.11.2011.05.13.01.17.50\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 13 May 2011 01:17:51 -0700 (PDT)\r
+From: Pieter Praet <pieter@praet.org>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH 1/4] test: add 'GDB' prereq to 'atomicity' tests\r
+Date: Fri, 13 May 2011 10:17:13 +0200\r
+Message-Id: <1305274636-19975-2-git-send-email-pieter@praet.org>\r
+X-Mailer: git-send-email 1.7.4.1\r
+In-Reply-To: <1305274636-19975-1-git-send-email-pieter@praet.org>\r
+References: <1305274636-19975-1-git-send-email-pieter@praet.org>\r
+Cc: Austin Clements <amdragon@mit.edu>\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, 13 May 2011 08:17:53 -0000\r
+\r
+Signed-off-by: Pieter Praet <pieter@praet.org>\r
+---\r
+ test/atomicity |   10 ++++++++--\r
+ 1 files changed, 8 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/test/atomicity b/test/atomicity\r
+index cd58c4c..78280b2 100755\r
+--- a/test/atomicity\r
++++ b/test/atomicity\r
+@@ -7,6 +7,12 @@ test_description='atomicity'\r
+ # final database contents should be the same regardless of when (or\r
+ # if) it is killed and restarted.\r
\r
++# GDB is a prereq.\r
++if test_expect_success "prereq: GDB is present" "which gdb"; then\r
++    test_set_prereq GDB\r
++fi\r
++\r
++\r
+ # Create a maildir structure to also stress flag synchronization\r
+ mkdir $MAIL_DIR/cur\r
+ mkdir $MAIL_DIR/new\r
+@@ -89,8 +95,8 @@ for ((i = 0; i < $outcount; i++)); do\r
+         i=$(expr $end - 1)\r
+     fi\r
+ done\r
+-test_expect_equal "$(cat searchall)" "$(cat expectall)"\r
++test_expect_equal GDB "$(cat searchall)" "$(cat expectall)"\r
\r
+-test_expect_success "detected $outcount>10 abort points" "test $outcount -gt 10"\r
++test_expect_success GDB "detected $outcount>10 abort points" "test $outcount -gt 10"\r
\r
+ test_done\r
+-- \r
+1.7.4.1\r
+\r