From: Jani Nikula Date: Fri, 4 Sep 2015 18:35:16 +0000 (+0300) Subject: [PATCH 3½/9] test: notmuch address --deduplicate=no tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74d0a30fea9046c1e966a5f238590b9a0f61d458;p=notmuch-archives.git [PATCH 3½/9] test: notmuch address --deduplicate=no tests --- diff --git a/21/620f65754f947c7dea2aded1d86faeff43682e b/21/620f65754f947c7dea2aded1d86faeff43682e new file mode 100644 index 000000000..d1c62efb5 --- /dev/null +++ b/21/620f65754f947c7dea2aded1d86faeff43682e @@ -0,0 +1,159 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 5B2316DE1472 + for ; Fri, 4 Sep 2015 11:35:26 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.48 +X-Spam-Level: +X-Spam-Status: No, score=-0.48 tagged_above=-999 required=5 tests=[AWL=0.240, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id xQImKBFdZujk for ; + Fri, 4 Sep 2015 11:35:23 -0700 (PDT) +Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com + [209.85.212.179]) + by arlo.cworth.org (Postfix) with ESMTPS id 5F7A16DE0A9A + for ; Fri, 4 Sep 2015 11:35:23 -0700 (PDT) +Received: by wicge5 with SMTP id ge5so26010336wic.0 + for ; Fri, 04 Sep 2015 11:35:21 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to + :references:mime-version:content-type:content-transfer-encoding; + bh=BuBbwHp0CA7c/OWkT2Sm/4vUgalQUBUcEpJBMakHPG8=; + b=Ah6PPUUgCObc2ztXJpYw6OpzsOS//Ijmj8Vb7Z4tzHpxXLWkyDCGERzV9GC7lFC+TK + VGHraXxPurER1vdJvjv/yshhTrO11sEaavDXsNK/dSQCvuCPx1aX9Isv4qE5Z24568IY + D/86wbxwCBgKlJSXVpyosB1pf2/UGWF+0lKCEoInS73PeW92b5zw+0Q1qQYNuD3U397J + MbNwkKi8zTO8sAmGZXRgBAucwx6d7xQ/LrSCp45AOiY31NYx3kbM7MA2FJ2x51Z6XUJ1 + Gw2Zi9u9YNEGzsLqSg/DIrQIIP5WamVzeYfEYB0h7jnBOCiJZbL425ZXyF1awPjZ2gb9 + maBw== +X-Gm-Message-State: + ALoCoQn//wJN0coA1qywyrrkff9bftbt6SDn9iKBxI8n1R6RTRd2cCq262hmlTnhME1oIGrWcYgp +X-Received: by 10.180.104.8 with SMTP id ga8mr9496668wib.86.1441391721210; + Fri, 04 Sep 2015 11:35:21 -0700 (PDT) +Received: from localhost (mobile-access-bcee4f-131.dhcp.inet.fi. + [188.238.79.131]) + by smtp.gmail.com with ESMTPSA id p3sm5622024wib.16.2015.09.04.11.35.19 + (version=TLSv1/SSLv3 cipher=OTHER); + Fri, 04 Sep 2015 11:35:20 -0700 (PDT) +From: Jani Nikula +To: Jani Nikula , + notmuch@notmuchmail.org +Subject: =?utf-8?q?=5BPATCH_3=C2=BD/9=5D_test=3A_notmuch_address_--deduplicate=3Dno_tests?= +Date: Fri, 4 Sep 2015 21:35:16 +0300 +Message-Id: <1441391716-17282-1-git-send-email-jani@nikula.org> +X-Mailer: git-send-email 2.1.4 +In-Reply-To: + +References: + +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +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: Fri, 04 Sep 2015 18:35:26 -0000 + +Test not using address deduplication. Incorporate some trivial output +sorting tests here, as they seem to lack tests. +--- + test/T095-address.sh | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 70 insertions(+) + +diff --git a/test/T095-address.sh b/test/T095-address.sh +index 8eecb2a6a7ba..f8d902cb3a5e 100755 +--- a/test/T095-address.sh ++++ b/test/T095-address.sh +@@ -145,4 +145,74 @@ cat <EXPECTED + EOF + test_expect_equal_file OUTPUT EXPECTED + ++test_begin_subtest "--deduplicate=no --sort=oldest-first --output=sender" ++notmuch address --deduplicate=no --sort=oldest-first --output=sender '*' >OUTPUT ++cat <EXPECTED ++Mikhail Gusarov ++Mikhail Gusarov ++Carl Worth ++Lars Kellogg-Stedman ++Mikhail Gusarov ++Alex Botero-Lowry ++Carl Worth ++Lars Kellogg-Stedman ++Mikhail Gusarov ++Mikhail Gusarov ++Keith Packard ++Keith Packard ++Keith Packard ++Jan Janak ++Jan Janak ++Jan Janak ++Israel Herraiz ++Adrian Perez de Castro ++Aron Griffis ++Ingmar Vanhassel ++Alex Botero-Lowry ++Lars Kellogg-Stedman ++Lars Kellogg-Stedman ++Lars Kellogg-Stedman ++Stewart Smith ++Stewart Smith ++Keith Packard ++Keith Packard ++Keith Packard ++Stewart Smith ++Jjgod Jiang ++Jan Janak ++Rolland Santimano ++Alexander Botero-Lowry ++Jjgod Jiang ++Alexander Botero-Lowry ++Alexander Botero-Lowry ++Keith Packard ++Alexander Botero-Lowry ++Carl Worth ++Carl Worth ++Carl Worth ++Carl Worth ++Carl Worth ++Carl Worth ++Carl Worth ++Carl Worth ++Carl Worth ++Carl Worth ++Chris Wilson ++Olivier Berger ++François Boulogne ++EOF ++test_expect_equal_file OUTPUT EXPECTED ++ ++test_begin_subtest "--deduplicate=no --sort=newest-first --output=sender --output=recipients" ++notmuch address --deduplicate=no --sort=newest-first --output=sender --output=recipients path:foo/new >OUTPUT ++cat <EXPECTED ++Mikhail Gusarov ++notmuch@notmuchmail.org ++Mikhail Gusarov ++notmuch@notmuchmail.org ++Lars Kellogg-Stedman ++notmuch@notmuchmail.org ++EOF ++test_expect_equal_file OUTPUT EXPECTED ++ + test_done +-- +2.1.4 +