From f3dbed0482f06f386e2cd5d8f33896a8e0eae2be Mon Sep 17 00:00:00 2001 From: david Date: Sun, 18 Nov 2012 10:30:30 +2000 Subject: [PATCH] [PATCH 1/2] test: add more informative titles to restore --accumulate tests --- ac/5ddf235ce436531df664a58a8eab91ccbefd0e | 84 +++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 ac/5ddf235ce436531df664a58a8eab91ccbefd0e diff --git a/ac/5ddf235ce436531df664a58a8eab91ccbefd0e b/ac/5ddf235ce436531df664a58a8eab91ccbefd0e new file mode 100644 index 000000000..6b4a8bb86 --- /dev/null +++ b/ac/5ddf235ce436531df664a58a8eab91ccbefd0e @@ -0,0 +1,84 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 6E7F3431FB6 + for ; Sat, 17 Nov 2012 06:35:30 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id D3z3HtWokdzm for ; + Sat, 17 Nov 2012 06:35:30 -0800 (PST) +Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id DC1D9431FAF + for ; Sat, 17 Nov 2012 06:35:29 -0800 (PST) +Received: from fctnnbsc30w-156034089108.dhcp-dynamic.fibreop.nb.bellaliant.net + ([156.34.89.108] helo=zancas.localnet) + by tesseract.cs.unb.ca with esmtpsa + (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) + (envelope-from ) + id 1TZjSv-0000oT-So; Sat, 17 Nov 2012 10:34:08 -0400 +Received: from bremner by zancas.localnet with local (Exim 4.80) + (envelope-from ) + id 1TZjPs-00024l-9I; Sat, 17 Nov 2012 10:30:40 -0400 +From: david@tethera.net +To: notmuch@notmuchmail.org +Subject: [PATCH 1/2] test: add more informative titles to restore --accumulate + tests +Date: Sat, 17 Nov 2012 10:30:30 -0400 +Message-Id: <1353162631-7947-1-git-send-email-david@tethera.net> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <8762552dre.fsf@betacantrips.com> +References: <8762552dre.fsf@betacantrips.com> +X-Spam_bar: - +Cc: David Bremner +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 17 Nov 2012 14:35:30 -0000 + +From: David Bremner + +Thanks to Ethan for the suggestion. +--- + test/dump-restore | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/dump-restore b/test/dump-restore +index f25f7cf..7acf7fe 100755 +--- a/test/dump-restore ++++ b/test/dump-restore +@@ -39,12 +39,12 @@ test_expect_success 'Restore with nothing to do' \ + notmuch dump > dump.actual && + test_cmp dump.expected dump.actual' + +-test_expect_success 'Restore with nothing to do, II' \ ++test_expect_success 'Accumulate with existing tags' \ + 'notmuch restore --accumulate --input=dump.expected && + notmuch dump > dump.actual && + test_cmp dump.expected dump.actual' + +-test_expect_success 'Restore with nothing to do, III' \ ++test_expect_success 'Accumulate with no tags' \ + 'notmuch restore --accumulate < clear.expected && + notmuch dump > dump.actual && + test_cmp dump.expected dump.actual' +-- +1.7.10.4 + -- 2.26.2