From: Jani Nikula Date: Sat, 9 Mar 2013 14:56:51 +0000 (+0200) Subject: [PATCH v2 4/4] test: notmuch tag --remove-all X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5f5eab8045bde892fb0ae44f0e2f42347164c996;p=notmuch-archives.git [PATCH v2 4/4] test: notmuch tag --remove-all --- diff --git a/f3/5386c9da702f04dc3a67b5cc77e273128d3f8d b/f3/5386c9da702f04dc3a67b5cc77e273128d3f8d new file mode 100644 index 000000000..37a7d764c --- /dev/null +++ b/f3/5386c9da702f04dc3a67b5cc77e273128d3f8d @@ -0,0 +1,103 @@ +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 EB772431FD2 + for ; Sat, 9 Mar 2013 06:57:20 -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 kmtcxxT-YRu7 for ; + Sat, 9 Mar 2013 06:57:17 -0800 (PST) +Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com + [209.85.217.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 3ECE7431FD7 + for ; Sat, 9 Mar 2013 06:57:06 -0800 (PST) +Received: by mail-lb0-f174.google.com with SMTP id l12so2074970lbo.33 + for ; Sat, 09 Mar 2013 06:57:04 -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=LnWeBEtAnTSyRKuv+uCf612S4eBkqDo1kwwEJ8IqtFdSZzTiI8HDlkzrj+BER90Fqo + tBTR1rhSNb/OjD27+p4ovs9+NzJkPgBXjc3aihzFpM8WuG0Cil7z3epsYojsTfhc3RJv + F2bp4XHD+8oywIQ3w8mLEmseTFqRM6/7r4E5MWNgs4iXj29CMFspUgHfrCEXyqUQJBQ2 + ctnHMVszNwx/v8gK/XcMM0fso9Gbm38KXIzFnr9ZJNgJycQW9vYemKECZw8K8NFW3LqC + xP9YK+HDIKDW93Gy4pdyK7Vle6UvQw3/BBk+z3R1qYoqZBWaZaaI2Fj9aZVuUIUMGCsF + z45w== +X-Received: by 10.152.109.112 with SMTP id hr16mr5195963lab.38.1362841024458; + Sat, 09 Mar 2013 06:57:04 -0800 (PST) +Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi. + [80.223.81.27]) + by mx.google.com with ESMTPS id oy10sm4255897lab.8.2013.03.09.06.57.03 + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sat, 09 Mar 2013 06:57:03 -0800 (PST) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH v2 4/4] test: notmuch tag --remove-all +Date: Sat, 9 Mar 2013 16:56:51 +0200 +Message-Id: + +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: +References: +In-Reply-To: +References: +X-Gm-Message-State: + ALoCoQmx9OrhOMQ8dpLGIEs84/va5UXKbgijKfABMX2tGhWvwFQfgf0btNUvWrgk8KAf2+kAd/XJ +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, 09 Mar 2013 14:57:21 -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 +