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 EAB81431FB6 for ; Sat, 15 Dec 2012 19:17:43 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 j53uRW1Zl3I2 for ; Sat, 15 Dec 2012 19:17:43 -0800 (PST) Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU [18.9.25.14]) by olra.theworths.org (Postfix) with ESMTP id E2805431FC0 for ; Sat, 15 Dec 2012 19:17:41 -0800 (PST) X-AuditID: 1209190e-b7f516d0000008e4-ab-50cd3d5597e7 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id C3.C1.02276.55D3DC05; Sat, 15 Dec 2012 22:17:41 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id qBG3He3m020943; Sat, 15 Dec 2012 22:17:40 -0500 Received: from drake.dyndns.org (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [209.6.116.242]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qBG3Hb24012059 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sat, 15 Dec 2012 22:17:39 -0500 (EST) Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1Tk4jP-0007cB-Oo; Sat, 15 Dec 2012 22:17:35 -0500 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 5/7] test: Sanity tests for the --format-version argument Date: Sat, 15 Dec 2012 22:17:27 -0500 Message-Id: <1355627849-29099-6-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1355627849-29099-1-git-send-email-amdragon@mit.edu> References: <1355627849-29099-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFIsWRmVeSWpSXmKPExsUixCmqrRtqezbA4N4UPYvVc3ksrt+cyezA 5LFz1l12j2erbjEHMEVx2aSk5mSWpRbp2yVwZUw93spc0MlS8erBE5YGxoXMXYwcHBICJhI3 VvJ0MXICmWISF+6tZwOxhQT2MUq8Wy/SxcgFZG9glFi/upsNwnnEJPHtxzwmCGcuo8Tpfc1g LWwCGhLb9i9nBLFFBKQldt6dzQpiMws4SnzevwisRljAU+LB0WPMIDaLgKrEnpcPWEGu4BVw kLh5IhbiCkWJ7mcTwMo5gVo3b/kJdZGDxOwjR9kmMPIvYGRYxSibklulm5uYmVOcmqxbnJyY l5dapGusl5tZopeaUrqJERxEknw7GL8eVDrEKMDBqMTDa/H1TIAQa2JZcWXuIUZJDiYlUd4c y7MBQnxJ+SmVGYnFGfFFpTmpxYcYJTiYlUR4k+YDlfOmJFZWpRblw6SkOViUxHmvpNz0FxJI TyxJzU5NLUgtgsnKcHAoSfAy2wANFSxKTU+tSMvMKUFIM3FwggznARquDFLDW1yQmFucmQ6R P8WoKCXOKwWSEABJZJTmwfXCovwVozjQK8K8GiBVPMAEAdf9CmgwE9Dg5TYgVxeXJCKkpBoY F7yv4DywPORIsl/eta91Cer7fgU/luF+uO+ZwKQfihMfztsc0nPJrv9+pXhKNtPnzya6izYv WC68dJkNs6Fm753tv07ayQotvcxjxnDi4JPmYEmLkF/9m0Nt7CR96xg/hc2ewibcYNYzKevu nLUiEmumeNf0XlzlkDhRSJh9WSaTMcfLdJY0JZbijERDLeai4kQAnt6Bm80CAAA= 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: Sun, 16 Dec 2012 03:17:44 -0000 --- test/json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/json b/test/json index bfafd55..8a01117 100755 --- a/test/json +++ b/test/json @@ -60,4 +60,10 @@ test_expect_equal_json "$output" "[{\"thread\": \"XXX\", \"tags\": [\"inbox\", \"unread\"]}]" +test_expect_code 20 "Format version: too low" \ + "notmuch search --format-version=0 \\*" + +test_expect_code 21 "Format version: too high" \ + "notmuch search --format-version=999 \\*" + test_done -- 1.7.10.4