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 <th...@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