aboutsummaryrefslogtreecommitdiffhomepage
path: root/performance-test
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2012-12-16 14:14:13 -0400
committerGravatar David Bremner <bremner@debian.org>2012-12-25 08:49:24 -0400
commite233f6dfde1a1798a0c199321579a89fdd0e9610 (patch)
treebb0d3e2162ccb466058997e4ad4d68855dacb49c /performance-test
parent098ef4af4d0a52a6b4daed5324a7c77f6c9108da (diff)
perf-test: add memory leak test for dump restore
In id:87vcc2q5n2.fsf@nikula.org, Jani points out a memory leak in the current version of the sup restore code. Among other things, this test is intended to verify a fix for that leak.
Diffstat (limited to 'performance-test')
-rwxr-xr-xperformance-test/M01-dump-restore15
1 files changed, 15 insertions, 0 deletions
diff --git a/performance-test/M01-dump-restore b/performance-test/M01-dump-restore
new file mode 100755
index 00000000..be5894a6
--- /dev/null
+++ b/performance-test/M01-dump-restore
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+test_description='dump and restore'
+
+. ./perf-test-lib.sh
+
+memory_start
+
+memory_run 'load nmbug tags' 'notmuch restore --accumulate --input=corpus.tags/nmbug.sup-dump'
+memory_run 'dump *' 'notmuch dump --output=tags.sup'
+memory_run 'restore *' 'notmuch restore --input=tags.sup'
+memory_run 'dump --format=batch-tag *' 'notmuch dump --format=batch-tag --output=tags.bt'
+memory_run 'restore --format=batch-tag *' 'notmuch restore --format=batch-tag --input=tags.bt'
+
+memory_done