tests: Adjust `gnu-build' test to search path mechanism.
Fixes a regression introduced in a18eda2
.
Reported by Nikita Karetnikov <nikita@karetnikov.org>.
* tests/builders.scm (%bootstrap-search-paths): New variable.
("gnu-build"): Pass #:search-paths.
This commit is contained in:
parent
1010e530d3
commit
7a88ad6bff
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -25,7 +25,8 @@
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (guix base32)
|
#:use-module (guix base32)
|
||||||
#:use-module (guix derivations)
|
#:use-module (guix derivations)
|
||||||
#:use-module ((guix packages) #:select (package-derivation))
|
#:use-module ((guix packages)
|
||||||
|
#:select (package-derivation package-native-search-paths))
|
||||||
#:use-module (gnu packages bootstrap)
|
#:use-module (gnu packages bootstrap)
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module (srfi srfi-1)
|
#:use-module (srfi srfi-1)
|
||||||
|
@ -50,6 +51,13 @@
|
||||||
(list name (package-derivation %store package))))
|
(list name (package-derivation %store package))))
|
||||||
(@@ (gnu packages base) %boot0-inputs))))
|
(@@ (gnu packages base) %boot0-inputs))))
|
||||||
|
|
||||||
|
(define %bootstrap-search-paths
|
||||||
|
;; Search path specifications that go with %BOOTSTRAP-INPUTS.
|
||||||
|
(append-map (match-lambda
|
||||||
|
((name package _ ...)
|
||||||
|
(package-native-search-paths package)))
|
||||||
|
(@@ (gnu packages base) %boot0-inputs)))
|
||||||
|
|
||||||
(define network-reachable?
|
(define network-reachable?
|
||||||
(false-if-exception (getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)))
|
(false-if-exception (getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)))
|
||||||
|
|
||||||
|
@ -83,7 +91,8 @@
|
||||||
(build (gnu-build %store "hello-2.8" tarball
|
(build (gnu-build %store "hello-2.8" tarball
|
||||||
%bootstrap-inputs
|
%bootstrap-inputs
|
||||||
#:implicit-inputs? #f
|
#:implicit-inputs? #f
|
||||||
#:guile %bootstrap-guile))
|
#:guile %bootstrap-guile
|
||||||
|
#:search-paths %bootstrap-search-paths))
|
||||||
(out (derivation-path->output-path build)))
|
(out (derivation-path->output-path build)))
|
||||||
(and (build-derivations %store (list (pk 'hello-drv build)))
|
(and (build-derivations %store (list (pk 'hello-drv build)))
|
||||||
(valid-path? %store out)
|
(valid-path? %store out)
|
||||||
|
|
Loading…
Reference in New Issue