qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-s390x@nongnu.org,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Ilya Leoshkevich" <iii@linux.ibm.com>
Subject: [risu RFC PATCH v3 7/7] Add a travis.yml file for testing RISU in the Travis-CI
Date: Thu, 14 Sep 2023 13:33:11 +0200	[thread overview]
Message-ID: <20230914113311.379537-8-thuth@redhat.com> (raw)
In-Reply-To: <20230914113311.379537-1-thuth@redhat.com>

Travis-CI offers native build machines for aarch64, ppc64le
and s390x, so this is very useful for testing RISU on these
architectures. While compiling works fine for all architectures,
running the binary currently only works for s390x (the aarch64
runner reports a mismatch when comparing the registers, and
the ppc64le runner simply hangs), so we can only run the
resulting binary on s390x right now.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 Not sure if this is useful for anybody but me since Travis is
 not that popular anymore these days ... so please feel free
 to ignore this patch.

 .travis.yml | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..bafa8df
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,37 @@
+dist: focal
+language: c
+compiler:
+  - gcc
+addons:
+  apt:
+    packages:
+      - perl
+      - perl-modules
+      - liblist-compare-perl
+
+before_script:
+  - ./configure
+script:
+  - set -e
+  - make -j2
+  - ./risugen --numinsns 1000 ${ARCH}.risu ${ARCH}.bin
+
+matrix:
+  include:
+
+    - env:
+        - ARCH="aarch64"
+      arch: arm64
+
+    - env:
+        - ARCH="ppc64"
+      arch: ppc64le
+
+    - env:
+        - ARCH="s390x"
+      arch: s390x
+      after_script:
+      - ./risu --master ${ARCH}.bin > stdout.txt 2> stderr.txt &
+      - sleep 1
+      - ./risu --host localhost ${ARCH}.bin
+      - cat stdout.txt stderr.txt
-- 
2.41.0



  parent reply	other threads:[~2023-09-14 11:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-14 11:33 [risu PATCH v3 0/7] Add support for s390x to RISU Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 1/7] Pass siginfo_t->si_addr to the reginfo_init() function Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 2/7] s390x: Add basic s390x support to the C code Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 3/7] s390x: Add simple s390x.risu file Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 4/7] s390x: Add basic risugen perl module for s390x Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 5/7] s390x: Update the configure script for s390x support Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 6/7] build-all-archs: Add s390x to the script that builds all architectures Thomas Huth
2023-09-14 11:33 ` Thomas Huth [this message]
2023-09-18 12:27 ` [risu PATCH v3 0/7] Add support for s390x to RISU Peter Maydell

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=20230914113311.379537-8-thuth@redhat.com \
    --to=thuth@redhat.com \
    --cc=iii@linux.ibm.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    /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).