--- /dev/null
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id EAEAA431FBC\r
+ for <notmuch@notmuchmail.org>; Thu, 9 Jan 2014 07:19:18 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.312\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.312 tagged_above=-999 required=5\r
+ tests=[GAPPY_SUBJECT=1.312] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 5yZPwDm6b3S8 for <notmuch@notmuchmail.org>;\r
+ Thu, 9 Jan 2014 07:19:13 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id 71089431FC2\r
+ for <notmuch@notmuchmail.org>; Thu, 9 Jan 2014 07:19:08 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id ED44A10008F; Thu, 9 Jan 2014 17:19:01 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] test: renamed test scripts to format T\d\d\d-name.sh\r
+Date: Thu, 9 Jan 2014 17:18:59 +0200\r
+Message-Id: <1389280739-31930-2-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.8.0\r
+In-Reply-To: <1389280739-31930-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1389280739-31930-1-git-send-email-tomi.ollila@iki.fi>\r
+Cc: tomi.ollila@iki.fi\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 09 Jan 2014 15:19:19 -0000\r
+\r
+All test scripts to be executed are now named as T\d\d\d-name.sh,\r
+numers in increments of 10.\r
+\r
+This eases adding new tests and developers to see which are test scripts\r
+that are executed by test suite and in which order.\r
+---\r
+\r
+Renaming was done using (beware! bash syntax ;):\r
+\r
+c=0\r
+for f in $TESTS\r
+do\r
+ printf -v name "T%03d-%s.sh" $c $f;\r
+ git mv $f $name\r
+ c=$((c + 10))\r
+done\r
+\r
+and git format-patch -M HEAD^^ was used to create this patch set.\r
+\r
+No reordering was done to the test set. I can do that in case Someone(TM)\r
+provides me ${TESTS} in desired order\r
+\r
+I plan to write 'rename-tests' script which can be used to rename tests\r
+in current order to have 10 -increments again (first testing that all\r
+T*.sh files to be rennamed are in git and then that there is no duplicate\r
+names (or something), but that is done after these changes are approved...\r
+\r
+\r
+ test/{basic => T000-basic.sh} | 0\r
+ test/{help-test => T010-help-test.sh} | 0\r
+ test/{compact => T020-compact.sh} | 0\r
+ test/{config => T030-config.sh} | 0\r
+ test/{setup => T040-setup.sh} | 0\r
+ test/{new => T050-new.sh} | 0\r
+ test/{count => T060-count.sh} | 0\r
+ test/{insert => T070-insert.sh} | 0\r
+ test/{search => T080-search.sh} | 0\r
+ test/{search-output => T090-search-output.sh} | 0\r
+ .../{search-by-folder => T100-search-by-folder.sh} | 0\r
+ ...lap-bug => T110-search-position-overlap-bug.sh} | 0\r
+ ...ng => T120-search-insufficient-from-quoting.sh} | 0\r
+ test/{search-limiting => T130-search-limiting.sh} | 0\r
+ test/{excludes => T140-excludes.sh} | 0\r
+ test/{tagging => T150-tagging.sh} | 0\r
+ test/{json => T160-json.sh} | 0\r
+ test/{sexp => T170-sexp.sh} | 0\r
+ test/{text => T180-text.sh} | 0\r
+ test/{multipart => T190-multipart.sh} | 0\r
+ test/{thread-naming => T200-thread-naming.sh} | 0\r
+ test/{raw => T210-raw.sh} | 0\r
+ test/{reply => T220-reply.sh} | 0\r
+ test/{reply-to-sender => T230-reply-to-sender.sh} | 0\r
+ test/{dump-restore => T240-dump-restore.sh} | 0\r
+ test/{uuencode => T250-uuencode.sh} | 0\r
+ test/{thread-order => T260-thread-order.sh} | 0\r
+ test/{author-order => T270-author-order.sh} | 0\r
+ test/{from-guessing => T280-from-guessing.sh} | 0\r
+ test/{long-id => T290-long-id.sh} | 0\r
+ test/{encoding => T300-encoding.sh} | 0\r
+ test/{emacs => T310-emacs.sh} | 0\r
+ ...ch-buffer => T320-emacs-large-search-buffer.sh} | 0\r
+ ...-filename => T330-emacs-subject-to-filename.sh} | 0\r
+ test/{maildir-sync => T340-maildir-sync.sh} | 0\r
+ test/{crypto => T350-crypto.sh} | 0\r
+ test/{symbol-hiding => T360-symbol-hiding.sh} | 0\r
+ ...r-coherence => T370-search-folder-coherence.sh} | 0\r
+ test/{atomicity => T380-atomicity.sh} | 0\r
+ test/{python => T390-python.sh} | 0\r
+ test/{hooks => T400-hooks.sh} | 0\r
+ .../{argument-parsing => T410-argument-parsing.sh} | 0\r
+ ...test-functions => T420-emacs-test-functions.sh} | 0\r
+ ...ess-cleaning => T430-emacs-address-cleaning.sh} | 0\r
+ test/{emacs-hello => T440-emacs-hello.sh} | 0\r
+ test/{emacs-show => T450-emacs-show.sh} | 0\r
+ test/{emacs-tree => T460-emacs-tree.sh} | 0\r
+ test/{missing-headers => T470-missing-headers.sh} | 0\r
+ test/{hex-escaping => T480-hex-escaping.sh} | 0\r
+ ...parse-time-string => T490-parse-time-string.sh} | 0\r
+ test/{search-date => T500-search-date.sh} | 0\r
+ test/{thread-replies => T510-thread-replies.sh} | 0\r
+ test/notmuch-test | 56 +---------------------\r
+ test/test-lib.sh | 1 +\r
+ 54 files changed, 2 insertions(+), 55 deletions(-)\r
+ rename test/{basic => T000-basic.sh} (100%)\r
+ rename test/{help-test => T010-help-test.sh} (100%)\r
+ rename test/{compact => T020-compact.sh} (100%)\r
+ rename test/{config => T030-config.sh} (100%)\r
+ rename test/{setup => T040-setup.sh} (100%)\r
+ rename test/{new => T050-new.sh} (100%)\r
+ rename test/{count => T060-count.sh} (100%)\r
+ rename test/{insert => T070-insert.sh} (100%)\r
+ rename test/{search => T080-search.sh} (100%)\r
+ rename test/{search-output => T090-search-output.sh} (100%)\r
+ rename test/{search-by-folder => T100-search-by-folder.sh} (100%)\r
+ rename test/{search-position-overlap-bug => T110-search-position-overlap-bug.sh} (100%)\r
+ rename test/{search-insufficient-from-quoting => T120-search-insufficient-from-quoting.sh} (100%)\r
+ rename test/{search-limiting => T130-search-limiting.sh} (100%)\r
+ rename test/{excludes => T140-excludes.sh} (100%)\r
+ rename test/{tagging => T150-tagging.sh} (100%)\r
+ rename test/{json => T160-json.sh} (100%)\r
+ rename test/{sexp => T170-sexp.sh} (100%)\r
+ rename test/{text => T180-text.sh} (100%)\r
+ rename test/{multipart => T190-multipart.sh} (100%)\r
+ rename test/{thread-naming => T200-thread-naming.sh} (100%)\r
+ rename test/{raw => T210-raw.sh} (100%)\r
+ rename test/{reply => T220-reply.sh} (100%)\r
+ rename test/{reply-to-sender => T230-reply-to-sender.sh} (100%)\r
+ rename test/{dump-restore => T240-dump-restore.sh} (100%)\r
+ rename test/{uuencode => T250-uuencode.sh} (100%)\r
+ rename test/{thread-order => T260-thread-order.sh} (100%)\r
+ rename test/{author-order => T270-author-order.sh} (100%)\r
+ rename test/{from-guessing => T280-from-guessing.sh} (100%)\r
+ rename test/{long-id => T290-long-id.sh} (100%)\r
+ rename test/{encoding => T300-encoding.sh} (100%)\r
+ rename test/{emacs => T310-emacs.sh} (100%)\r
+ rename test/{emacs-large-search-buffer => T320-emacs-large-search-buffer.sh} (100%)\r
+ rename test/{emacs-subject-to-filename => T330-emacs-subject-to-filename.sh} (100%)\r
+ rename test/{maildir-sync => T340-maildir-sync.sh} (100%)\r
+ rename test/{crypto => T350-crypto.sh} (100%)\r
+ rename test/{symbol-hiding => T360-symbol-hiding.sh} (100%)\r
+ rename test/{search-folder-coherence => T370-search-folder-coherence.sh} (100%)\r
+ rename test/{atomicity => T380-atomicity.sh} (100%)\r
+ rename test/{python => T390-python.sh} (100%)\r
+ rename test/{hooks => T400-hooks.sh} (100%)\r
+ rename test/{argument-parsing => T410-argument-parsing.sh} (100%)\r
+ rename test/{emacs-test-functions => T420-emacs-test-functions.sh} (100%)\r
+ rename test/{emacs-address-cleaning => T430-emacs-address-cleaning.sh} (100%)\r
+ rename test/{emacs-hello => T440-emacs-hello.sh} (100%)\r
+ rename test/{emacs-show => T450-emacs-show.sh} (100%)\r
+ rename test/{emacs-tree => T460-emacs-tree.sh} (100%)\r
+ rename test/{missing-headers => T470-missing-headers.sh} (100%)\r
+ rename test/{hex-escaping => T480-hex-escaping.sh} (100%)\r
+ rename test/{parse-time-string => T490-parse-time-string.sh} (100%)\r
+ rename test/{search-date => T500-search-date.sh} (100%)\r
+ rename test/{thread-replies => T510-thread-replies.sh} (100%)\r
+\r
+diff --git a/test/basic b/test/T000-basic.sh\r
+similarity index 100%\r
+rename from test/basic\r
+rename to test/T000-basic.sh\r
+diff --git a/test/help-test b/test/T010-help-test.sh\r
+similarity index 100%\r
+rename from test/help-test\r
+rename to test/T010-help-test.sh\r
+diff --git a/test/compact b/test/T020-compact.sh\r
+similarity index 100%\r
+rename from test/compact\r
+rename to test/T020-compact.sh\r
+diff --git a/test/config b/test/T030-config.sh\r
+similarity index 100%\r
+rename from test/config\r
+rename to test/T030-config.sh\r
+diff --git a/test/setup b/test/T040-setup.sh\r
+similarity index 100%\r
+rename from test/setup\r
+rename to test/T040-setup.sh\r
+diff --git a/test/new b/test/T050-new.sh\r
+similarity index 100%\r
+rename from test/new\r
+rename to test/T050-new.sh\r
+diff --git a/test/count b/test/T060-count.sh\r
+similarity index 100%\r
+rename from test/count\r
+rename to test/T060-count.sh\r
+diff --git a/test/insert b/test/T070-insert.sh\r
+similarity index 100%\r
+rename from test/insert\r
+rename to test/T070-insert.sh\r
+diff --git a/test/search b/test/T080-search.sh\r
+similarity index 100%\r
+rename from test/search\r
+rename to test/T080-search.sh\r
+diff --git a/test/search-output b/test/T090-search-output.sh\r
+similarity index 100%\r
+rename from test/search-output\r
+rename to test/T090-search-output.sh\r
+diff --git a/test/search-by-folder b/test/T100-search-by-folder.sh\r
+similarity index 100%\r
+rename from test/search-by-folder\r
+rename to test/T100-search-by-folder.sh\r
+diff --git a/test/search-position-overlap-bug b/test/T110-search-position-overlap-bug.sh\r
+similarity index 100%\r
+rename from test/search-position-overlap-bug\r
+rename to test/T110-search-position-overlap-bug.sh\r
+diff --git a/test/search-insufficient-from-quoting b/test/T120-search-insufficient-from-quoting.sh\r
+similarity index 100%\r
+rename from test/search-insufficient-from-quoting\r
+rename to test/T120-search-insufficient-from-quoting.sh\r
+diff --git a/test/search-limiting b/test/T130-search-limiting.sh\r
+similarity index 100%\r
+rename from test/search-limiting\r
+rename to test/T130-search-limiting.sh\r
+diff --git a/test/excludes b/test/T140-excludes.sh\r
+similarity index 100%\r
+rename from test/excludes\r
+rename to test/T140-excludes.sh\r
+diff --git a/test/tagging b/test/T150-tagging.sh\r
+similarity index 100%\r
+rename from test/tagging\r
+rename to test/T150-tagging.sh\r
+diff --git a/test/json b/test/T160-json.sh\r
+similarity index 100%\r
+rename from test/json\r
+rename to test/T160-json.sh\r
+diff --git a/test/sexp b/test/T170-sexp.sh\r
+similarity index 100%\r
+rename from test/sexp\r
+rename to test/T170-sexp.sh\r
+diff --git a/test/text b/test/T180-text.sh\r
+similarity index 100%\r
+rename from test/text\r
+rename to test/T180-text.sh\r
+diff --git a/test/multipart b/test/T190-multipart.sh\r
+similarity index 100%\r
+rename from test/multipart\r
+rename to test/T190-multipart.sh\r
+diff --git a/test/thread-naming b/test/T200-thread-naming.sh\r
+similarity index 100%\r
+rename from test/thread-naming\r
+rename to test/T200-thread-naming.sh\r
+diff --git a/test/raw b/test/T210-raw.sh\r
+similarity index 100%\r
+rename from test/raw\r
+rename to test/T210-raw.sh\r
+diff --git a/test/reply b/test/T220-reply.sh\r
+similarity index 100%\r
+rename from test/reply\r
+rename to test/T220-reply.sh\r
+diff --git a/test/reply-to-sender b/test/T230-reply-to-sender.sh\r
+similarity index 100%\r
+rename from test/reply-to-sender\r
+rename to test/T230-reply-to-sender.sh\r
+diff --git a/test/dump-restore b/test/T240-dump-restore.sh\r
+similarity index 100%\r
+rename from test/dump-restore\r
+rename to test/T240-dump-restore.sh\r
+diff --git a/test/uuencode b/test/T250-uuencode.sh\r
+similarity index 100%\r
+rename from test/uuencode\r
+rename to test/T250-uuencode.sh\r
+diff --git a/test/thread-order b/test/T260-thread-order.sh\r
+similarity index 100%\r
+rename from test/thread-order\r
+rename to test/T260-thread-order.sh\r
+diff --git a/test/author-order b/test/T270-author-order.sh\r
+similarity index 100%\r
+rename from test/author-order\r
+rename to test/T270-author-order.sh\r
+diff --git a/test/from-guessing b/test/T280-from-guessing.sh\r
+similarity index 100%\r
+rename from test/from-guessing\r
+rename to test/T280-from-guessing.sh\r
+diff --git a/test/long-id b/test/T290-long-id.sh\r
+similarity index 100%\r
+rename from test/long-id\r
+rename to test/T290-long-id.sh\r
+diff --git a/test/encoding b/test/T300-encoding.sh\r
+similarity index 100%\r
+rename from test/encoding\r
+rename to test/T300-encoding.sh\r
+diff --git a/test/emacs b/test/T310-emacs.sh\r
+similarity index 100%\r
+rename from test/emacs\r
+rename to test/T310-emacs.sh\r
+diff --git a/test/emacs-large-search-buffer b/test/T320-emacs-large-search-buffer.sh\r
+similarity index 100%\r
+rename from test/emacs-large-search-buffer\r
+rename to test/T320-emacs-large-search-buffer.sh\r
+diff --git a/test/emacs-subject-to-filename b/test/T330-emacs-subject-to-filename.sh\r
+similarity index 100%\r
+rename from test/emacs-subject-to-filename\r
+rename to test/T330-emacs-subject-to-filename.sh\r
+diff --git a/test/maildir-sync b/test/T340-maildir-sync.sh\r
+similarity index 100%\r
+rename from test/maildir-sync\r
+rename to test/T340-maildir-sync.sh\r
+diff --git a/test/crypto b/test/T350-crypto.sh\r
+similarity index 100%\r
+rename from test/crypto\r
+rename to test/T350-crypto.sh\r
+diff --git a/test/symbol-hiding b/test/T360-symbol-hiding.sh\r
+similarity index 100%\r
+rename from test/symbol-hiding\r
+rename to test/T360-symbol-hiding.sh\r
+diff --git a/test/search-folder-coherence b/test/T370-search-folder-coherence.sh\r
+similarity index 100%\r
+rename from test/search-folder-coherence\r
+rename to test/T370-search-folder-coherence.sh\r
+diff --git a/test/atomicity b/test/T380-atomicity.sh\r
+similarity index 100%\r
+rename from test/atomicity\r
+rename to test/T380-atomicity.sh\r
+diff --git a/test/python b/test/T390-python.sh\r
+similarity index 100%\r
+rename from test/python\r
+rename to test/T390-python.sh\r
+diff --git a/test/hooks b/test/T400-hooks.sh\r
+similarity index 100%\r
+rename from test/hooks\r
+rename to test/T400-hooks.sh\r
+diff --git a/test/argument-parsing b/test/T410-argument-parsing.sh\r
+similarity index 100%\r
+rename from test/argument-parsing\r
+rename to test/T410-argument-parsing.sh\r
+diff --git a/test/emacs-test-functions b/test/T420-emacs-test-functions.sh\r
+similarity index 100%\r
+rename from test/emacs-test-functions\r
+rename to test/T420-emacs-test-functions.sh\r
+diff --git a/test/emacs-address-cleaning b/test/T430-emacs-address-cleaning.sh\r
+similarity index 100%\r
+rename from test/emacs-address-cleaning\r
+rename to test/T430-emacs-address-cleaning.sh\r
+diff --git a/test/emacs-hello b/test/T440-emacs-hello.sh\r
+similarity index 100%\r
+rename from test/emacs-hello\r
+rename to test/T440-emacs-hello.sh\r
+diff --git a/test/emacs-show b/test/T450-emacs-show.sh\r
+similarity index 100%\r
+rename from test/emacs-show\r
+rename to test/T450-emacs-show.sh\r
+diff --git a/test/emacs-tree b/test/T460-emacs-tree.sh\r
+similarity index 100%\r
+rename from test/emacs-tree\r
+rename to test/T460-emacs-tree.sh\r
+diff --git a/test/missing-headers b/test/T470-missing-headers.sh\r
+similarity index 100%\r
+rename from test/missing-headers\r
+rename to test/T470-missing-headers.sh\r
+diff --git a/test/hex-escaping b/test/T480-hex-escaping.sh\r
+similarity index 100%\r
+rename from test/hex-escaping\r
+rename to test/T480-hex-escaping.sh\r
+diff --git a/test/parse-time-string b/test/T490-parse-time-string.sh\r
+similarity index 100%\r
+rename from test/parse-time-string\r
+rename to test/T490-parse-time-string.sh\r
+diff --git a/test/search-date b/test/T500-search-date.sh\r
+similarity index 100%\r
+rename from test/search-date\r
+rename to test/T500-search-date.sh\r
+diff --git a/test/thread-replies b/test/T510-thread-replies.sh\r
+similarity index 100%\r
+rename from test/thread-replies\r
+rename to test/T510-thread-replies.sh\r
+diff --git a/test/notmuch-test b/test/notmuch-test\r
+index d6fdd3a..b843712 100755\r
+--- a/test/notmuch-test\r
++++ b/test/notmuch-test\r
+@@ -16,61 +16,7 @@ fi\r
+ \r
+ cd $(dirname "$0")\r
+ \r
+-TESTS="\r
+- basic\r
+- help-test\r
+- compact\r
+- config\r
+- setup\r
+- new\r
+- count\r
+- insert\r
+- search\r
+- search-output\r
+- search-by-folder\r
+- search-position-overlap-bug\r
+- search-insufficient-from-quoting\r
+- search-limiting\r
+- excludes\r
+- tagging\r
+- json\r
+- sexp\r
+- text\r
+- multipart\r
+- thread-naming\r
+- raw\r
+- reply\r
+- reply-to-sender\r
+- dump-restore\r
+- uuencode\r
+- thread-order\r
+- author-order\r
+- from-guessing\r
+- long-id\r
+- encoding\r
+- emacs\r
+- emacs-large-search-buffer\r
+- emacs-subject-to-filename\r
+- maildir-sync\r
+- crypto\r
+- symbol-hiding\r
+- search-folder-coherence\r
+- atomicity\r
+- python\r
+- hooks\r
+- argument-parsing\r
+- emacs-test-functions\r
+- emacs-address-cleaning\r
+- emacs-hello\r
+- emacs-show\r
+- emacs-tree\r
+- missing-headers\r
+- hex-escaping\r
+- parse-time-string\r
+- search-date\r
+- thread-replies\r
+-"\r
+-TESTS=${NOTMUCH_TESTS:=$TESTS}\r
++TESTS=${NOTMUCH_TESTS:-`echo T[0-9][0-9][0-9]-*.sh`}\r
+ \r
+ # Clean up any results from a previous run\r
+ rm -r test-results >/dev/null 2>/dev/null\r
+diff --git a/test/test-lib.sh b/test/test-lib.sh\r
+index 2fcaba6..487075e 100644\r
+--- a/test/test-lib.sh\r
++++ b/test/test-lib.sh\r
+@@ -27,6 +27,7 @@ shopt -u xpg_echo\r
+ \r
+ this_test=${0##*/}\r
+ this_test=${this_test%.sh}\r
++this_test=${this_test#T[0-9][0-9][0-9]-}\r
+ \r
+ # if --tee was passed, write the output not only to the terminal, but\r
+ # additionally to the file test-results/$BASENAME.out, too.\r
+-- \r
+1.8.4.2\r
+\r