From patchwork Wed Jul 11 14:18:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fam Zheng X-Patchwork-Id: 942513 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Qh5k6KxZzB4MQ for ; Thu, 12 Jul 2018 00:19:22 +1000 (AEST) Received: from localhost ([::1]:54097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdFxg-0001Is-8f for incoming@patchwork.ozlabs.org; Wed, 11 Jul 2018 10:19:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdFx5-0001HP-UY for qemu-devel@nongnu.org; Wed, 11 Jul 2018 10:18:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdFx2-0003gk-Ja for qemu-devel@nongnu.org; Wed, 11 Jul 2018 10:18:43 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41792 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdFx2-0003ga-EH for qemu-devel@nongnu.org; Wed, 11 Jul 2018 10:18:40 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9E078406EA4F; Wed, 11 Jul 2018 14:18:39 +0000 (UTC) Received: from lemon.usersys.redhat.com (ovpn-12-108.pek2.redhat.com [10.72.12.108]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE5591C662; Wed, 11 Jul 2018 14:18:34 +0000 (UTC) From: Fam Zheng To: qemu-devel@nongnu.org Date: Wed, 11 Jul 2018 22:18:25 +0800 Message-Id: <20180711141829.17406-1-famz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 11 Jul 2018 14:18:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 11 Jul 2018 14:18:39 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'famz@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.187.233.73 Subject: [Qemu-devel] [PATCH v2 0/4] Add a CentOS test image to run docker tests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , pbonzini@redhat.com, Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" v2: Drop archive-source.sh changes. The new test depends on the iotests nbd fix I posted today to pass. Docker testing on patchew has long suffered from 'make check' hangings. The cleanness of VM testing is the cure. Now let's add a CentOS 7 image to run the tests. It's purely ad-hoc, but hopefully still easy to understand and use for everyone. The first patch makes passing source code from host to the container in VM working, and is a nice clean up. The second patch makes caches work, to speed up repetitive runs like on patchew. The last patch adds the new image that does the job. Two out of three docker tests running on patchew.org are added to the image. I'll wait for Peter to fix the 'docker-test-quick@centos6' hanging (oob test) before adding it too. Fam Fam Zheng (4): tests: Add an option for snapshot (default: off) tests/vm: Pass verbose flag into VM make commands tests: Allow overriding archive path with SRC_ARCHIVE tests: Add centos VM testing tests/docker/Makefile.include | 7 ++- tests/vm/Makefile.include | 2 +- tests/vm/basevm.py | 10 ++++- tests/vm/centos | 84 +++++++++++++++++++++++++++++++++++ tests/vm/freebsd | 4 +- tests/vm/netbsd | 4 +- tests/vm/openbsd | 4 +- tests/vm/ubuntu.i386 | 4 +- 8 files changed, 106 insertions(+), 13 deletions(-) create mode 100755 tests/vm/centos