Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Return-path: <bup-list+bncBC4NBW5G64EBB5GDSWQQKGQE56RNBZQ@googlegroups.com>
- X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ahiker.mooo.com
- X-Spam-Status: No
- X-Spam-Level:
- X-Spam-Score: -2.8
- X-Spam-Tests: BAYES_00=-1.9,DKIM_ADSP_CUSTOM_MED=0.001,DKIM_SIGNED=0.1,
- DKIM_VALID=-0.1,FREEMAIL_FORGED_FROMDOMAIN=0.001,FREEMAIL_FROM=0.001,
- HEADER_FROM_DIFFERENT_DOMAINS=0.001,RCVD_IN_DNSWL_LOW=-0.7,
- RCVD_IN_MSPIKE_H2=-0.245
- Envelope-to: itz@ahiker.mooo.com
- Delivery-date: Fri, 26 Sep 2014 06:39:08 -0700
- Received: from disorder.primate.net ([198.144.194.12] helo=acedia.primate.net)
- by ahiker.mooo.com with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
- (Exim 4.80)
- (envelope-from <bup-list+bncBC4NBW5G64EBB5GDSWQQKGQE56RNBZQ@googlegroups.com>)
- id 1XXV2W-0001RP-4Z
- for itz@ahiker.mooo.com; Fri, 26 Sep 2014 05:54:24 -0700
- Received: from acedia.primate.net (localhost [127.0.0.1])
- by acedia.primate.net (8.14.4/8.14.4/Debian-7) with ESMTP id s8QCsNNd003122
- (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
- for <itz@ahiker.mooo.com>; Fri, 26 Sep 2014 05:54:23 -0700
- Received: (from itz@localhost)
- by acedia.primate.net (8.14.4/8.14.4/Submit) id s8QCsNq4003121
- for itz@ahiker.mooo.com; Fri, 26 Sep 2014 05:54:23 -0700
- X-Authentication-Warning: acedia.primate.net: itz set sender to bup-list+bncBC4NBW5G64EBB5GDSWQQKGQE56RNBZQ@googlegroups.com using -f
- Received: from mail-pd0-f187.google.com (mail-pd0-f187.google.com [209.85.192.187])
- by acedia.primate.net (8.14.4/8.14.4/Debian-7) with ESMTP id s8QCsN7U003098
- (version=TLSv1/SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128 verify=NOT)
- for <itz@buug.org>; Fri, 26 Sep 2014 05:54:23 -0700
- Received: by mail-pd0-f187.google.com with SMTP id z10sf417933pdj.24
- for <itz@buug.org>; Fri, 26 Sep 2014 05:54:14 -0700 (PDT)
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
- d=googlegroups.com; s=20120806;
- h=from:to:cc:subject:date:message-id:mime-version:x-original-sender
- :x-original-authentication-results:precedence:mailing-list:list-id
- :list-post:list-help:list-archive:sender:list-subscribe
- :list-unsubscribe:content-type;
- bh=HomwN8FxGx8+w4T0FhdmwBlS3oFR4CTfD42olDF5zKI=;
- b=rQmmfKJb0mATBwDoTnY7RTsFwALJufu/403z2PFtfuHqQLBlyh4kJUtjjznSmpYBB9
- kEclcu6fhZBbQOriMzxkbTzlblvWMY02u6OrbwqadTLQHLW5dwxGpyPvT4EI3LspjFAk
- tff6fYM4rZfT+Z2IhkeW/KbE07qL40Q//6wnNRlDm31gBvatZrvUyhxk40O4XO4yaVsM
- buTi2bTCTMOyxTZxbXZVZQ7osxdKL5INTUp/i/VfGzKpMaEVb0/IApzdDa6rQAiU897c
- W+OH/XmydXDjXHzUaxe/DmvUNHA62j67D9+28ra3MPtyjcptJ+eML5uwqmFJ9A0JLnFz
- UWOg==
- X-Received: by 10.182.205.131 with SMTP id lg3mr1750obc.18.1411736053201;
- Fri, 26 Sep 2014 05:54:13 -0700 (PDT)
- X-BeenThere: bup-list@googlegroups.com
- Received: by 10.182.84.162 with SMTP id a2ls98365obz.73.gmail; Fri, 26 Sep
- 2014 05:54:12 -0700 (PDT)
- X-Received: by 10.182.199.4 with SMTP id jg4mr15799736obc.43.1411736052515;
- Fri, 26 Sep 2014 05:54:12 -0700 (PDT)
- Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [2607:f8b0:400e:c03::230])
- by gmr-mx.google.com with ESMTPS id rj9si622188pdb.1.2014.09.26.05.54.12
- for <bup-list@googlegroups.com>
- (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
- Fri, 26 Sep 2014 05:54:12 -0700 (PDT)
- Received-SPF: pass (google.com: domain of w.rouesnel@gmail.com designates 2607:f8b0:400e:c03::230 as permitted sender) client-ip=2607:f8b0:400e:c03::230;
- Received: by mail-pa0-f48.google.com with SMTP id bj1so5972693pad.7
- for <bup-list@googlegroups.com>; Fri, 26 Sep 2014 05:54:12 -0700 (PDT)
- X-Received: by 10.66.249.135 with SMTP id yu7mr31036806pac.103.1411736052370;
- Fri, 26 Sep 2014 05:54:12 -0700 (PDT)
- Received: from will-desktop.internal (14-200-69-67.static.tpgi.com.au. [14.200.69.67])
- by mx.google.com with ESMTPSA id q1sm4894772pds.69.2014.09.26.05.54.09
- for <multiple recipients>
- (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
- Fri, 26 Sep 2014 05:54:11 -0700 (PDT)
- From: Will Rouesnel <w.rouesnel@gmail.com>
- To: bup-list@googlegroups.com
- Cc: Will Rouesnel <w.rouesnel@gmail.com>
- Subject: [RFC] Parallalize running test script components.
- Date: Fri, 26 Sep 2014 22:54:00 +1000
- Message-Id: <1411736040-6885-1-git-send-email-w.rouesnel@gmail.com>
- X-Mailer: git-send-email 1.9.1
- MIME-Version: 1.0
- X-Original-Sender: W.Rouesnel@gmail.com
- X-Original-Authentication-Results: gmr-mx.google.com; spf=pass
- (google.com: domain of w.rouesnel@gmail.com designates 2607:f8b0:400e:c03::230
- as permitted sender) smtp.mail=w.rouesnel@gmail.com; dkim=pass
- header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
- Precedence: list
- Mailing-list: list bup-list@googlegroups.com; contact bup-list+owners@googlegroups.com
- List-ID: <bup-list.googlegroups.com>
- X-Google-Group-Id: 693439103472
- List-Post: <http://groups.google.com/group/bup-list/post>, <mailto:bup-list@googlegroups.com>
- List-Help: <http://groups.google.com/support/>, <mailto:bup-list+help@googlegroups.com>
- List-Archive: <http://groups.google.com/group/bup-list
- Sender: bup-list@googlegroups.com
- List-Subscribe: <http://groups.google.com/group/bup-list/subscribe>, <mailto:bup-list+subscribe@googlegroups.com>
- List-Unsubscribe: <mailto:googlegroups-manage+693439103472+unsubscribe@googlegroups.com>,
- <http://groups.google.com/group/bup-list/subscribe>
- Content-Type: multipart/mixed; boundary="------------1.9.1"
- This is a multi-part message in MIME format.
- --------------1.9.1
- Content-Type: text/plain; charset=UTF-8; format=fixed
- Content-Transfer-Encoding: 8bit
- This patch does two things: firstly it turns the regular shell script
- test executor into a wildcard match, to make adding new shell script tests
- easier. It matches on t/t*.sh, same as the Python test runner.
- Secondly: it turns the script runner into a set of regular make dependencies,
- singular to each test file. This enables running make -jN to parallize the test
- runner.
- This seems to yield impressive improvements to test times: 166 sec -> 44 sec
- with make -j16 on an i7.
- Since our tests are king, this is a big win. The new behavior can be trivially
- switched off by simply running regular make. There may be some race conditions
- in test scripts.
- ---
- Makefile | 39 +++++++++++++++------------------------
- 1 file changed, 15 insertions(+), 24 deletions(-)
- --------------1.9.1
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Disposition: inline
- --
- You received this message because you are subscribed to the Google Groups "bup-list" group.
- To unsubscribe from this group and stop receiving emails from it, send an email to bup-list+unsubscribe@googlegroups.com.
- For more options, visit https://groups.google.com/d/optout.
- --------------1.9.1
- Content-Type: text/x-patch; name="0001-Parallalize-running-test-script-components.patch"
- Content-Transfer-Encoding: 8bit
- Content-Disposition: inline; filename="0001-Parallalize-running-test-script-components.patch"
- diff --git a/Makefile b/Makefile
- index 97f9338..4fbb891 100644
- --- a/Makefile
- +++ b/Makefile
- @@ -12,6 +12,9 @@ else
- test_tmp := $(CURDIR)/t/tmp
- endif
- +TEST_SH := $(wildcard t/t*.sh)
- +TEST_PY := $(wildcard t/t*.py) $(wildcard lib/*/t/t*.py)
- +
- default: all
- all: bup Documentation/all
- @@ -82,33 +85,21 @@ lib/bup/_version.py:
- runtests: all runtests-python runtests-cmdline
- -runtests-python: all
- +.PHONY: ${TEST_PY}
- +${TEST_PY}: all
- test -e t/tmp || mkdir t/tmp
- - TMPDIR="$(test_tmp)" $(PYTHON) wvtest.py t/t*.py lib/*/t/t*.py
- + TMPDIR="$(test_tmp)" $(PYTHON) wvtest.py $@
- +
- +.PHONY: runtests-python
- +runtests-python: ${TEST_PY}
- -runtests-cmdline: all
- +.PHONY: ${TEST_SH}
- +${TEST_SH}: all
- test -e t/tmp || mkdir t/tmp
- - TMPDIR="$(test_tmp)" t/test-fuse.sh
- - TMPDIR="$(test_tmp)" t/test-drecurse.sh
- - TMPDIR="$(test_tmp)" t/test-cat-file.sh
- - TMPDIR="$(test_tmp)" t/test-compression.sh
- - TMPDIR="$(test_tmp)" t/test-fsck.sh
- - TMPDIR="$(test_tmp)" t/test-index-clear.sh
- - TMPDIR="$(test_tmp)" t/test-index-check-device.sh
- - TMPDIR="$(test_tmp)" t/test-ls.sh
- - TMPDIR="$(test_tmp)" t/test-meta.sh
- - TMPDIR="$(test_tmp)" t/test-on.sh
- - TMPDIR="$(test_tmp)" t/test-restore-map-owner.sh
- - TMPDIR="$(test_tmp)" t/test-restore-single-file.sh
- - TMPDIR="$(test_tmp)" t/test-rm-between-index-and-save.sh
- - TMPDIR="$(test_tmp)" t/test-command-without-init-fails.sh
- - TMPDIR="$(test_tmp)" t/test-redundant-saves.sh
- - TMPDIR="$(test_tmp)" t/test-save-creates-no-unrefs.sh
- - TMPDIR="$(test_tmp)" t/test-save-restore-excludes.sh
- - TMPDIR="$(test_tmp)" t/test-save-strip-graft.sh
- - TMPDIR="$(test_tmp)" t/test-import-rdiff-backup.sh
- - TMPDIR="$(test_tmp)" t/test-xdev.sh
- - TMPDIR="$(test_tmp)" t/test.sh
- + TMPDIR="$(test_tmp)" $@
- +
- +.PHONY: runtests-cmdline
- +runtests-cmdline: ${TEST_SH}
- stupid:
- PATH=/bin:/usr/bin $(MAKE) test
- --------------1.9.1--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement