diff options
author | Eric Bavier <bavier@member.fsf.org> | 2017-02-12 19:51:43 -0600 |
---|---|---|
committer | Eric Bavier <bavier@member.fsf.org> | 2017-02-13 22:28:33 -0600 |
commit | 4fc282b32a16946d423cdbbdd7ee94d025d3b9f5 (patch) | |
tree | 095c6f98d8e5413a52088b12bf5bf11ca493ea32 /gnu/packages/web.scm | |
parent | 710806b57b07500e1060fd32c1719b8ce8efbbe7 (diff) | |
download | guix-4fc282b32a16946d423cdbbdd7ee94d025d3b9f5.tar guix-4fc282b32a16946d423cdbbdd7ee94d025d3b9f5.tar.gz |
gnu: netsurf: Enable tests.
* gnu/packages/patches/netsurf-longer-test-timeout.patch,
gnu/packages/patches/netsurf-y2038-tests.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/web.scm (netsurf)[source]: Use them.
[native-inputs]: Add libidn, check.
[inputs]: Add miscfiles.
[arguments]: Remove #:tests?, add #:test-target. Add 'patch-check phase.
Diffstat (limited to 'gnu/packages/web.scm')
-rw-r--r-- | gnu/packages/web.scm | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 1584b93beb..e50a3701fe 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -65,11 +65,13 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnu-doc) #:use-module (gnu packages gnupg) #:use-module (gnu packages gperf) #:use-module (gnu packages gtk) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) + #:use-module (gnu packages libidn) #:use-module (gnu packages lua) #:use-module (gnu packages ncurses) #:use-module (gnu packages base) @@ -4076,11 +4078,15 @@ w3c webidl files and a binding configuration file.") (sha256 (base32 "174sjx0566agckwmlj4w2cip5qbxdiafyhlp185a1qprxx84pbjr")) - (patches (search-patches "netsurf-system-utf8proc.patch")))) + (patches (search-patches "netsurf-system-utf8proc.patch" + "netsurf-y2038-tests.patch" + "netsurf-longer-test-timeout.patch")))) (build-system glib-or-gtk-build-system) (native-inputs `(("netsurf-buildsystem" ,netsurf-buildsystem) ("nsgenbind" ,nsgenbind) + ("libidn" ,libidn) ;only for tests + ("check" ,check) ("perl" ,perl) ("perl-html-parser" ,perl-html-parser) ("pkg-config" ,pkg-config))) @@ -4097,7 +4103,8 @@ w3c webidl files and a binding configuration file.") ("libnsgif" ,libnsgif) ("libnspsl" ,libnspsl) ("libnsutils" ,libnsutils) - ("libsvgtiny" ,libsvgtiny))) + ("libsvgtiny" ,libsvgtiny) + ("miscfiles" ,miscfiles))) (arguments `(#:make-flags `("CC=gcc" "BUILD_CC=gcc" ,(string-append "PREFIX=" %output) @@ -4105,7 +4112,7 @@ w3c webidl files and a binding configuration file.") (assoc-ref %build-inputs "netsurf-buildsystem") "/share/netsurf-buildsystem")) - #:tests? #f + #:test-target "test" #:modules ((ice-9 rdelim) (ice-9 match) (srfi srfi-1) @@ -4144,6 +4151,12 @@ w3c webidl files and a binding configuration file.") (x x))) out))) #t)) + (add-before 'check 'patch-check + (lambda* (#:key inputs #:allow-other-keys) + (substitute* '("test/bloom.c" "test/hashtable.c") + (("/usr/share/dict/words") + (string-append (assoc-ref inputs "miscfiles") "/share/web2"))) + #t)) (add-after 'install 'install-more (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) |