[PATCH 2/4] perf-test: rename time tests to have .sh suffix
authordavid <david@tethera.net>
Wed, 15 May 2013 11:03:01 +0000 (08:03 +2100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:54:45 +0000 (09:54 -0800)
af/1a26bf2a07edc750a230929b9049dc6b4ab37e [new file with mode: 0644]

diff --git a/af/1a26bf2a07edc750a230929b9049dc6b4ab37e b/af/1a26bf2a07edc750a230929b9049dc6b4ab37e
new file mode 100644 (file)
index 0000000..470e4c8
--- /dev/null
@@ -0,0 +1,198 @@
+Return-Path: <bremner@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3CA4D431FC3\r
+       for <notmuch@notmuchmail.org>; Wed, 15 May 2013 04:03:43 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id G-2PcsODa63t for <notmuch@notmuchmail.org>;\r
+       Wed, 15 May 2013 04:03:36 -0700 (PDT)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id DC7F9431FD8\r
+       for <notmuch@notmuchmail.org>; Wed, 15 May 2013 04:03:22 -0700 (PDT)\r
+Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
+       by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id r4FB3DgC020235;\r
+       Wed, 15 May 2013 08:03:13 -0300\r
+Received: from fctnnbsc30w-156034082078.dhcp-dynamic.fibreop.nb.bellaliant.net\r
+       ([156.34.82.78] helo=zancas.localnet)\r
+       by tesseract.cs.unb.ca with esmtpsa\r
+       (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80)\r
+       (envelope-from <bremner@tethera.net>)\r
+       id 1UcZUF-0002OD-GD; Wed, 15 May 2013 08:03:13 -0300\r
+Received: from bremner by zancas.localnet with local (Exim 4.80)\r
+       (envelope-from <bremner@tethera.net>)\r
+       id 1UcZU9-0001mC-UR; Wed, 15 May 2013 08:03:05 -0300\r
+From: david@tethera.net\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/4] perf-test: rename time tests to have .sh suffix\r
+Date: Wed, 15 May 2013 08:03:01 -0300\r
+Message-Id: <1368615783-4941-3-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 1.8.2.rc2\r
+In-Reply-To: <1368615783-4941-1-git-send-email-david@tethera.net>\r
+References: <1368615783-4941-1-git-send-email-david@tethera.net>\r
+X-Spam_bar: -\r
+Cc: David Bremner <bremner@debian.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 15 May 2013 11:03:43 -0000\r
+\r
+From: David Bremner <bremner@debian.org>\r
+\r
+This will simplify notmuch time tests\r
+---\r
+ performance-test/T00-new             | 15 ---------------\r
+ performance-test/T00-new.sh          | 15 +++++++++++++++\r
+ performance-test/T01-dump-restore    | 13 -------------\r
+ performance-test/T01-dump-restore.sh | 13 +++++++++++++\r
+ performance-test/T02-tag             | 14 --------------\r
+ performance-test/T02-tag.sh          | 14 ++++++++++++++\r
+ 6 files changed, 42 insertions(+), 42 deletions(-)\r
+ delete mode 100755 performance-test/T00-new\r
+ create mode 100755 performance-test/T00-new.sh\r
+ delete mode 100755 performance-test/T01-dump-restore\r
+ create mode 100755 performance-test/T01-dump-restore.sh\r
+ delete mode 100755 performance-test/T02-tag\r
+ create mode 100755 performance-test/T02-tag.sh\r
+\r
+diff --git a/performance-test/T00-new b/performance-test/T00-new\r
+deleted file mode 100755\r
+index 553bb8b..0000000\r
+--- a/performance-test/T00-new\r
++++ /dev/null\r
+@@ -1,15 +0,0 @@\r
+-#!/bin/bash\r
+-\r
+-test_description='notmuch new'\r
+-\r
+-. ./perf-test-lib.sh\r
+-\r
+-uncache_database\r
+-\r
+-time_start\r
+-\r
+-for i in $(seq 2 6); do\r
+-    time_run "notmuch new #$i" 'notmuch new'\r
+-done\r
+-\r
+-time_done\r
+diff --git a/performance-test/T00-new.sh b/performance-test/T00-new.sh\r
+new file mode 100755\r
+index 0000000..553bb8b\r
+--- /dev/null\r
++++ b/performance-test/T00-new.sh\r
+@@ -0,0 +1,15 @@\r
++#!/bin/bash\r
++\r
++test_description='notmuch new'\r
++\r
++. ./perf-test-lib.sh\r
++\r
++uncache_database\r
++\r
++time_start\r
++\r
++for i in $(seq 2 6); do\r
++    time_run "notmuch new #$i" 'notmuch new'\r
++done\r
++\r
++time_done\r
+diff --git a/performance-test/T01-dump-restore b/performance-test/T01-dump-restore\r
+deleted file mode 100755\r
+index b2ff940..0000000\r
+--- a/performance-test/T01-dump-restore\r
++++ /dev/null\r
+@@ -1,13 +0,0 @@\r
+-#!/bin/bash\r
+-\r
+-test_description='dump and restore'\r
+-\r
+-. ./perf-test-lib.sh\r
+-\r
+-time_start\r
+-\r
+-time_run 'load nmbug tags' 'notmuch restore --accumulate < corpus.tags/nmbug.sup-dump'\r
+-time_run 'dump *' 'notmuch dump > tags.out'\r
+-time_run 'restore *' 'notmuch restore < tags.out'\r
+-\r
+-time_done\r
+diff --git a/performance-test/T01-dump-restore.sh b/performance-test/T01-dump-restore.sh\r
+new file mode 100755\r
+index 0000000..b2ff940\r
+--- /dev/null\r
++++ b/performance-test/T01-dump-restore.sh\r
+@@ -0,0 +1,13 @@\r
++#!/bin/bash\r
++\r
++test_description='dump and restore'\r
++\r
++. ./perf-test-lib.sh\r
++\r
++time_start\r
++\r
++time_run 'load nmbug tags' 'notmuch restore --accumulate < corpus.tags/nmbug.sup-dump'\r
++time_run 'dump *' 'notmuch dump > tags.out'\r
++time_run 'restore *' 'notmuch restore < tags.out'\r
++\r
++time_done\r
+diff --git a/performance-test/T02-tag b/performance-test/T02-tag\r
+deleted file mode 100755\r
+index 78ceccc..0000000\r
+--- a/performance-test/T02-tag\r
++++ /dev/null\r
+@@ -1,14 +0,0 @@\r
+-#!/bin/bash\r
+-\r
+-test_description='tagging'\r
+-\r
+-. ./perf-test-lib.sh\r
+-\r
+-time_start\r
+-\r
+-time_run 'tag * +new_tag' "notmuch tag +new_tag '*'"\r
+-time_run 'tag * +existing_tag' "notmuch tag +new_tag '*'"\r
+-time_run 'tag * -existing_tag' "notmuch tag -new_tag '*'"\r
+-time_run 'tag * -missing_tag' "notmuch tag -new_tag '*'"\r
+-\r
+-time_done\r
+diff --git a/performance-test/T02-tag.sh b/performance-test/T02-tag.sh\r
+new file mode 100755\r
+index 0000000..78ceccc\r
+--- /dev/null\r
++++ b/performance-test/T02-tag.sh\r
+@@ -0,0 +1,14 @@\r
++#!/bin/bash\r
++\r
++test_description='tagging'\r
++\r
++. ./perf-test-lib.sh\r
++\r
++time_start\r
++\r
++time_run 'tag * +new_tag' "notmuch tag +new_tag '*'"\r
++time_run 'tag * +existing_tag' "notmuch tag +new_tag '*'"\r
++time_run 'tag * -existing_tag' "notmuch tag -new_tag '*'"\r
++time_run 'tag * -missing_tag' "notmuch tag -new_tag '*'"\r
++\r
++time_done\r
+-- \r
+1.8.2.rc2\r
+\r