Re: [PATCH v2] Omit User-Agent: header by default
[notmuch-archives.git] / 08 / 8cc3cf3635c0307ae00be6bce148552b6bc5c6
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 C5C15431FD4\r
6         for <notmuch@notmuchmail.org>; Sun,  7 Apr 2013 10:15:21 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id XbXFMtznuaKT for <notmuch@notmuchmail.org>;\r
17         Sun,  7 Apr 2013 10:15:20 -0700 (PDT)\r
18 Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com\r
19         [209.85.217.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 1C9D9431FC0\r
22         for <notmuch@notmuchmail.org>; Sun,  7 Apr 2013 10:15:15 -0700 (PDT)\r
23 Received: by mail-lb0-f175.google.com with SMTP id o10so5074933lbi.34\r
24         for <notmuch@notmuchmail.org>; Sun, 07 Apr 2013 10:15:14 -0700 (PDT)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=google.com; s=20120113;\r
27         h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
28         :references:in-reply-to:references:x-gm-message-state;\r
29         bh=fqE4VPCPzaF3GJEwOI/J9ja4ER0FF0lP+0diC0y52pw=;\r
30         b=SQNTu2U2XcQMDusiqQJgS+yXwn4Ys//G+MeK/5X/okBeje20fKFAwkRB4oyqQAJRY7\r
31         UF1BA0Ozwf/yxz1tKoVGSbxFXyayXhdSkybgbiwU5D5EJrN/41NHCqqINsGbnj520otd\r
32         wiThWNXNPPPH5Lcy0jtvPRrHTQNnhM/Cj5BFq8kFXEZyqfNTBa6AvAICHEMtHkiovxA6\r
33         sCXKJL9QlOWC4XTxAuoERTKtmwbeCHBD8KYNYzBFW6f5UePJGl0Wh4WUk/EsbAxh+pT7\r
34         mEF06AE6ehGSXkQAzFaWbBfOeiZtyIs7V4mqoxVKRq157QFjVUKyyvcR9jFZzANPbvrN\r
35         cgHA==\r
36 X-Received: by 10.112.136.33 with SMTP id px1mr10053885lbb.95.1365354914560;\r
37         Sun, 07 Apr 2013 10:15:14 -0700 (PDT)\r
38 Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi.\r
39         [80.223.81.27])\r
40         by mx.google.com with ESMTPS id fz10sm9242914lbb.12.2013.04.07.10.15.12\r
41         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
42         Sun, 07 Apr 2013 10:15:13 -0700 (PDT)\r
43 From: Jani Nikula <jani@nikula.org>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH 1/3] test: add some config file tests\r
46 Date: Sun,  7 Apr 2013 20:15:02 +0300\r
47 Message-Id:\r
48  <87ee5b9e61e0b4630d3fa2437d1391438184a674.1365354320.git.jani@nikula.org>\r
49 X-Mailer: git-send-email 1.7.10.4\r
50 In-Reply-To: <cover.1365354320.git.jani@nikula.org>\r
51 References: <cover.1365354320.git.jani@nikula.org>\r
52 In-Reply-To: <cover.1365354320.git.jani@nikula.org>\r
53 References: <cover.1365354320.git.jani@nikula.org>\r
54 X-Gm-Message-State:\r
55  ALoCoQlaxxj9UT56UR6IZVzhdOiz8GCd1vvDvLGIl9ARc+k0UC1HHRVItrTDwIZSFOeJsCuLFVii\r
56 Cc: Tomi Ollila <tomi.ollila@iki.fi>\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Sun, 07 Apr 2013 17:15:22 -0000\r
70 \r
71 Test the --config=FILE option, and add a broken test for writing\r
72 config file through a symbolic link.\r
73 ---\r
74  test/config |   24 ++++++++++++++++++++++++\r
75  1 file changed, 24 insertions(+)\r
76 \r
77 diff --git a/test/config b/test/config\r
78 index cfa1f32..344eced 100755\r
79 --- a/test/config\r
80 +++ b/test/config\r
81 @@ -57,4 +57,28 @@ maildir.synchronize_flags=true\r
82  foo.string=this is another string value\r
83  foo.list=this;is another;list value;"\r
84  \r
85 +test_begin_subtest "Top level --config=FILE option"\r
86 +cp "${NOTMUCH_CONFIG}" alt-config\r
87 +notmuch --config=alt-config config set user.name "Another Name"\r
88 +test_expect_equal "$(notmuch --config=alt-config config get user.name)" \\r
89 +    "Another Name"\r
90 +\r
91 +test_begin_subtest "Top level --config=FILE option changed the right file"\r
92 +test_expect_equal "$(notmuch config get user.name)" \\r
93 +    "Notmuch Test Suite"\r
94 +\r
95 +test_begin_subtest "Read config file through a symlink"\r
96 +ln -s alt-config alt-config-link\r
97 +test_expect_equal "$(notmuch --config=alt-config-link config get user.name)" \\r
98 +    "Another Name"\r
99 +\r
100 +test_begin_subtest "Write config file through a symlink"\r
101 +notmuch --config=alt-config-link config set user.name "Link Name"\r
102 +test_expect_equal "$(notmuch --config=alt-config-link config get user.name)" \\r
103 +    "Link Name"\r
104 +\r
105 +test_begin_subtest "Writing config file through symlink follows symlink"\r
106 +test_subtest_known_broken\r
107 +test_expect_equal "$(readlink alt-config-link)" "alt-config"\r
108 +\r
109  test_done\r
110 -- \r
111 1.7.10.4\r
112 \r