From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 977C76DE0FD2 for ; Mon, 25 Sep 2017 13:39:00 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: -0.064 X-Spam-Level: X-Spam-Status: No, score=-0.064 tagged_above=-999 required=5 tests=[AWL=0.147, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ef6tgBSKTDp for ; Mon, 25 Sep 2017 13:39:00 -0700 (PDT) Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by arlo.cworth.org (Postfix) with ESMTPS id 610FF6DE100F for ; Mon, 25 Sep 2017 13:38:53 -0700 (PDT) Received: by mail-wr0-f170.google.com with SMTP id k20so9983025wre.4 for ; Mon, 25 Sep 2017 13:38:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=zida7P3+Okgxw9hmAwSGXXAhck+6n1CS7BdDe7NIfmI=; b=fl1HJ0+hoLTLdHU7dOQNncNR6UpoQIL6kqKb5af2RPf20OqGPhisOW+p9U5NiwcgyR Q9xzXz//W/m5dmREbS99G8fNBmE8qElqpmQ0SXW7Te788SzedoTf4I8v3bKPhXYDVBdQ kpcjjvImnisRkMEyoWtlmWU9rdPb/nDT8eFvsHRAQyO7SJZgI60wxiibV7ueAUz7flJC Yv0BOjpmwtdzqLBLFZAcIKIoMDD6LBXpn557g9j02XN3MX4E+BJk4QNh5TR99cs5LqxY r13Y3Ahp31Gi/e+ab53E5x8w2aKGhaz5iMYdG/g9JziY97E7DPfnEka9UOXHVzCVEf72 0K7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=zida7P3+Okgxw9hmAwSGXXAhck+6n1CS7BdDe7NIfmI=; b=UgwxTmlRSceajZJ/EyvIMhUJ0ZdcCSq95Sa0jKa+4EjEa4x6WS/VEU7OHlRo9qSzlN CDuB+LjJhuY8zwNn1paoAlJhh93Nw208QnKUltbaDhQggkGd1G8lcT4Wfa4BqHsuhJ7+ wSCS4kyeWogTwz2PWtrznoBE31aL+Q8VwHCxYN5Xg0gaU1Ol2XQTp54IMo6KpJKkrCow AUJIRpbGMUJqk34KaiIqivZQhEX0SFzE+5JSKZSJRlixIvaXwyxowZtGDsgOQ12NLBXA CaioKt1ECMsLi5hpEOjrZ7uQyB6f0x10zK67pZWVnuBL0b4VjyxgJeCg9fTuGuWC3AxX 3xuw== X-Gm-Message-State: AHPjjUj+LZG5DjHKCKJQFMQ/BFPw5zQTASmT7s3nPjz3/tOBcJqCZmAe /uP7B7ZXflBxgO9wJANpu9gszdcxDSU= X-Google-Smtp-Source: AOwi7QBql9zbUOzwEMKwIv5PerY588qA3sjPmD8WbZRJR1718mGmv4ah91Ouwt0QNgNV3C4MOJfGmw== X-Received: by 10.25.39.202 with SMTP id n193mr2838802lfn.131.1506371931752; Mon, 25 Sep 2017 13:38:51 -0700 (PDT) Received: from localhost (mobile-access-5d6a60-234.dhcp.inet.fi. [93.106.96.234]) by smtp.gmail.com with ESMTPSA id 15sm1595850ljf.22.2017.09.25.13.38.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Sep 2017 13:38:51 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 04/24] perf-test: use $(dirname "$0") for sourcing perf-test-lib.sh Date: Mon, 25 Sep 2017 23:38:20 +0300 Message-Id: <9a8710b28c1693069dcf3d7e2f8b18ce9ca8bea0.1506370901.git.jani@nikula.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Mon, 25 Sep 2017 20:39:00 -0000 Don't assume the tests are always run from within the source tree. --- performance-test/M00-new.sh | 2 +- performance-test/M01-dump-restore.sh | 2 +- performance-test/M02-show.sh | 2 +- performance-test/M03-search.sh | 2 +- performance-test/M04-reply.sh | 2 +- performance-test/M05-reindex.sh | 2 +- performance-test/M06-insert.sh | 2 +- performance-test/T00-new.sh | 2 +- performance-test/T01-dump-restore.sh | 2 +- performance-test/T02-tag.sh | 2 +- performance-test/T03-reindex.sh | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/performance-test/M00-new.sh b/performance-test/M00-new.sh index a040a97e043a..aab36e6953e2 100755 --- a/performance-test/M00-new.sh +++ b/performance-test/M00-new.sh @@ -2,7 +2,7 @@ test_description='notmuch new' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 # ensure initial 'notmuch new' is run by memory_start uncache_database diff --git a/performance-test/M01-dump-restore.sh b/performance-test/M01-dump-restore.sh index 8fea98242d2c..32ab8dc9c0b9 100755 --- a/performance-test/M01-dump-restore.sh +++ b/performance-test/M01-dump-restore.sh @@ -2,7 +2,7 @@ test_description='dump and restore' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 memory_start diff --git a/performance-test/M02-show.sh b/performance-test/M02-show.sh index d73035ea1197..2e218fd3c4b6 100755 --- a/performance-test/M02-show.sh +++ b/performance-test/M02-show.sh @@ -2,7 +2,7 @@ test_description='show' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 memory_start diff --git a/performance-test/M03-search.sh b/performance-test/M03-search.sh index 8d026eee3662..343f5c7cfc24 100755 --- a/performance-test/M03-search.sh +++ b/performance-test/M03-search.sh @@ -2,7 +2,7 @@ test_description='search' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 memory_start diff --git a/performance-test/M04-reply.sh b/performance-test/M04-reply.sh index 0e1ce0876925..3c1205dbc412 100755 --- a/performance-test/M04-reply.sh +++ b/performance-test/M04-reply.sh @@ -2,7 +2,7 @@ test_description='search' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 memory_start diff --git a/performance-test/M05-reindex.sh b/performance-test/M05-reindex.sh index d36e061b7549..17e2c824698a 100755 --- a/performance-test/M05-reindex.sh +++ b/performance-test/M05-reindex.sh @@ -2,7 +2,7 @@ test_description='reindex' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 memory_start diff --git a/performance-test/M06-insert.sh b/performance-test/M06-insert.sh index 9fcc2a0c9ff1..5ae0656a505b 100755 --- a/performance-test/M06-insert.sh +++ b/performance-test/M06-insert.sh @@ -2,7 +2,7 @@ test_description='search' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 memory_start diff --git a/performance-test/T00-new.sh b/performance-test/T00-new.sh index b9f211581f5a..687501294e2c 100755 --- a/performance-test/T00-new.sh +++ b/performance-test/T00-new.sh @@ -2,7 +2,7 @@ test_description='notmuch new' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 uncache_database diff --git a/performance-test/T01-dump-restore.sh b/performance-test/T01-dump-restore.sh index 9cfd5cd624ac..12f12e660533 100755 --- a/performance-test/T01-dump-restore.sh +++ b/performance-test/T01-dump-restore.sh @@ -2,7 +2,7 @@ test_description='dump and restore' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 time_start diff --git a/performance-test/T02-tag.sh b/performance-test/T02-tag.sh index dacb50b8bbf8..8c5dfd680316 100755 --- a/performance-test/T02-tag.sh +++ b/performance-test/T02-tag.sh @@ -2,7 +2,7 @@ test_description='tagging' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 time_start diff --git a/performance-test/T03-reindex.sh b/performance-test/T03-reindex.sh index 7af2d22d3df8..d6d5c3c3ae83 100755 --- a/performance-test/T03-reindex.sh +++ b/performance-test/T03-reindex.sh @@ -2,7 +2,7 @@ test_description='tagging' -. ./perf-test-lib.sh || exit 1 +. $(dirname "$0")/perf-test-lib.sh || exit 1 time_start -- 2.11.0