kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Thomas Huth" <thuth@redhat.com>,
	kvm@vger.kernel.org, "Radim Krčmář" <rkrcmar@redhat.com>
Cc: "David Hildenbrand" <david@redhat.com>,
	"Drew Jones" <drjones@redhat.com>,
	"Laurent Vivier" <lvivier@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [kvm-unit-tests PATCH] travis.yml: Enable running of tests with TCG
Date: Tue, 10 Sep 2019 16:50:59 +0200	[thread overview]
Message-ID: <5a14349e-4345-7a5f-3e9f-a697fca79b56@redhat.com> (raw)
In-Reply-To: <20190830184509.15240-1-thuth@redhat.com>

On 30/08/19 20:45, Thomas Huth wrote:
> Currently the tests at the end of the .travis.yml script are ignored,
> since we can not use KVM in the Travis containers. But we can actually
> run of some of the kvm-unit-tests with TCG instead, to make sure that
> the binaries are not completely broken.
> Thus introduce a new TESTS variable that lists the tests which we can
> run with TCG. Unfortunately, the ppc64 and s390x QEMUs in Ubuntu also
> need some extra love: The ppc64 version only works with the additional
> "cap-htm=off" setting. And the s390x package lacks the firmware and
> refuses to work unless we provide a fake firmware file here. Any file
> works since the firmware is skipped when "-kernel" is used, so we can
> simply use one of the pre-existing files in the source tree.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  .travis.yml | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)
> 
> diff --git a/.travis.yml b/.travis.yml
> index a4a165d..6c14953 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -20,24 +20,40 @@ env:
>    matrix:
>      - 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
> +             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"
>  
>  before_script:
>    - mkdir -p $BUILD_DIR && cd $BUILD_DIR
> @@ -45,4 +61,5 @@ before_script:
>    - if [ -e ../configure ]; then ../configure $CONFIG ; fi
>  script:
>    - make -j3
> -  - ./run_tests.sh || true
> +  - ACCEL="${ACCEL:-tcg}" ./run_tests.sh -v $TESTS | tee results.txt
> +  - if grep -q FAIL results.txt ; then exit 1 ; fi
> 

Queued, thanks.

Paolo

      parent reply	other threads:[~2019-09-10 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-30 18:45 [kvm-unit-tests PATCH] travis.yml: Enable running of tests with TCG Thomas Huth
2019-09-06  9:43 ` David Hildenbrand
2019-09-06  9:54   ` Thomas Huth
2019-09-06 10:02     ` David Hildenbrand
2019-09-06 10:10       ` Thomas Huth
2019-09-10 14:50 ` Paolo Bonzini [this message]

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=5a14349e-4345-7a5f-3e9f-a697fca79b56@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=david@redhat.com \
    --cc=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=lvivier@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=thuth@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).