diff options
| author | Danny Milosavljevic <dannym@scratchpost.org> | 2019-01-18 18:12:15 +0100 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@scratchpost.org> | 2019-01-18 22:24:14 +0100 |
| commit | 69e47686c9a8a2b5c4ee33e5b14da657de3d7ca0 (patch) | |
| tree | a7c26f8360b694bfce0afc78c4ccf6a677c081a3 /gnu/tests/docker.scm | |
| parent | 64a1ddba7ad5727c13af639bf36b25d40810f7a2 (diff) | |
tests: docker: Use "package" instead of "dummy-package".
* gnu/tests/docker.scm (build-tarball&run-docker-test): Use "package" instead
of "dummy-package".
Diffstat (limited to 'gnu/tests/docker.scm')
| -rw-r--r-- | gnu/tests/docker.scm | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/gnu/tests/docker.scm b/gnu/tests/docker.scm index f69b2985e10..25e172efae3 100644 --- a/gnu/tests/docker.scm +++ b/gnu/tests/docker.scm | |||
| @@ -37,6 +37,7 @@ | |||
| 37 | #:use-module (guix store) | 37 | #:use-module (guix store) |
| 38 | #:use-module (guix tests) | 38 | #:use-module (guix tests) |
| 39 | #:use-module (guix build-system trivial) | 39 | #:use-module (guix build-system trivial) |
| 40 | #:use-module ((guix licenses) #:prefix license:) | ||
| 40 | #:export (%test-docker)) | 41 | #:export (%test-docker)) |
| 41 | 42 | ||
| 42 | (define %docker-os | 43 | (define %docker-os |
| @@ -131,17 +132,24 @@ inside %DOCKER-OS." | |||
| 131 | ((_ (set-grafting #f)) | 132 | ((_ (set-grafting #f)) |
| 132 | (guile (set-guile-for-build (default-guile))) | 133 | (guile (set-guile-for-build (default-guile))) |
| 133 | (guest-script-package -> | 134 | (guest-script-package -> |
| 134 | (dummy-package "guest-script" | 135 | (package |
| 135 | (build-system trivial-build-system) | 136 | (name "guest-script") |
| 136 | (arguments | 137 | (version "0") |
| 137 | `(#:guile ,%bootstrap-guile | 138 | (source #f) |
| 138 | #:builder | 139 | (build-system trivial-build-system) |
| 139 | (let ((out (assoc-ref %outputs "out"))) | 140 | (arguments `(#:guile ,%bootstrap-guile |
| 140 | (mkdir out) | 141 | #:builder |
| 141 | (call-with-output-file (string-append out "/a.scm") | 142 | (let ((out (assoc-ref %outputs "out"))) |
| 142 | (lambda (port) | 143 | (mkdir out) |
| 143 | (display "(display \"hello world\n\")" port))) | 144 | (call-with-output-file (string-append out "/a.scm") |
| 144 | #t))))) | 145 | (lambda (port) |
| 146 | (display "(display \"hello world\n\")" port))) | ||
| 147 | #t))) | ||
| 148 | (synopsis "Display hello world using Guile") | ||
| 149 | (description "This package displays the text \"hello world\" on the | ||
| 150 | standard output device and then enters a new line.") | ||
| 151 | (home-page #f) | ||
| 152 | (license license:public-domain))) | ||
| 145 | (profile (profile-derivation (packages->manifest | 153 | (profile (profile-derivation (packages->manifest |
| 146 | (list %bootstrap-guile | 154 | (list %bootstrap-guile |
| 147 | guest-script-package)) | 155 | guest-script-package)) |
