pack: Adjust test to expect relative symlinks.
Reported by Chris Marusich <cmmarusich@gmail.com>. Fixes <https://bugs.gnu.org/31560>. * tests/pack.scm ("self-contained-tarball"): Rename 'guile' to 'bin'. Expect 'bin/Guile' to be a relative symlink.
This commit is contained in:
parent
44057a461b
commit
ccc951cab3
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -65,17 +65,17 @@
|
||||||
#:archiver %tar-bootstrap))
|
#:archiver %tar-bootstrap))
|
||||||
(check (gexp->derivation
|
(check (gexp->derivation
|
||||||
"check-tarball"
|
"check-tarball"
|
||||||
#~(let ((guile (string-append "." #$profile "/bin")))
|
#~(let ((bin (string-append "." #$profile "/bin")))
|
||||||
(setenv "PATH"
|
(setenv "PATH"
|
||||||
(string-append #$%tar-bootstrap "/bin"))
|
(string-append #$%tar-bootstrap "/bin"))
|
||||||
(system* "tar" "xvf" #$tarball)
|
(system* "tar" "xvf" #$tarball)
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(exit
|
(exit
|
||||||
(and (file-exists? (string-append guile "/guile"))
|
(and (file-exists? (string-append bin "/guile"))
|
||||||
(string=? (string-append #$%bootstrap-guile "/bin")
|
(string=? (string-append #$%bootstrap-guile "/bin")
|
||||||
(readlink guile))
|
(readlink bin))
|
||||||
(string=? (string-append (string-drop guile 1)
|
(string=? (string-append ".." #$profile
|
||||||
"/guile")
|
"/bin/guile")
|
||||||
(readlink "bin/Guile"))))))))
|
(readlink "bin/Guile"))))))))
|
||||||
(built-derivations (list check))))
|
(built-derivations (list check))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue