mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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.
This commit is contained in:
parent
f43b23f8e0
commit
047cd7a595
6 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue