1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 04840431FBD
\r
6 for <notmuch@notmuchmail.org>; Sun, 5 May 2013 12:18:34 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id PwYjKN40m2RW for <notmuch@notmuchmail.org>;
\r
16 Sun, 5 May 2013 12:18:29 -0700 (PDT)
\r
17 Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com
\r
18 [209.85.217.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id AB9CA431FAE
\r
21 for <notmuch@notmuchmail.org>; Sun, 5 May 2013 12:18:28 -0700 (PDT)
\r
22 Received: by mail-lb0-f169.google.com with SMTP id z5so2847155lbh.28
\r
23 for <notmuch@notmuchmail.org>; Sun, 05 May 2013 12:18:27 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=google.com; s=20120113;
\r
26 h=x-received:from:to:cc:subject:date:message-id:x-mailer
\r
27 :x-gm-message-state;
\r
28 bh=evMJ1tVkN/q1a96JnvqRYOx6vOdcUHN0fQav0ttvnV0=;
\r
29 b=jME27hkAMT9A/DCs5rHjC/xsZGqdU/ombcbtsHsRWkU32iPoPe9c/58pfbyL7N19ux
\r
30 ClbB1/8K0CBiZlpIcKjW8QcYFABeECW4EBYXHEfSaYoMA+FH+uNnw4qLOdxqgU99ErIt
\r
31 ccgjDZz4dj72jPoVE9aJSk2M0vIGfd+V2Y/0ZyE9xEfdS8m3fnfFKs7PNJKK6tX4FRdV
\r
32 MAU9AfzPM+Nxze1wtBJ50Q8WBHW3Fq+Dh5r/lrlrQDWq2jliLjwVk71Q6jRbocmZ0cd/
\r
33 IPtwlj0UQgkS/0SBguFP+3xu/PiU6+LmohS7yQIIyFILAlQzhWaSU9SQChvX35ZILXNg
\r
35 X-Received: by 10.112.5.137 with SMTP id s9mr7117541lbs.68.1367781507177;
\r
36 Sun, 05 May 2013 12:18:27 -0700 (PDT)
\r
37 Received: from localhost (dsl-hkibrasgw2-58c376-211.dhcp.inet.fi.
\r
39 by mx.google.com with ESMTPSA id 2sm3837256lay.5.2013.05.05.12.18.25
\r
40 for <multiple recipients>
\r
41 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
42 Sun, 05 May 2013 12:18:26 -0700 (PDT)
\r
43 From: Jani Nikula <jani@nikula.org>
\r
44 To: notmuch@notmuchmail.org
\r
45 Subject: [PATCH 1/2] test: add basic test for notmuch setup
\r
46 Date: Sun, 5 May 2013 22:18:19 +0300
\r
48 <9971e27c7c3fe569765bbca0f21de128ad1e4fac.1367781422.git.jani@nikula.org>
\r
49 X-Mailer: git-send-email 1.7.10.4
\r
51 ALoCoQmAjPFW1FVKVr43tCM8klvOUTEUi1u9BnunP0I2saWVGZse6/PtWmheJlFnk4WLXD60UokX
\r
52 Cc: Tomi Ollila <tomi.ollila@iki.fi>
\r
53 X-BeenThere: notmuch@notmuchmail.org
\r
54 X-Mailman-Version: 2.1.13
\r
56 List-Id: "Use and development of the notmuch mail system."
\r
57 <notmuch.notmuchmail.org>
\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
61 List-Post: <mailto:notmuch@notmuchmail.org>
\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
65 X-List-Received-Date: Sun, 05 May 2013 19:18:34 -0000
\r
67 And annotate with test_subtest_known_broken. Hooray.
\r
69 test/notmuch-test | 1 +
\r
70 test/setup | 28 ++++++++++++++++++++++++++++
\r
71 2 files changed, 29 insertions(+)
\r
72 create mode 100755 test/setup
\r
74 diff --git a/test/notmuch-test b/test/notmuch-test
\r
75 index ca9c3dc..27a144e 100755
\r
76 --- a/test/notmuch-test
\r
77 +++ b/test/notmuch-test
\r
78 @@ -20,6 +20,7 @@ TESTS="
\r
86 diff --git a/test/setup b/test/setup
\r
87 new file mode 100755
\r
88 index 0000000..8cc5576
\r
92 +#!/usr/bin/env bash
\r
94 +test_description='"notmuch setup"'
\r
97 +test_begin_subtest "Create a new config interactively"
\r
98 +test_subtest_known_broken
\r
99 +notmuch --config=new-notmuch-config > /dev/null <<EOF
\r
101 +test.suite@example.com
\r
102 +another.suite@example.com
\r
108 +output=$(notmuch --config=new-notmuch-config config list)
\r
109 +test_expect_equal "$output" "\
\r
110 +database.path=/path/to/maildir
\r
111 +user.name=Test Suite
\r
112 +user.primary_email=test.suite@example.com
\r
113 +user.other_email=another.suite@example.com;
\r
116 +search.exclude_tags=baz;
\r
117 +maildir.synchronize_flags=true"
\r