From: David Bremner Date: Mon, 13 Aug 2012 20:13:45 +0000 (+0200) Subject: Random message corpus, v2 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9e86af2fb5abb8504ece28c70211869faa2db029;p=notmuch-archives.git Random message corpus, v2 --- diff --git a/93/8d8cced8a9f90cfb128782b4173a2020635fb9 b/93/8d8cced8a9f90cfb128782b4173a2020635fb9 new file mode 100644 index 000000000..a72088485 --- /dev/null +++ b/93/8d8cced8a9f90cfb128782b4173a2020635fb9 @@ -0,0 +1,91 @@ +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 E37D9431FC9 + for ; Tue, 14 Aug 2012 02:02:39 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 0nL9ypz9drQ4 for ; + Tue, 14 Aug 2012 02:02:39 -0700 (PDT) +Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 3C2D9431FB6 + for ; Tue, 14 Aug 2012 02:02:39 -0700 (PDT) +Received: from remotemail by tesseract.cs.unb.ca with local (Exim 4.72) + (envelope-from ) id 1T1D1K-00061d-NK + for notmuch@notmuchmail.org; Tue, 14 Aug 2012 06:02:38 -0300 +Received: (nullmailer pid 5238 invoked by uid 1000); + Mon, 13 Aug 2012 20:14:00 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: Random message corpus, v2 +Date: Mon, 13 Aug 2012 22:13:45 +0200 +Message-Id: <1344888831-4301-1-git-send-email-bremner@debian.org> +X-Mailer: git-send-email 1.7.10.4 +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: Tue, 14 Aug 2012 09:02:40 -0000 + +This obsoletes the series + + id:"1344190393-22497-1-git-send-email-david@tethera.net" + +[Patch v2 1/6] hex-escape: (en|de)code strings to/from restricted +[Patch v2 2/6] test/hex-xcode: new test binary +[Patch v2 3/6] test/hex-escaping: new test for hex escaping routines + +In order to avoid the problem of trashing people's terminals, the new +version hex escapes the files being compared. This brings in another +three patches from the previous dump-restore series, but we need them +anyway for the eventual new dump-restore format. + +[Patch v2 4/6] test: add database routines for testing. + +No changes since v1. + +[Patch v2 5/6] test: add generator for random "stub" messages + +- Simplified to have only two character classes. +- Fix bug with "stop - start" as opposed to "start - stop" + +See id:"87393x3jz1.fsf@qmul.ac.uk" + +[Patch v2 6/6] test: add broken roundtrip test + +- use hexdump to encode non-ascii octets. + + See id:"87zk6524f0.fsf@qmul.ac.uk" + +- Both Mark and Jamie remarked on the use of 'test_expect_success' + Basically there are two styles of running tests, "git style" as + written here, or "notmuch style" using "test_begin_subtest". The + git style seems to be more robust against failure of intermediate + commands: for example, if the hex-xcode binary is missing, the + corresponding notmuch style test shows (wrongly) as fixed (see + also id:"1317317811-29540-1-git-send-email-thomas@schwinge.name" for + Thomas converting some notmuch style tests to git style). + + Obviously the notmuch style is more pleasant to edit. Maybe there + is a way to make them more robust; something like "set -e". + + Note that some failures still do not abort the test, because of a + missing "set -o pipefile". Setting this locally in a test seems + definitely wrong, but maybe it should be set globally in test-lib.sh