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 4DF96431FBF for ; Sat, 24 Nov 2012 05:21:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.201 X-Spam-Level: X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, 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 JH8ayM7VB-54 for ; Sat, 24 Nov 2012 05:21:11 -0800 (PST) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 8C46B431FAF for ; Sat, 24 Nov 2012 05:21:06 -0800 (PST) Received: by mail-wg0-f45.google.com with SMTP id dq11so3973547wgb.2 for ; Sat, 24 Nov 2012 05:21:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=Bt32qD1QMGGGyalCx10DSAJVfr5+8PuThGD3aztG5Bw=; b=xIl9PMv8Z/FmOiX5R3pmg9tDsW+Cl4UUzvidEGHNBbQYrQ5tGxlatArjxdD9jCeI4Q fS07+mv+eBMN7cVnZvyRZ4VJQfrA8T91T/RUb6IEZ7SVmSfp8ILg3G7yi5HV5FBetjUq kj6uCT1LR/g0202+UfK1orN5jTnzLjUR7pIJvDCOLsEX9nziyLbxQkyRJjCksPDH5VuO MXio+Av2xtnFQpw2Kgydyc/Bbe4+jT6QF0vmvnw6dvEslBn545T+IRnYv0CrouxnL0B5 tAuL2dP+0vW2DnH57hu+d5LkmN2/A1TY70WBwsii+B2bLMxpZ2NFsCB1eu3T76GFFBec E22g== Received: by 10.180.86.36 with SMTP id m4mr1017631wiz.5.1353763265379; Sat, 24 Nov 2012 05:21:05 -0800 (PST) Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) by mx.google.com with ESMTPS id fh10sm14257762wib.3.2012.11.24.05.21.04 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 24 Nov 2012 05:21:04 -0800 (PST) From: markwalters1009 To: notmuch@notmuchmail.org Subject: [PATCH v2 2/7] test: for the new query from stdin functionality Date: Sat, 24 Nov 2012 13:20:51 +0000 Message-Id: <1353763256-32336-3-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1353763256-32336-1-git-send-email-markwalters1009@gmail.com> References: <1353763256-32336-1-git-send-email-markwalters1009@gmail.com> 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, 24 Nov 2012 13:21:12 -0000 From: Mark Walters --- test/tagging | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/test/tagging b/test/tagging index 980ff92..eb7d61c 100755 --- a/test/tagging +++ b/test/tagging @@ -19,6 +19,15 @@ test_expect_equal "$output" "\ thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag3 unread) thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag3 unread)" +test_begin_subtest "Adding tags. Query from stdin" +echo -n "subject:One" | notmuch tag +intag1 +intag2 -- - +echo DONE +output=$(notmuch search \* | notmuch_search_sanitize) +test_expect_equal "$output" "\ +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox intag1 intag2 tag3 unread) +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag3 unread)" +notmuch tag -intag1 -intag2 \* + test_expect_code 1 "No tag operations" 'notmuch tag One' test_expect_code 1 "No query" 'notmuch tag +tag2' -- 1.7.9.1