efraim pushed a commit to branch wip-riscv
in repository guix.
commit d2eeede98c15e872b23cc6138708ac91dc904b28
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Aug 31 13:38:20 2021 +0300
gnu: php: Skip tests failing on riscv64-linux.
* gnu/packages/php.scm (php)[arguments]: Adjust custom 'prepare-tests
phase to delete some tests when building for riscv64-linux.
---
gnu/packages/php.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/php.scm b/gnu/packages/php.scm
index cecb615..16e9315 100644
--- a/gnu/packages/php.scm
+++ b/gnu/packages/php.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2018 Ricardo Wurmus <[email protected]>
;;; Copyright © 2019 Oleg Pykhalov <[email protected]>
;;; Copyright © 2020 Maxim Cournoyer <[email protected]>
+;;; Copyright © 2021 Efraim Flashner <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -196,6 +197,14 @@
"sapi/cli/tests/upload_2G.phpt"
"Zend/tests/concat_003.phpt")))
'())
+ ,@(if (target-riscv64?)
+ ;; Drop tests known to fail on riscv64.
+ '((for-each delete-file
+ (list
+ ;; extensive backtracking
+ "ext/fileinfo/tests/cve-2014-3538-nojit.phpt"
+ "ext/fileinfo/tests/cve-2014-3538.phpt")))
+ '())
,@(if (target-ppc64le?)
;; Drop tests known to fail on powerpc64le.