From: Tomi Ollila Date: Thu, 9 Jan 2014 15:18:59 +0000 (+0200) Subject: test: renamed test scripts to format T\d\d\d-name.sh X-Git-Tag: 0.18_rc0~196 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/commitdiff_plain/a755c9d6a9099366cc82ba3a4bee8e6d2b83d529?hp=84719b08f757a6079f4c3331d0c476d19b265948 test: renamed test scripts to format T\d\d\d-name.sh All test scripts to be executed are now named as T\d\d\d-name.sh, numers in increments of 10. This eases adding new tests and developers to see which are test scripts that are executed by test suite and in which order. --- diff --git a/test/basic b/test/T000-basic.sh similarity index 100% rename from test/basic rename to test/T000-basic.sh diff --git a/test/help-test b/test/T010-help-test.sh similarity index 100% rename from test/help-test rename to test/T010-help-test.sh diff --git a/test/compact b/test/T020-compact.sh similarity index 100% rename from test/compact rename to test/T020-compact.sh diff --git a/test/config b/test/T030-config.sh similarity index 100% rename from test/config rename to test/T030-config.sh diff --git a/test/setup b/test/T040-setup.sh similarity index 100% rename from test/setup rename to test/T040-setup.sh diff --git a/test/new b/test/T050-new.sh similarity index 100% rename from test/new rename to test/T050-new.sh diff --git a/test/count b/test/T060-count.sh similarity index 100% rename from test/count rename to test/T060-count.sh diff --git a/test/insert b/test/T070-insert.sh similarity index 100% rename from test/insert rename to test/T070-insert.sh diff --git a/test/search b/test/T080-search.sh similarity index 100% rename from test/search rename to test/T080-search.sh diff --git a/test/search-output b/test/T090-search-output.sh similarity index 100% rename from test/search-output rename to test/T090-search-output.sh diff --git a/test/search-by-folder b/test/T100-search-by-folder.sh similarity index 100% rename from test/search-by-folder rename to test/T100-search-by-folder.sh diff --git a/test/search-position-overlap-bug b/test/T110-search-position-overlap-bug.sh similarity index 100% rename from test/search-position-overlap-bug rename to test/T110-search-position-overlap-bug.sh diff --git a/test/search-insufficient-from-quoting b/test/T120-search-insufficient-from-quoting.sh similarity index 100% rename from test/search-insufficient-from-quoting rename to test/T120-search-insufficient-from-quoting.sh diff --git a/test/search-limiting b/test/T130-search-limiting.sh similarity index 100% rename from test/search-limiting rename to test/T130-search-limiting.sh diff --git a/test/excludes b/test/T140-excludes.sh similarity index 100% rename from test/excludes rename to test/T140-excludes.sh diff --git a/test/tagging b/test/T150-tagging.sh similarity index 100% rename from test/tagging rename to test/T150-tagging.sh diff --git a/test/json b/test/T160-json.sh similarity index 100% rename from test/json rename to test/T160-json.sh diff --git a/test/sexp b/test/T170-sexp.sh similarity index 100% rename from test/sexp rename to test/T170-sexp.sh diff --git a/test/text b/test/T180-text.sh similarity index 100% rename from test/text rename to test/T180-text.sh diff --git a/test/multipart b/test/T190-multipart.sh similarity index 100% rename from test/multipart rename to test/T190-multipart.sh diff --git a/test/thread-naming b/test/T200-thread-naming.sh similarity index 100% rename from test/thread-naming rename to test/T200-thread-naming.sh diff --git a/test/raw b/test/T210-raw.sh similarity index 100% rename from test/raw rename to test/T210-raw.sh diff --git a/test/reply b/test/T220-reply.sh similarity index 100% rename from test/reply rename to test/T220-reply.sh diff --git a/test/reply-to-sender b/test/T230-reply-to-sender.sh similarity index 100% rename from test/reply-to-sender rename to test/T230-reply-to-sender.sh diff --git a/test/dump-restore b/test/T240-dump-restore.sh similarity index 100% rename from test/dump-restore rename to test/T240-dump-restore.sh diff --git a/test/uuencode b/test/T250-uuencode.sh similarity index 100% rename from test/uuencode rename to test/T250-uuencode.sh diff --git a/test/thread-order b/test/T260-thread-order.sh similarity index 100% rename from test/thread-order rename to test/T260-thread-order.sh diff --git a/test/author-order b/test/T270-author-order.sh similarity index 100% rename from test/author-order rename to test/T270-author-order.sh diff --git a/test/from-guessing b/test/T280-from-guessing.sh similarity index 100% rename from test/from-guessing rename to test/T280-from-guessing.sh diff --git a/test/long-id b/test/T290-long-id.sh similarity index 100% rename from test/long-id rename to test/T290-long-id.sh diff --git a/test/encoding b/test/T300-encoding.sh similarity index 100% rename from test/encoding rename to test/T300-encoding.sh diff --git a/test/emacs b/test/T310-emacs.sh similarity index 100% rename from test/emacs rename to test/T310-emacs.sh diff --git a/test/emacs-large-search-buffer b/test/T320-emacs-large-search-buffer.sh similarity index 100% rename from test/emacs-large-search-buffer rename to test/T320-emacs-large-search-buffer.sh diff --git a/test/emacs-subject-to-filename b/test/T330-emacs-subject-to-filename.sh similarity index 100% rename from test/emacs-subject-to-filename rename to test/T330-emacs-subject-to-filename.sh diff --git a/test/maildir-sync b/test/T340-maildir-sync.sh similarity index 100% rename from test/maildir-sync rename to test/T340-maildir-sync.sh diff --git a/test/crypto b/test/T350-crypto.sh similarity index 100% rename from test/crypto rename to test/T350-crypto.sh diff --git a/test/symbol-hiding b/test/T360-symbol-hiding.sh similarity index 100% rename from test/symbol-hiding rename to test/T360-symbol-hiding.sh diff --git a/test/search-folder-coherence b/test/T370-search-folder-coherence.sh similarity index 100% rename from test/search-folder-coherence rename to test/T370-search-folder-coherence.sh diff --git a/test/atomicity b/test/T380-atomicity.sh similarity index 100% rename from test/atomicity rename to test/T380-atomicity.sh diff --git a/test/python b/test/T390-python.sh similarity index 100% rename from test/python rename to test/T390-python.sh diff --git a/test/hooks b/test/T400-hooks.sh similarity index 100% rename from test/hooks rename to test/T400-hooks.sh diff --git a/test/argument-parsing b/test/T410-argument-parsing.sh similarity index 100% rename from test/argument-parsing rename to test/T410-argument-parsing.sh diff --git a/test/emacs-test-functions b/test/T420-emacs-test-functions.sh similarity index 100% rename from test/emacs-test-functions rename to test/T420-emacs-test-functions.sh diff --git a/test/emacs-address-cleaning b/test/T430-emacs-address-cleaning.sh similarity index 100% rename from test/emacs-address-cleaning rename to test/T430-emacs-address-cleaning.sh diff --git a/test/emacs-hello b/test/T440-emacs-hello.sh similarity index 100% rename from test/emacs-hello rename to test/T440-emacs-hello.sh diff --git a/test/emacs-show b/test/T450-emacs-show.sh similarity index 100% rename from test/emacs-show rename to test/T450-emacs-show.sh diff --git a/test/emacs-tree b/test/T460-emacs-tree.sh similarity index 100% rename from test/emacs-tree rename to test/T460-emacs-tree.sh diff --git a/test/missing-headers b/test/T470-missing-headers.sh similarity index 100% rename from test/missing-headers rename to test/T470-missing-headers.sh diff --git a/test/hex-escaping b/test/T480-hex-escaping.sh similarity index 100% rename from test/hex-escaping rename to test/T480-hex-escaping.sh diff --git a/test/parse-time-string b/test/T490-parse-time-string.sh similarity index 100% rename from test/parse-time-string rename to test/T490-parse-time-string.sh diff --git a/test/search-date b/test/T500-search-date.sh similarity index 100% rename from test/search-date rename to test/T500-search-date.sh diff --git a/test/thread-replies b/test/T510-thread-replies.sh similarity index 100% rename from test/thread-replies rename to test/T510-thread-replies.sh diff --git a/test/notmuch-test b/test/notmuch-test index d6fdd3a5..b8437127 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -16,61 +16,7 @@ fi cd $(dirname "$0") -TESTS=" - basic - help-test - compact - config - setup - new - count - insert - search - search-output - search-by-folder - search-position-overlap-bug - search-insufficient-from-quoting - search-limiting - excludes - tagging - json - sexp - text - multipart - thread-naming - raw - reply - reply-to-sender - dump-restore - uuencode - thread-order - author-order - from-guessing - long-id - encoding - emacs - emacs-large-search-buffer - emacs-subject-to-filename - maildir-sync - crypto - symbol-hiding - search-folder-coherence - atomicity - python - hooks - argument-parsing - emacs-test-functions - emacs-address-cleaning - emacs-hello - emacs-show - emacs-tree - missing-headers - hex-escaping - parse-time-string - search-date - thread-replies -" -TESTS=${NOTMUCH_TESTS:=$TESTS} +TESTS=${NOTMUCH_TESTS:-`echo T[0-9][0-9][0-9]-*.sh`} # Clean up any results from a previous run rm -r test-results >/dev/null 2>/dev/null diff --git a/test/test-lib.sh b/test/test-lib.sh index 2fcaba65..487075e5 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -27,6 +27,7 @@ shopt -u xpg_echo this_test=${0##*/} this_test=${this_test%.sh} +this_test=${this_test#T[0-9][0-9][0-9]-} # if --tee was passed, write the output not only to the terminal, but # additionally to the file test-results/$BASENAME.out, too.