From: Carl Worth <cworth@cworth.org> Date: Fri, 17 Sep 2010 22:58:39 +0000 (-0700) Subject: test: Rename all tests to get rid of the ugly numbers in file names. X-Git-Tag: 0.4~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7263aa9ec3f72bb65a491b2c64345ab5258b24ee;p=notmuch.git test: Rename all tests to get rid of the ugly numbers in file names. 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. --- diff --git a/test/t0009-author-reordering.sh b/test/author-reordering similarity index 100% rename from test/t0009-author-reordering.sh rename to test/author-reordering diff --git a/test/t0000-basic.sh b/test/basic similarity index 100% rename from test/t0000-basic.sh rename to test/basic diff --git a/test/t0006-dump-restore.sh b/test/dump-restore similarity index 100% rename from test/t0006-dump-restore.sh rename to test/dump-restore diff --git a/test/t0012-encoding-issues.sh b/test/encoding-issues similarity index 100% rename from test/t0012-encoding-issues.sh rename to test/encoding-issues diff --git a/test/t0010-from-line-heuristics.sh b/test/from-line-heuristics similarity index 100% rename from test/t0010-from-line-heuristics.sh rename to test/from-line-heuristics diff --git a/test/t0003-json.sh b/test/json similarity index 100% rename from test/t0003-json.sh rename to test/json diff --git a/test/t0011-long-msgid.sh b/test/long-msgid similarity index 100% rename from test/t0011-long-msgid.sh rename to test/long-msgid diff --git a/test/t0001-new.sh b/test/new similarity index 100% rename from test/t0001-new.sh rename to test/new diff --git a/test/notmuch-test b/test/notmuch-test index 61b9280a..9b00d335 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -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 diff --git a/test/t0005-reply.sh b/test/reply similarity index 100% rename from test/t0005-reply.sh rename to test/reply diff --git a/test/t0002-search.sh b/test/search similarity index 100% rename from test/t0002-search.sh rename to test/search diff --git a/test/t0004-thread-naming.sh b/test/thread-naming similarity index 100% rename from test/t0004-thread-naming.sh rename to test/thread-naming diff --git a/test/t0008-threading-out-of-order.sh b/test/threading-out-of-order similarity index 100% rename from test/t0008-threading-out-of-order.sh rename to test/threading-out-of-order diff --git a/test/t0007-uuencode.sh b/test/uuencode similarity index 100% rename from test/t0007-uuencode.sh rename to test/uuencode