From 3920159bf7b7eb22a197b02aba264ba55a253352 Mon Sep 17 00:00:00 2001 From: xun Date: Thu, 19 Oct 2023 16:25:21 +0800 Subject: [PATCH] upgpatch: python-llvmlite Skip OrcJIT tests on riscv64. OrcJIT is still in the experimental stage, and there are some issues where the OrcJIT test fails when tested on non-x86 platforms (e.g. Issue [numba#1000](https://github.com/numba/llvmlite/issues/1000)), so skip writing this test on non-x86 platforms. --- python-llvmlite/riscv64.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python-llvmlite/riscv64.patch b/python-llvmlite/riscv64.patch index 69c268fab..ccfc379d9 100644 --- a/python-llvmlite/riscv64.patch +++ b/python-llvmlite/riscv64.patch @@ -1,16 +1,16 @@ -diff --git PKGBUILD PKGBUILD -index 50c73a3..7fbf334 100644 --- PKGBUILD +++ PKGBUILD -@@ -24,7 +24,10 @@ build() { +@@ -24,7 +24,12 @@ build() { check() { cd "${_name}-$pkgver" - pytest -vv $_name/tests + # Skip MCJIT related failures, as it's known to be broken on RISC-V ++ # Skip OrcLLJIT tests on non-x86 platforms + pytest -vv $_name/tests --deselect llvmlite/tests/test_binding.py::TestMCJit \ + --deselect llvmlite/tests/test_binding.py::TestGlobalConstructors \ -+ --deselect llvmlite/tests/test_binding.py::TestObjectFile::test_add_object_file ++ --deselect llvmlite/tests/test_binding.py::TestObjectFile::test_add_object_file \ ++ --deselect llvmlite/tests/test_binding.py::TestOrcLLJIT } package() {