From 5d61f62f2ef324a527adcec2724019fe76f2319d Mon Sep 17 00:00:00 2001 From: david Date: Thu, 16 May 2013 08:03:03 +2100 Subject: [PATCH] [PATCH 4/4] perf-test: add notmuch-memory-test --- 7a/f688ce32e892f0263feea118efe559e0ade228 | 97 +++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 7a/f688ce32e892f0263feea118efe559e0ade228 diff --git a/7a/f688ce32e892f0263feea118efe559e0ade228 b/7a/f688ce32e892f0263feea118efe559e0ade228 new file mode 100644 index 000000000..c35eb341e --- /dev/null +++ b/7a/f688ce32e892f0263feea118efe559e0ade228 @@ -0,0 +1,97 @@ +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 842DE431FCF + for ; Wed, 15 May 2013 04:03:36 -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 0hU5r-H9gZrk for ; + Wed, 15 May 2013 04:03:31 -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 A5253431FD5 + 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 r4FB3ETT020236; + Wed, 15 May 2013 08:03:14 -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-0002OG-U9; Wed, 15 May 2013 08:03:13 -0300 +Received: from bremner by zancas.localnet with local (Exim 4.80) + (envelope-from ) + id 1UcZUA-0001mO-BQ; Wed, 15 May 2013 08:03:06 -0300 +From: david@tethera.net +To: notmuch@notmuchmail.org +Subject: [PATCH 4/4] perf-test: add notmuch-memory-test +Date: Wed, 15 May 2013 08:03:03 -0300 +Message-Id: <1368615783-4941-5-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:36 -0000 + +From: David Bremner + +Somehow this file was not added to the patch set which split the tests +into time and memory tests. Take advantage of the the "new" way of +running tests to avoid listing the explicitly. +--- + performance-test/notmuch-memory-test | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + create mode 100755 performance-test/notmuch-memory-test + +diff --git a/performance-test/notmuch-memory-test b/performance-test/notmuch-memory-test +new file mode 100755 +index 0000000..3cf28c7 +--- /dev/null ++++ b/performance-test/notmuch-memory-test +@@ -0,0 +1,21 @@ ++#!/usr/bin/env bash ++ ++# Run tests ++# ++# Copyright (c) 2005 Junio C Hamano ++# ++# Adapted from a Makefile to a shell script by Carl Worth (2010) ++ ++if [ ${BASH_VERSINFO[0]} -lt 4 ]; then ++ echo "Error: The notmuch test suite requires a bash version >= 4.0" ++ echo "due to use of associative arrays within the test suite." ++ echo "Please try again with a newer bash (or help us fix the" ++ echo "test suite to be more portable). Thanks." ++ exit 1 ++fi ++ ++cd $(dirname "$0") ++ ++for test in M*.sh; do ++ ./"$test" "$@" ++done +-- +1.8.2.rc2 + -- 2.26.2