From 047cd7a595f760a23415b9e38d7136325f28b114 Mon Sep 17 00:00:00 2001
From: David Bremner <bremner@debian.org>
Date: Sun, 16 Dec 2012 10:55:51 -0400
Subject: [PATCH] perf-test: rename current tests as "time tests"

This is almost entirely renaming files, except for updating a few
references to those file names, and changing the makefile target.

A new set of memory tests will be run separately because they take
much longer.
---
 performance-test/Makefile.local                          | 2 +-
 performance-test/README                                  | 9 +++++----
 performance-test/{00-new => T00-new}                     | 0
 performance-test/{01-dump-restore => T01-dump-restore}   | 0
 performance-test/{02-tag => T02-tag}                     | 0
 .../{notmuch-perf-test => notmuch-time-test}             | 6 +++---
 6 files changed, 9 insertions(+), 8 deletions(-)
 rename performance-test/{00-new => T00-new} (100%)
 rename performance-test/{01-dump-restore => T01-dump-restore} (100%)
 rename performance-test/{02-tag => T02-tag} (100%)
 rename performance-test/{notmuch-perf-test => notmuch-time-test} (93%)

diff --git a/performance-test/Makefile.local b/performance-test/Makefile.local
index 3834e4d7..57beb443 100644
--- a/performance-test/Makefile.local
+++ b/performance-test/Makefile.local
@@ -10,7 +10,7 @@ SIGFILE := ${TXZFILE}.asc
 TEST_SCRIPT := ${dir}/notmuch-perf-test
 DEFAULT_URL :=  http://notmuchmail.org/releases/${CORPUS_NAME}
 
-perf-test: setup-perf-test all
+time-test: setup-perf-test all
 	$(TEST_SCRIPT) $(OPTIONS)
 
 .PHONY: download-corpus setup-perf-test
diff --git a/performance-test/README b/performance-test/README
index 14816602..d1fb6de4 100644
--- a/performance-test/README
+++ b/performance-test/README
@@ -36,8 +36,8 @@ for a list of mirrors.
 Running tests
 -------------
 
-The easiest way to run performance tests is to say "make perf-test", (or
-simply run the notmuch-perf-test script). Either command will run all
+The easiest way to run performance tests is to say "make time-test", (or
+simply run the notmuch-time-test script). Either command will run all
 available performance tests.
 
 Alternately, you can run a specific subset of tests by simply invoking
@@ -51,7 +51,7 @@ Each test script supports the following arguments
 Writing tests
 -------------
 
-Have a look at "01-dump-restore" for an example. Sourcing
+Have a look at "T01-dump-restore" for an example. Sourcing
 "perf-test-lib.sh" is mandatory.  Utility functions include
 
 - 'add_email_corpus' unpacks a set of messages and adds them to the database.
@@ -65,4 +65,5 @@ Have a look at "01-dump-restore" for an example. Sourcing
 
 Scripts are run in the order specified in notmuch-perf-test. In the
 future this order might be chosen automatically so please follow the
-convention of starting the name with two digits to specify the order.
+convention of starting the name with 'T' followed by two digits to
+specify the order.
diff --git a/performance-test/00-new b/performance-test/T00-new
similarity index 100%
rename from performance-test/00-new
rename to performance-test/T00-new
diff --git a/performance-test/01-dump-restore b/performance-test/T01-dump-restore
similarity index 100%
rename from performance-test/01-dump-restore
rename to performance-test/T01-dump-restore
diff --git a/performance-test/02-tag b/performance-test/T02-tag
similarity index 100%
rename from performance-test/02-tag
rename to performance-test/T02-tag
diff --git a/performance-test/notmuch-perf-test b/performance-test/notmuch-time-test
similarity index 93%
rename from performance-test/notmuch-perf-test
rename to performance-test/notmuch-time-test
index fc39d8a9..54a208f7 100755
--- a/performance-test/notmuch-perf-test
+++ b/performance-test/notmuch-time-test
@@ -17,9 +17,9 @@ fi
 cd $(dirname "$0")
 
 TESTS="
-  00-new
-  01-dump-restore
-  02-tag
+  T00-new
+  T01-dump-restore
+  T02-tag
 "
 
 for test in $TESTS; do
-- 
2.45.2