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