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 9BE78431FCF for ; Tue, 22 Jan 2013 09:41:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 V50YFCTaSTjs for ; Tue, 22 Jan 2013 09:41:36 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 62197431FD8 for ; Tue, 22 Jan 2013 09:41:30 -0800 (PST) Received: by mail-la0-f45.google.com with SMTP id er20so2258151lab.4 for ; Tue, 22 Jan 2013 09:41:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=yRmIqmbjTMQMoNEJuhx78ulUpHelAjzMoNVbdyqy4mY=; b=VlLEiNE+xmfOzKenIr4eGrfFjW56pB/+riTwN7MHqraJUI1DDyBfgp/NXubisOQmUP 76voygFfEY77bzghWWgunZvDcO9sZIvr994s080l5JhgMkJZqAZfWJ27WHjlRXpGoaSj VPFg8ZsXk5fjZKL+wGdCPMHqYyy9xijDm319x9B+l0AgIoi47xO6YJW661tDgVr2OpWt 6xEk4rrTI0hcBJ/VovKS1Lfn2xFO12vQxuRrfi2O/VkalVoMH3l7NbedjbDfVXPxHWnz mJPd8K4DiPTB6YNqtX8R5TbCWtQ3La8ukwjSn0sbZO1Pp55yIFBXX5pThGrRYtTOTX63 uVrg== X-Received: by 10.112.38.164 with SMTP id h4mr6621520lbk.123.1358876488804; Tue, 22 Jan 2013 09:41:28 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id ns7sm7324220lab.5.2013.01.22.09.41.26 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 22 Jan 2013 09:41:28 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 4/4] test: notmuch tag --remove-all Date: Tue, 22 Jan 2013 19:41:09 +0200 Message-Id: <9cc3461ea02253eea1f4afab3f5e77e8fad852a4.1358876448.git.jani@nikula.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org> References: <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org> In-Reply-To: <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org> References: <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org> X-Gm-Message-State: ALoCoQkEnaTBqnzrU3oAsJldZZ5fezsqlEzRvB1Cazo6JlJvTOsSleS/1QZ+Ee1Hf5o5mVC526YS 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: Tue, 22 Jan 2013 17:41:36 -0000 --- test/tagging | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/tagging b/test/tagging index 1f5632c..dc118f3 100755 --- a/test/tagging +++ b/test/tagging @@ -30,6 +30,22 @@ test_expect_equal "$output" "\ thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread) thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 unread)" +test_begin_subtest "Remove all" +notmuch tag --remove-all One +notmuch tag --remove-all +tag5 +tag6 +unread Two +output=$(notmuch search \* | notmuch_search_sanitize) +test_expect_equal "$output" "\ +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One () +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (tag5 tag6 unread)" + +test_begin_subtest "Remove all with a no-op" +notmuch tag +inbox +tag1 +unread One +notmuch tag --remove-all +foo +inbox +tag1 -foo +unread Two +output=$(notmuch search \* | notmuch_search_sanitize) +test_expect_equal "$output" "\ +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread) +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 unread)" + test_begin_subtest "Special characters in tags" notmuch tag +':" ' \* notmuch tag -':" ' Two -- 1.7.10.4