From 7263aa9ec3f72bb65a491b2c64345ab5258b24ee Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 17 Sep 2010 15:58:39 -0700 Subject: [PATCH] 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. --- test/{t0009-author-reordering.sh => author-reordering} | 0 test/{t0000-basic.sh => basic} | 0 test/{t0006-dump-restore.sh => dump-restore} | 0 test/{t0012-encoding-issues.sh => encoding-issues} | 0 ...10-from-line-heuristics.sh => from-line-heuristics} | 0 test/{t0003-json.sh => json} | 0 test/{t0011-long-msgid.sh => long-msgid} | 0 test/{t0001-new.sh => new} | 0 test/notmuch-test | 10 ++++++---- test/{t0005-reply.sh => reply} | 0 test/{t0002-search.sh => search} | 0 test/{t0004-thread-naming.sh => thread-naming} | 0 ...hreading-out-of-order.sh => threading-out-of-order} | 0 test/{t0007-uuencode.sh => uuencode} | 0 14 files changed, 6 insertions(+), 4 deletions(-) rename test/{t0009-author-reordering.sh => author-reordering} (100%) rename test/{t0000-basic.sh => basic} (100%) rename test/{t0006-dump-restore.sh => dump-restore} (100%) rename test/{t0012-encoding-issues.sh => encoding-issues} (100%) rename test/{t0010-from-line-heuristics.sh => from-line-heuristics} (100%) rename test/{t0003-json.sh => json} (100%) rename test/{t0011-long-msgid.sh => long-msgid} (100%) rename test/{t0001-new.sh => new} (100%) rename test/{t0005-reply.sh => reply} (100%) rename test/{t0002-search.sh => search} (100%) rename test/{t0004-thread-naming.sh => thread-naming} (100%) rename test/{t0008-threading-out-of-order.sh => threading-out-of-order} (100%) rename test/{t0007-uuencode.sh => uuencode} (100%) 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