From: Andrew Jones Date: Fri, 26 Jan 2024 15:23:48 +0100 Subject: [kvm-unit-tests PATCH v2 23/24] gitlab-ci: Add riscv64 tests In-Reply-To: <20240126142324.66674-26-andrew.jones@linux.dev> References: <20240126142324.66674-26-andrew.jones@linux.dev> Message-ID: <20240126142324.66674-49-andrew.jones@linux.dev> List-Id: To: kvm-riscv@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Add build/run tests for riscv64. We would also add riscv32, but Fedora doesn't package what we need for that. Signed-off-by: Andrew Jones Acked-by: Thomas Huth --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 273ec9a7224b..71d986e9884e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,6 +87,23 @@ build-ppc64le: | tee results.txt - if grep -q FAIL results.txt ; then exit 1 ; fi +# build-riscv32: +# Fedora doesn't package a riscv32 compiler for QEMU. Oh, well. + +# Select 'rv64' with PROCESSOR_OVERRIDE in case QEMU is too old to have 'max' +build-riscv64: + extends: .intree_template + script: + - dnf install -y qemu-system-riscv gcc-riscv64-linux-gnu + - ./configure --arch=riscv64 --cross-prefix=riscv64-linux-gnu- + - make -j2 + - printf "FOO=foo\nBAR=bar\nBAZ=baz\nMVENDORID=0\n" >test-env + - PROCESSOR_OVERRIDE=rv64 ACCEL=tcg KVM_UNIT_TESTS_ENV=test-env ./run_tests.sh + selftest + sbi + | tee results.txt + - grep -q PASS results.txt && ! grep -q FAIL results.txt + build-s390x: extends: .outoftree_template script: -- 2.43.0