All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: kvm@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>,
	Janosch Frank <frankja@linux.ibm.com>,
	Cornelia Huck <cohuck@redhat.com>,
	Claudio Imbrenda <imbrenda@linux.ibm.com>,
	David Hildenbrand <david@redhat.com>
Subject: [kvm-unit-tests PATCH 4/4] Test compilation with Clang on aarch64, ppc64le and s390x in Travis-CI
Date: Tue, 22 Jun 2021 15:55:17 +0200	[thread overview]
Message-ID: <20210622135517.234801-5-thuth@redhat.com> (raw)
In-Reply-To: <20210622135517.234801-1-thuth@redhat.com>

Travis-CI recently changed their policy so that builds on the non-x86
build machines are possible without consuming any credits again. We can
use these systems to test compilation of the non-x86 code with Clang.
Unfortunately, the qemu-system-s390x of Ubuntu 20.04 seems to be buggy,
so that the s390x binaries cause that QEMU to crash. Thus we can only
run the TCG tests for ppc64le and aarch64.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 .travis.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..4fcb687
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,44 @@
+dist: focal
+language: c
+cache: ccache
+compiler: clang
+git:
+  submodules: false
+
+jobs:
+  include:
+
+    - arch: arm64
+      addons:
+        apt_packages: qemu-system-aarch64
+      env:
+      - CONFIG="--arch=arm64 --cc=clang"
+      - TESTS="cache gicv2-active gicv2-ipi gicv2-mmio gicv3-active gicv3-ipi
+          pci-test pmu-cycle-counter pmu-event-counter-config pmu-sw-incr
+          selftest-setup selftest-smp selftest-vectors-kernel
+          selftest-vectors-user timer"
+
+    - arch: ppc64le
+      addons:
+        apt_packages: clang-11 qemu-system-ppc
+      env:
+      - CONFIG="--arch=ppc64 --endian=little --cc=clang-11 --cflags=-no-integrated-as"
+      - TESTS="emulator rtas-get-time-of-day rtas-get-time-of-day-base
+          rtas-set-time-of-day selftest-setup spapr_hcall"
+
+    - arch: s390x
+      addons:
+        apt_packages: clang-11 qemu-system-s390x
+      env:
+      - CONFIG="--arch=s390x --cc=clang-11 --cflags=-no-integrated-as"
+      - TESTS=""
+
+before_script:
+  - mkdir -p build && cd build
+  - $TRAVIS_BUILD_DIR/configure $CONFIG
+script:
+  - make -j3
+  - if [ -n "$TESTS" ]; then
+      ACCEL="${ACCEL:-tcg}" ./run_tests.sh -v $TESTS | tee results.txt &&
+      grep -q PASS results.txt && ! grep -q FAIL results.txt ;
+    fi
-- 
2.27.0


  parent reply	other threads:[~2021-06-22 13:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-22 13:55 [kvm-unit-tests PATCH 0/4] Test compiling with Clang in the Travis-CI Thomas Huth
2021-06-22 13:55 ` [kvm-unit-tests PATCH 1/4] configure: Add the possibility to specify additional cflags Thomas Huth
2021-06-22 13:55 ` [kvm-unit-tests PATCH 2/4] powerpc: Probe whether the compiler understands -mabi=no-altivec Thomas Huth
2021-06-22 13:55 ` [kvm-unit-tests PATCH 3/4] lib/s390x: Fix the epsw inline assembly Thomas Huth
2021-06-22 14:12   ` Claudio Imbrenda
2021-06-22 16:40     ` Thomas Huth
2021-06-23  7:33   ` Janosch Frank
2021-06-22 13:55 ` Thomas Huth [this message]
2021-06-22 16:25 ` [kvm-unit-tests PATCH 0/4] Test compiling with Clang in the Travis-CI 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=20210622135517.234801-5-thuth@redhat.com \
    --to=thuth@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=david@redhat.com \
    --cc=frankja@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.