diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2012-11-13 00:22:44 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2012-11-13 00:23:39 +0100 |
| commit | 87f5d36630db13fee1f2c0563505dc0938f3787e (patch) | |
| tree | 9cbbbd3d3c47b647ff7b3131cf8271586e5167a6 /tests/builders.scm | |
| parent | 62cab99c3297a066f466780bb4d83a4f142538c7 (diff) | |
Remove (guix http) and (guix ftp).
* guix/ftp.scm, guix/http.scm, guix/build/ftp.scm, guix/build/http.scm:
Remove.
* Makefile.am (MODULES): Likewise.
* tests/builders.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gnupg.scm, distro/packages/gperf.scm,
distro/packages/guile.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/lout.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/ncurses.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm: Use
`url-fetch' instead of `http-fetch' and `ftp-fetch'.
* distro/packages/bootstrap.scm: Likewise
(bootstrap-origin): Remove references to `http-fetch' and
`ftp-fetch'.
* guix.scm (%public-modules): Remove `http' and `ftp'; add `download'.
Diffstat (limited to 'tests/builders.scm')
| -rw-r--r-- | tests/builders.scm | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/builders.scm b/tests/builders.scm index 9cc86ef1c21..d2691c521f4 100644 --- a/tests/builders.scm +++ b/tests/builders.scm | |||
| @@ -18,7 +18,6 @@ | |||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | (define-module (test-builders) | 20 | (define-module (test-builders) |
| 21 | #:use-module (guix http) | ||
| 22 | #:use-module (guix download) | 21 | #:use-module (guix download) |
| 23 | #:use-module (guix build-system) | 22 | #:use-module (guix build-system) |
| 24 | #:use-module (guix build-system gnu) | 23 | #:use-module (guix build-system gnu) |
| @@ -54,16 +53,6 @@ | |||
| 54 | 53 | ||
| 55 | (test-begin "builders") | 54 | (test-begin "builders") |
| 56 | 55 | ||
| 57 | (test-assert "http-fetch" | ||
| 58 | (let* ((url "http://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz") | ||
| 59 | (hash (nix-base32-string->bytevector | ||
| 60 | "0wqd8sjmxfskrflaxywc7gqw7sfawrfvdxd9skxawzfgyy0pzdz6")) | ||
| 61 | (drv-path (http-fetch %store url 'sha256 hash)) | ||
| 62 | (out-path (derivation-path->output-path drv-path))) | ||
| 63 | (and (build-derivations %store (list drv-path)) | ||
| 64 | (file-exists? out-path) | ||
| 65 | (valid-path? %store out-path)))) | ||
| 66 | |||
| 67 | (test-assert "url-fetch" | 56 | (test-assert "url-fetch" |
| 68 | (let* ((url '("http://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz" | 57 | (let* ((url '("http://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz" |
| 69 | "ftp://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz")) | 58 | "ftp://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz")) |
| @@ -83,7 +72,7 @@ | |||
| 83 | (let* ((url "http://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz") | 72 | (let* ((url "http://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz") |
| 84 | (hash (nix-base32-string->bytevector | 73 | (hash (nix-base32-string->bytevector |
| 85 | "0wqd8sjmxfskrflaxywc7gqw7sfawrfvdxd9skxawzfgyy0pzdz6")) | 74 | "0wqd8sjmxfskrflaxywc7gqw7sfawrfvdxd9skxawzfgyy0pzdz6")) |
| 86 | (tarball (http-fetch %store url 'sha256 hash)) | 75 | (tarball (url-fetch %store url 'sha256 hash)) |
| 87 | (build (gnu-build %store "hello-2.8" tarball | 76 | (build (gnu-build %store "hello-2.8" tarball |
| 88 | %bootstrap-inputs | 77 | %bootstrap-inputs |
| 89 | #:implicit-inputs? #f | 78 | #:implicit-inputs? #f |
