From patchwork Wed Nov 13 11:26:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 11241737 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4A8F515AB for ; Wed, 13 Nov 2019 11:27:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C52B22459 for ; Wed, 13 Nov 2019 11:27:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="esns6A4a" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727927AbfKML1D (ORCPT ); Wed, 13 Nov 2019 06:27:03 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:53000 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727733AbfKML1C (ORCPT ); Wed, 13 Nov 2019 06:27:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573644421; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d6Riu+/ym+X+cIktyE0yWSvwwZI/0+zJLjKnzOMk7Hw=; b=esns6A4a18lSwEOwaSIBh7mruK5zGCNh1jRdVixu2XTgic+vhvYR101Y59Ph1OQNX7NHSB N++8s4Udq3CNo6yqpPSQR5JhzdKsh0WtepsrPPzVgfUwnyb1fnb6cgmI+/cKUJoBLQYY5k +vWXJLCPaSWRdFGTTeQiBqo6l8m+rpo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-176-gv5n0D3tOR6tk2aQof73Ig-1; Wed, 13 Nov 2019 06:27:00 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 527691005509; Wed, 13 Nov 2019 11:26:59 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-183.ams2.redhat.com [10.36.116.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id 38F0D60464; Wed, 13 Nov 2019 11:26:56 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Paolo Bonzini Cc: David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [kvm-unit-test PATCH 1/5] travis.yml: Re-arrange the test matrix Date: Wed, 13 Nov 2019 12:26:45 +0100 Message-Id: <20191113112649.14322-2-thuth@redhat.com> In-Reply-To: <20191113112649.14322-1-thuth@redhat.com> References: <20191113112649.14322-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: gv5n0D3tOR6tk2aQof73Ig-1 X-Mimecast-Spam-Score: 0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org We will soon need more control over the individual test matrix entries, so we should not limit the matrix to "env" sections, i.e. put the "matrix:" keyword on the top, not the "env:". Signed-off-by: Thomas Huth Reviewed-by: Alex Bennée --- .travis.yml | 92 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 56 insertions(+), 36 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6c14953..611bbdc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,44 +16,64 @@ addons: - qemu-system git: submodules: false -env: - matrix: - - CONFIG="" - BUILD_DIR="." - TESTS="vmexit_cpuid vmexit_mov_from_cr8 vmexit_mov_to_cr8 vmexit_ipi + +matrix: + include: + - env: + - CONFIG="" + - BUILD_DIR="." + - TESTS="vmexit_cpuid vmexit_mov_from_cr8 vmexit_mov_to_cr8 vmexit_ipi vmexit_ple_round_robin vmexit_tscdeadline vmexit_tscdeadline_immed" - - CONFIG="" - BUILD_DIR="x86-builddir" - TESTS="ioapic-split ioapic smptest smptest3 eventinj msr port80 syscall + + - env: + - CONFIG="" + - BUILD_DIR="x86-builddir" + - TESTS="ioapic-split ioapic smptest smptest3 eventinj msr port80 syscall tsc rmap_chain umip intel_iommu vmexit_inl_pmtimer vmexit_ipi_halt" - - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-" - BUILD_DIR="." - TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp" - - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-" - BUILD_DIR="arm-buildir" - TESTS="pci-test pmu gicv2-active gicv3-active psci selftest-setup" - - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-" - BUILD_DIR="." - TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp" - - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-" - BUILD_DIR="arm64-buildir" - TESTS="pci-test pmu gicv2-active gicv3-active psci timer selftest-setup" - - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-" - BUILD_DIR="." - TESTS="spapr_hcall emulator rtas-set-time-of-day" - ACCEL="tcg,cap-htm=off" - - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-" - BUILD_DIR="ppc64le-buildir" - TESTS="rtas-get-time-of-day rtas-get-time-of-day-base" - ACCEL="tcg,cap-htm=off" - - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" - BUILD_DIR="." - TESTS="diag10 diag308" - ACCEL="tcg,firmware=s390x/run" - - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" - BUILD_DIR="s390x-builddir" - TESTS="sieve" - ACCEL="tcg,firmware=s390x/run" + + - env: + - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-" + - BUILD_DIR="." + - TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp" + + - env: + - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-" + - BUILD_DIR="arm-buildir" + - TESTS="pci-test pmu gicv2-active gicv3-active psci selftest-setup" + + - env: + - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-" + - BUILD_DIR="." + - TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp" + + - env: + - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-" + - BUILD_DIR="arm64-buildir" + - TESTS="pci-test pmu gicv2-active gicv3-active psci timer selftest-setup" + + - env: + - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-" + - BUILD_DIR="." + - TESTS="spapr_hcall emulator rtas-set-time-of-day" + - ACCEL="tcg,cap-htm=off" + + - env: + - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-" + - BUILD_DIR="ppc64le-buildir" + - TESTS="rtas-get-time-of-day rtas-get-time-of-day-base" + - ACCEL="tcg,cap-htm=off" + + - env: + - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" + - BUILD_DIR="." + - TESTS="diag10 diag308" + - ACCEL="tcg,firmware=s390x/run" + + - env: + - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" + - BUILD_DIR="s390x-builddir" + - TESTS="sieve" + - ACCEL="tcg,firmware=s390x/run" before_script: - mkdir -p $BUILD_DIR && cd $BUILD_DIR From patchwork Wed Nov 13 11:26:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 11241739 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7FD6115AB for ; Wed, 13 Nov 2019 11:27:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 625742245B for ; Wed, 13 Nov 2019 11:27:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cP00Fqd2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727929AbfKML1F (ORCPT ); Wed, 13 Nov 2019 06:27:05 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:49214 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727733AbfKML1E (ORCPT ); Wed, 13 Nov 2019 06:27:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573644423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5Eby2tNFGdfIFQLFJ/gYdQ7192hRSum/clSff20A2dw=; b=cP00Fqd2x0NRmXhwQM3Bycja9sSPMVAw+ksvL4eWy350Fp7lBOnpkHX8JZ8SE7o9U0dxNl bSEcdhsHAB1OFJRn/HWixfUvcVdcXc1+YQ/HBzVFMlZT9MBymnBD7eW9mWFBndkpGWXVMa numbnedCMLYoQRBQPHDkwMJ013LQ7KI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-79-5tkqWEcMMBaGXu7bCs0CWA-1; Wed, 13 Nov 2019 06:27:02 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C48BC107ACC6; Wed, 13 Nov 2019 11:27:00 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-183.ams2.redhat.com [10.36.116.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id A26B260464; Wed, 13 Nov 2019 11:26:59 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Paolo Bonzini Cc: David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [kvm-unit-test PATCH 2/5] travis.yml: Install only the required packages for each entry in the matrix Date: Wed, 13 Nov 2019 12:26:46 +0100 Message-Id: <20191113112649.14322-3-thuth@redhat.com> In-Reply-To: <20191113112649.14322-1-thuth@redhat.com> References: <20191113112649.14322-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: 5tkqWEcMMBaGXu7bCs0CWA-1 X-Mimecast-Spam-Score: 0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org We don't need all cross compiler and QEMU versions for each and every entry in the test matrix, only the ones for the current target architecture. So let's speed up the installation process a little bit by only installing the packages that we really need. Signed-off-by: Thomas Huth Reviewed-by: Alex Bennée --- .travis.yml | 53 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index 611bbdc..3f5b5ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,75 +1,84 @@ sudo: false dist: bionic language: c -compiler: - - gcc cache: ccache -addons: - apt: - packages: - # Cross Toolchains - - gcc-arm-linux-gnueabihf - - gcc-aarch64-linux-gnu - - gcc-powerpc64le-linux-gnu - - gcc-s390x-linux-gnu - # Run dependencies - - qemu-system git: submodules: false matrix: include: - - env: + + - addons: + apt_packages: gcc qemu-system-x86 + env: - CONFIG="" - BUILD_DIR="." - TESTS="vmexit_cpuid vmexit_mov_from_cr8 vmexit_mov_to_cr8 vmexit_ipi vmexit_ple_round_robin vmexit_tscdeadline vmexit_tscdeadline_immed" - - env: + - addons: + apt_packages: gcc qemu-system-x86 + env: - CONFIG="" - BUILD_DIR="x86-builddir" - TESTS="ioapic-split ioapic smptest smptest3 eventinj msr port80 syscall tsc rmap_chain umip intel_iommu vmexit_inl_pmtimer vmexit_ipi_halt" - - env: + - addons: + apt_packages: gcc-arm-linux-gnueabihf qemu-system-arm + env: - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-" - BUILD_DIR="." - TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp" - - env: + - addons: + apt_packages: gcc-arm-linux-gnueabihf qemu-system-arm + env: - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-" - BUILD_DIR="arm-buildir" - TESTS="pci-test pmu gicv2-active gicv3-active psci selftest-setup" - - env: + - addons: + apt_packages: gcc-aarch64-linux-gnu qemu-system-aarch64 + env: - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-" - BUILD_DIR="." - TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp" - - env: + - addons: + apt_packages: gcc-aarch64-linux-gnu qemu-system-aarch64 + env: - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-" - BUILD_DIR="arm64-buildir" - TESTS="pci-test pmu gicv2-active gicv3-active psci timer selftest-setup" - - env: + - addons: + apt_packages: gcc-powerpc64le-linux-gnu qemu-system-ppc + env: - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-" - BUILD_DIR="." - TESTS="spapr_hcall emulator rtas-set-time-of-day" - ACCEL="tcg,cap-htm=off" - - env: + - addons: + apt_packages: gcc-powerpc64le-linux-gnu qemu-system-ppc + env: - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-" - BUILD_DIR="ppc64le-buildir" - TESTS="rtas-get-time-of-day rtas-get-time-of-day-base" - ACCEL="tcg,cap-htm=off" - - env: + - addons: + apt_packages: gcc-s390x-linux-gnu qemu-system-s390x + env: - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" - BUILD_DIR="." - TESTS="diag10 diag308" - ACCEL="tcg,firmware=s390x/run" - - env: + - addons: + apt_packages: gcc-s390x-linux-gnu qemu-system-s390x + env: - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" - BUILD_DIR="s390x-builddir" - TESTS="sieve" From patchwork Wed Nov 13 11:26:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 11241741 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5088315AB for ; Wed, 13 Nov 2019 11:27:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 335892245B for ; Wed, 13 Nov 2019 11:27:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Rck1Oqe4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727934AbfKML1F (ORCPT ); Wed, 13 Nov 2019 06:27:05 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:27666 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727899AbfKML1F (ORCPT ); Wed, 13 Nov 2019 06:27:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573644424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BKfM7POce08IlNCxkWT06hdP5LlFwW/k4TsFFSaQwPk=; b=Rck1Oqe4gzBEWyxuEaJ17Fkdg2CkkM8ztZyXnXBrqIN1XBuHGjW3N5Dsba1XDS/uDhRe6y /zYKcbahQeP8crD9+tQJMYUk3sfwsl1YSTpjs+hB8BYFqgj5qw6y98pFhSrwwSDV0lS52H 4dAEnhCCvqelERqECuwdMgBCEUx6t78= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-233-sDRYjPyTMRqVidPiRwKaRg-1; Wed, 13 Nov 2019 06:27:03 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3064D803CE7; Wed, 13 Nov 2019 11:27:02 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-183.ams2.redhat.com [10.36.116.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1B25660464; Wed, 13 Nov 2019 11:27:00 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Paolo Bonzini Cc: David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [kvm-unit-test PATCH 3/5] travis.yml: Test with KVM instead of TCG (on x86) Date: Wed, 13 Nov 2019 12:26:47 +0100 Message-Id: <20191113112649.14322-4-thuth@redhat.com> In-Reply-To: <20191113112649.14322-1-thuth@redhat.com> References: <20191113112649.14322-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: sDRYjPyTMRqVidPiRwKaRg-1 X-Mimecast-Spam-Score: 0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Travis nowadays supports KVM in their CI pipelines, so we can finally run the kvm-unit-tests with KVM instead of TCG here. Unfortunately, there are some quirks: First, the QEMU binary has to be running as root, otherwise you get an "permission denied" error here - even if you fix up the access permissions to /dev/kvm first. Second, not all x86 tests are working in this environment, so we still have to manually select the test set here (but the amount of tests is definitely higher now than what we were able to run with TCG before). Signed-off-by: Thomas Huth --- .travis.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3f5b5ee..f91118c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -sudo: false +sudo: true dist: bionic language: c cache: ccache @@ -13,16 +13,21 @@ matrix: env: - CONFIG="" - BUILD_DIR="." - - TESTS="vmexit_cpuid vmexit_mov_from_cr8 vmexit_mov_to_cr8 vmexit_ipi - vmexit_ple_round_robin vmexit_tscdeadline vmexit_tscdeadline_immed" + - TESTS="access asyncpf debug emulator ept hypercall hyperv_stimer + hyperv_synic idt_test intel_iommu ioapic ioapic-split + kvmclock_test msr pcid rdpru realmode rmap_chain s3 umip" + - ACCEL="kvm" - addons: apt_packages: gcc qemu-system-x86 env: - CONFIG="" - BUILD_DIR="x86-builddir" - - TESTS="ioapic-split ioapic smptest smptest3 eventinj msr port80 syscall - tsc rmap_chain umip intel_iommu vmexit_inl_pmtimer vmexit_ipi_halt" + - TESTS="smptest smptest3 tsc tsc_adjust xsave vmexit_cpuid vmexit_vmcall + sieve vmexit_inl_pmtimer vmexit_ipi_halt vmexit_mov_from_cr8 + vmexit_mov_to_cr8 vmexit_ple_round_robin vmexit_tscdeadline + vmexit_tscdeadline_immed vmx_apic_passthrough_thread syscall" + - ACCEL="kvm" - addons: apt_packages: gcc-arm-linux-gnueabihf qemu-system-arm @@ -85,6 +90,9 @@ matrix: - ACCEL="tcg,firmware=s390x/run" before_script: + - if [ "$ACCEL" = "kvm" ]; then + sudo chmod u+s /usr/bin/qemu-system-* ; + fi - mkdir -p $BUILD_DIR && cd $BUILD_DIR - if [ -e ./configure ]; then ./configure $CONFIG ; fi - if [ -e ../configure ]; then ../configure $CONFIG ; fi From patchwork Wed Nov 13 11:26:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 11241743 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 428151515 for ; Wed, 13 Nov 2019 11:27:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1A46D2245C for ; Wed, 13 Nov 2019 11:27:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FxLv3krx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727936AbfKML1N (ORCPT ); Wed, 13 Nov 2019 06:27:13 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:45896 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727733AbfKML1M (ORCPT ); Wed, 13 Nov 2019 06:27:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573644431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DRnn3I7+CMe5tSFVJiYe3vzKe25C9XarD+qgUqrzjoM=; b=FxLv3krxvD4bb4FXHQAXf9URkDDnS66LweykYAjmUgQG9UgJEFHZFuPpwvzHfPtZBB00Ic 88xSuaQRej+L2KfkSdFgy/1oLrmAzDNRjFU3oPgex4diDlKTpsS/2s+LVHY+20LFzLCIls EsDM9p53W/qBaKeC+9s9nFkA/RNyghs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-195-nFCej38CMEOthDgBZL7D0Q-1; Wed, 13 Nov 2019 06:27:10 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BC72F477; Wed, 13 Nov 2019 11:27:09 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-183.ams2.redhat.com [10.36.116.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7D3ED6046B; Wed, 13 Nov 2019 11:27:02 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Paolo Bonzini Cc: David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [kvm-unit-test PATCH 4/5] travis.yml: Test the i386 build, too Date: Wed, 13 Nov 2019 12:26:48 +0100 Message-Id: <20191113112649.14322-5-thuth@redhat.com> In-Reply-To: <20191113112649.14322-1-thuth@redhat.com> References: <20191113112649.14322-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: nFCej38CMEOthDgBZL7D0Q-1 X-Mimecast-Spam-Score: 0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org After installing gcc-multilib, we can also test the 32-bit builds on Travis. Signed-off-by: Thomas Huth Reviewed-by: Alex Bennée --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index f91118c..9ceb04d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,21 @@ matrix: vmexit_tscdeadline_immed vmx_apic_passthrough_thread syscall" - ACCEL="kvm" + - addons: + apt_packages: gcc gcc-multilib qemu-system-x86 + env: + - CONFIG="--arch=i386" + - BUILD_DIR="." + - TESTS="eventinj port80 sieve tsc taskswitch umip vmexit_ple_round_robin" + + - addons: + apt_packages: gcc gcc-multilib qemu-system-x86 + env: + - CONFIG="--arch=i386" + - BUILD_DIR="i386-builddir" + - TESTS="vmexit_mov_from_cr8 vmexit_ipi vmexit_ipi_halt vmexit_mov_to_cr8 + vmexit_cpuid vmexit_tscdeadline vmexit_tscdeadline_immed" + - addons: apt_packages: gcc-arm-linux-gnueabihf qemu-system-arm env: From patchwork Wed Nov 13 11:26:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 11241745 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 21C201515 for ; Wed, 13 Nov 2019 11:27:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ECBD42245B for ; Wed, 13 Nov 2019 11:27:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UAxosVQY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727931AbfKML11 (ORCPT ); Wed, 13 Nov 2019 06:27:27 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:21912 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727733AbfKML10 (ORCPT ); Wed, 13 Nov 2019 06:27:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573644445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HOVovCio+WLnA1ZCsJ6egR16eHtP8JxsABFT4kxRGog=; b=UAxosVQYmnOG1oSjo926TycgxDokDkHbLDBcDtO8J9Cy9j3LlRXzEN37WwukvGvlnle2Kg myAvBhaId72wENc5bmKI5kkiPESDXRFAqkWpeYRu675rLKTVRFPkUP/gzxupGBmLAAQlUU hZN34ZyxRGW3OsMAGAP1WmymyBXojys= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-217-O6Uvhf_mO9KewSMQ5h-oZg-1; Wed, 13 Nov 2019 06:27:21 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4DC3A1852E2A; Wed, 13 Nov 2019 11:27:19 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-183.ams2.redhat.com [10.36.116.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1F3C86046B; Wed, 13 Nov 2019 11:27:09 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Paolo Bonzini Cc: David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [kvm-unit-test PATCH 5/5] travis.yml: Expect that at least one test succeeds Date: Wed, 13 Nov 2019 12:26:49 +0100 Message-Id: <20191113112649.14322-6-thuth@redhat.com> In-Reply-To: <20191113112649.14322-1-thuth@redhat.com> References: <20191113112649.14322-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: O6Uvhf_mO9KewSMQ5h-oZg-1 X-Mimecast-Spam-Score: 0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org While working on the travis.yml file, I've run into cases where all tests are reported as "SKIP" by the run_test.sh script (e.g. when QEMU could not be started). This should not result in a successful test run, so mark it as failed if not at least one test passed. Signed-off-by: Thomas Huth Reviewed-by: Alex Bennée --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 9ceb04d..aacf7d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -115,3 +115,4 @@ script: - make -j3 - ACCEL="${ACCEL:-tcg}" ./run_tests.sh -v $TESTS | tee results.txt - if grep -q FAIL results.txt ; then exit 1 ; fi + - if ! grep -q PASS results.txt ; then exit 1 ; fi