From: Peter Xu <peterx@redhat.com>
To: qemu-devel@nongnu.org, kvm@vger.kernel.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Andrew Jones" <drjones@redhat.com>,
peterx@redhat.com, "Radim Krčmář" <rkrcmar@redhat.com>
Subject: [Qemu-devel] [kvm-unit-tests PATCH v6 0/3] run_tests: support concurrent test execution
Date: Thu, 12 Jan 2017 11:36:19 +0800 [thread overview]
Message-ID: <1484192182-13760-1-git-send-email-peterx@redhat.com> (raw)
v6:
- some tunes on how to rm/mv logs/logs.old [Drew]
- fix errno to 2 when param parse fail [Drew]
- add one more patch to fix *) case errno [Drew]
(please either take/squash/... this one)
- comment fix again [Drew]
v5:
- add "/" at start/end of line where proper [Drew]
- remove useless newline in Makefile [Drew]
- don't check "mv" since it won't fail [Drew]
- avoid using '"s in (( )) [Drew]
- comment fix [Drew]
v4:
- add .gitignore for logs/ [Drew]
- instead of create globals.bash, renaming function.bash into
common.bash, put globals inside [Drew]
- instead of removing logs/ directly when start run_tests, move it
into logs.old so we at least have the last time result cached [Drew]
- s/ut_/unittest_/ through the whole series [Drew]
- remove unittest_log_summary var [Drew]
- remove radim's s-b in patch 2 since it does not suite [Drew]
- tiny fix on the usage lines [Drew]
- use bash arithmetic where proper [Drew]
- remove ut_in_parallel since not used [Drew]
v3:
- better handling for ctrl-c during run_tests.sh [Radim]
v2:
- patch 1: do per-test logging in all cases
- patch 2: throw away task.bash, instead, take Radim's suggestion to
use jobs
run_tests.sh is getting slower. Maybe it's time to let it run faster.
An obvious issue is that, we were running the tests sequentially in
the past.
This series provides another new "-j" parameter. "-j 8" means we run
the tests on 8 task queues. That'll fasten the script a lot. A very
quick test of mine shows 3x speed boost with 8 task queues.
Please review, thanks.
Peter Xu (3):
run_tests: fix errno for param parsing
run_tests: put logs into per-test file
run_tests: allow run tests in parallel
.gitignore | 3 ++-
Makefile | 5 ++---
run_tests.sh | 33 +++++++++++++++++++++++----------
scripts/{functions.bash => common.bash} | 27 +++++++++++++++++++++++++--
scripts/mkstandalone.sh | 2 +-
5 files changed, 53 insertions(+), 17 deletions(-)
rename scripts/{functions.bash => common.bash} (63%)
--
2.7.4
next reply other threads:[~2017-01-12 3:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 3:36 Peter Xu [this message]
2017-01-12 3:36 ` [Qemu-devel] [kvm-unit-tests PATCH v6 1/3] run_tests: fix errno for param parsing Peter Xu
2017-01-12 11:42 ` Andrew Jones
2017-01-12 3:36 ` [Qemu-devel] [kvm-unit-tests PATCH v6 2/3] run_tests: put logs into per-test file Peter Xu
2017-01-12 10:04 ` Andrew Jones
2017-01-12 10:35 ` Peter Xu
2017-01-12 12:55 ` Paolo Bonzini
2017-01-12 14:14 ` Peter Xu
2017-01-12 3:36 ` [Qemu-devel] [kvm-unit-tests PATCH v6 3/3] run_tests: allow run tests in parallel Peter Xu
2017-01-12 11:42 ` Andrew Jones
2017-01-12 13:31 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1484192182-13760-1-git-send-email-peterx@redhat.com \
--to=peterx@redhat.com \
--cc=drjones@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rkrcmar@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).