From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Xu Subject: [kvm-unit-tests PATCH v3 0/2] run_tests: support concurrent test execution Date: Fri, 6 Jan 2017 11:32:59 +0800 Message-ID: <1483673581-7843-1-git-send-email-peterx@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Paolo Bonzini , Andrew Jones , peterx@redhat.com, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: qemu-devel@nongnu.org, kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:42642 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936262AbdAFDdI (ORCPT ); Thu, 5 Jan 2017 22:33:08 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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 (2): run_tests: put logs into per-test file run_tests: allow run tests in parallel Makefile | 4 ++-- run_tests.sh | 26 ++++++++++++++++++-------- scripts/functions.bash | 26 ++++++++++++++++++++++++-- scripts/global.bash | 13 +++++++++++++ 4 files changed, 57 insertions(+), 12 deletions(-) create mode 100644 scripts/global.bash -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPLHE-00023c-OY for qemu-devel@nongnu.org; Thu, 05 Jan 2017 22:33:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPLHA-00073A-Rw for qemu-devel@nongnu.org; Thu, 05 Jan 2017 22:33:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60112) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cPLHA-00072t-Ll for qemu-devel@nongnu.org; Thu, 05 Jan 2017 22:33:08 -0500 From: Peter Xu Date: Fri, 6 Jan 2017 11:32:59 +0800 Message-Id: <1483673581-7843-1-git-send-email-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [kvm-unit-tests PATCH v3 0/2] run_tests: support concurrent test execution List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kvm@vger.kernel.org Cc: Paolo Bonzini , Andrew Jones , peterx@redhat.com, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= 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 (2): run_tests: put logs into per-test file run_tests: allow run tests in parallel Makefile | 4 ++-- run_tests.sh | 26 ++++++++++++++++++-------- scripts/functions.bash | 26 ++++++++++++++++++++++++-- scripts/global.bash | 13 +++++++++++++ 4 files changed, 57 insertions(+), 12 deletions(-) create mode 100644 scripts/global.bash --=20 2.7.4