test: Rename all tests to get rid of the ugly numbers in file names.
authorCarl Worth <cworth@cworth.org>
Fri, 17 Sep 2010 22:58:39 +0000 (15:58 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 17 Sep 2010 23:01:42 +0000 (16:01 -0700)
The numbers were meaningless, and they made it hard to find a file of interest.

Instead, we get the ordering we want by adding an explicit list of
tests to run to the notmuch-test script.

14 files changed:
test/author-reordering [moved from test/t0009-author-reordering.sh with 100% similarity]
test/basic [moved from test/t0000-basic.sh with 100% similarity]
test/dump-restore [moved from test/t0006-dump-restore.sh with 100% similarity]
test/encoding-issues [moved from test/t0012-encoding-issues.sh with 100% similarity]
test/from-line-heuristics [moved from test/t0010-from-line-heuristics.sh with 100% similarity]
test/json [moved from test/t0003-json.sh with 100% similarity]
test/long-msgid [moved from test/t0011-long-msgid.sh with 100% similarity]
test/new [moved from test/t0001-new.sh with 100% similarity]
test/notmuch-test
test/reply [moved from test/t0005-reply.sh with 100% similarity]
test/search [moved from test/t0002-search.sh with 100% similarity]
test/thread-naming [moved from test/t0004-thread-naming.sh with 100% similarity]
test/threading-out-of-order [moved from test/t0008-threading-out-of-order.sh with 100% similarity]
test/uuencode [moved from test/t0007-uuencode.sh with 100% similarity]

similarity index 100%
rename from test/t0000-basic.sh
rename to test/basic
similarity index 100%
rename from test/t0006-dump-restore.sh
rename to test/dump-restore
similarity index 100%
rename from test/t0003-json.sh
rename to test/json
similarity index 100%
rename from test/t0011-long-msgid.sh
rename to test/long-msgid
similarity index 100%
rename from test/t0001-new.sh
rename to test/new
index 61b9280ad042a1ad505b97eb3dbb74fb9fddf001..9b00d335093d4f042d6ba51871991b9bf0a3bdaf 100755 (executable)
@@ -8,16 +8,18 @@
 
 cd $(dirname "$0")
 
+TESTS="basic new search json thread-naming reply dump-restore uuencode threading-out-of-order author-reordering from-line-heuristics long-msgid encoding-issues"
+
 # Clean up any results from a previous run
 rm -r test-results >/dev/null 2>/dev/null
 
 # Run the tests
-for test in t[0-9][0-9][0-9][0-9]*.sh; do
-       ./"$test"
+for test in $TESTS; do
+       ./$test
 done
 
 # Report results
-./aggregate-results.sh test-results/t*-*
+./aggregate-results.sh test-results/*
 
 # Clean up
-#rm -r test-results
+rm -r test-results
similarity index 100%
rename from test/t0005-reply.sh
rename to test/reply
similarity index 100%
rename from test/t0002-search.sh
rename to test/search
similarity index 100%
rename from test/t0007-uuencode.sh
rename to test/uuencode