[PATCH v3] configure: use cc/c++ when GCC not installed
[notmuch-archives.git] / f5 / 27944926ec58257c08591e2adf51c863d29590
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 A48AB429E32\r
6         for <notmuch@notmuchmail.org>; Sun, 13 Nov 2011 13:16:12 -0800 (PST)\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 eeScG9mvxd+o for <notmuch@notmuchmail.org>;\r
17         Sun, 13 Nov 2011 13:16:11 -0800 (PST)\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
19         [209.85.214.53]) (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 D1C8E429E37\r
22         for <notmuch@notmuchmail.org>; Sun, 13 Nov 2011 13:15:58 -0800 (PST)\r
23 Received: by mail-bw0-f53.google.com with SMTP id q10so6289712bka.26\r
24         for <notmuch@notmuchmail.org>; Sun, 13 Nov 2011 13:15:58 -0800 (PST)\r
25 Received: by 10.204.143.140 with SMTP id v12mr16848954bku.15.1321218958285;\r
26         Sun, 13 Nov 2011 13:15:58 -0800 (PST)\r
27 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.\r
28         [80.220.92.23])\r
29         by mx.google.com with ESMTPS id h7sm17664186bkw.12.2011.11.13.13.15.56\r
30         (version=SSLv3 cipher=OTHER); Sun, 13 Nov 2011 13:15:57 -0800 (PST)\r
31 From: Jani Nikula <jani@nikula.org>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH v6 5/6] test: add tests for notmuch count\r
34 Date: Sun, 13 Nov 2011 23:15:34 +0200\r
35 Message-Id:\r
36  <47268332a6d9162c18928444dc5c91078b8ee4c5.1321217854.git.jani@nikula.org>\r
37 X-Mailer: git-send-email 1.7.5.4\r
38 In-Reply-To: <cover.1321217854.git.jani@nikula.org>\r
39 References: <cover.1321217854.git.jani@nikula.org>\r
40 In-Reply-To: <cover.1321217854.git.jani@nikula.org>\r
41 References: <cover.1321217854.git.jani@nikula.org>\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Sun, 13 Nov 2011 21:16:13 -0000\r
55 \r
56 Signed-off-by: Jani Nikula <jani@nikula.org>\r
57 ---\r
58  test/count        |   40 ++++++++++++++++++++++++++++++++++++++++\r
59  test/notmuch-test |    1 +\r
60  2 files changed, 41 insertions(+), 0 deletions(-)\r
61  create mode 100755 test/count\r
62 \r
63 diff --git a/test/count b/test/count\r
64 new file mode 100755\r
65 index 0000000..300b171\r
66 --- /dev/null\r
67 +++ b/test/count\r
68 @@ -0,0 +1,40 @@\r
69 +#!/usr/bin/env bash\r
70 +test_description='"notmuch count" for messages and threads'\r
71 +. ./test-lib.sh\r
72 +\r
73 +add_email_corpus\r
74 +\r
75 +SEARCH="\"*\""\r
76 +\r
77 +test_begin_subtest "message count is the default for notmuch count"\r
78 +test_expect_equal \\r
79 +    "`notmuch search --output=messages ${SEARCH} | wc -l`" \\r
80 +    "`notmuch count ${SEARCH}`"\r
81 +\r
82 +test_begin_subtest "message count with --output=messages"\r
83 +test_expect_equal \\r
84 +    "`notmuch search --output=messages ${SEARCH} | wc -l`" \\r
85 +    "`notmuch count --output=messages ${SEARCH}`"\r
86 +\r
87 +test_begin_subtest "thread count with --output=threads"\r
88 +test_expect_equal \\r
89 +    "`notmuch search --output=threads ${SEARCH} | wc -l`" \\r
90 +    "`notmuch count --output=threads ${SEARCH}`"\r
91 +\r
92 +test_begin_subtest "thread count is the default for notmuch search"\r
93 +test_expect_equal \\r
94 +    "`notmuch search ${SEARCH} | wc -l`" \\r
95 +    "`notmuch count --output=threads ${SEARCH}`"\r
96 +\r
97 +SEARCH="from:cworth and not from:cworth"\r
98 +test_begin_subtest "count with no matching messages"\r
99 +test_expect_equal \\r
100 +    "0" \\r
101 +    "`notmuch count --output=messages ${SEARCH}`"\r
102 +\r
103 +test_begin_subtest "count with no matching threads"\r
104 +test_expect_equal \\r
105 +    "0" \\r
106 +    "`notmuch count --output=threads ${SEARCH}`"\r
107 +\r
108 +test_done\r
109 diff --git a/test/notmuch-test b/test/notmuch-test\r
110 index 738f8f6..587adb5 100755\r
111 --- a/test/notmuch-test\r
112 +++ b/test/notmuch-test\r
113 @@ -19,6 +19,7 @@ cd $(dirname "$0")\r
114  TESTS="\r
115    basic\r
116    new\r
117 +  count\r
118    search\r
119    search-output\r
120    search-by-folder\r
121 -- \r
122 1.7.5.4\r
123 \r