mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: swi-prolog: Enable tests.
* gnu/packages/prolog.scm (swi-prolog)[arguments]: Enable tests and work around tests that cause failure by trying to write to the store, or establishing a network connection.
This commit is contained in:
parent
198af489de
commit
5a92e7c954
1 changed files with 27 additions and 1 deletions
|
@ -100,11 +100,37 @@ manner. It also features an interactive interpreter.")
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:parallel-build? #t
|
`(#:parallel-build? #t
|
||||||
#:tests? #f ; FIXME: Some tests require network access.
|
#:tests? #t
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
(list "-DINSTALL_DOCUMENTATION=ON"
|
(list "-DINSTALL_DOCUMENTATION=ON"
|
||||||
"-DBUILD_PDF_DOCUMENTATION=ON"
|
"-DBUILD_PDF_DOCUMENTATION=ON"
|
||||||
"-DSWIPL_INSTALL_IN_LIB=OFF"))) ; FIXME: Breaks RUNPATH validation.
|
"-DSWIPL_INSTALL_IN_LIB=OFF"))) ; FIXME: Breaks RUNPATH validation.
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
;; XXX: Delete a variety of tests which fail either attempting to
|
||||||
|
;; establish a network connection, or attempts to write to the
|
||||||
|
;; immutable store. Phases marked *-pre are disabled /before/ building.
|
||||||
|
;; Phases marked *-post are disabled /after/ building.
|
||||||
|
(add-after 'unpack 'delete-failing-tests-pre
|
||||||
|
(lambda _
|
||||||
|
(substitute* "src/CMakeLists.txt"
|
||||||
|
((" save") ""))
|
||||||
|
(substitute* "src/test.pl"
|
||||||
|
(("testdir\\('Tests/save'\\).") ""))
|
||||||
|
(with-directory-excursion "src/Tests"
|
||||||
|
(for-each delete-file-recursively
|
||||||
|
'("save")))
|
||||||
|
#t))
|
||||||
|
(add-before 'check 'delete-failing-tests-post
|
||||||
|
(lambda _
|
||||||
|
(with-directory-excursion "packages"
|
||||||
|
(for-each delete-file-recursively
|
||||||
|
'("http"
|
||||||
|
"pengines"
|
||||||
|
"RDF"
|
||||||
|
"semweb"
|
||||||
|
"ssl")))
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("zlib" ,zlib)
|
`(("zlib" ,zlib)
|
||||||
("gmp" ,gmp)
|
("gmp" ,gmp)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue