~ruther/guix-local

ref: 7cee3cb2c4e9586d4c07d3d8d63519b4445b3f21 guix-local/tests d---------
953c2de7 — Marius Bakke 8 years ago
tests: Disable test for freed disk space that fails on Btrfs.

This is a follow-up to commit 40e89f5be609045bc2666cc16a4ef80bb7f84095.

* tests/store.scm ("dead path can be explicitly collected"): Don't check
that (> freed 0).
* gnu/packages/package-management.scm (guix)[arguments]<#:phases>: Remove
workaround for the same problem.
19fd7229 — Ludovic Courtès 8 years ago
workers: Add test with exceptions.

* tests/workers.scm ("exceptions"): New test.
ff23b47d — Ludovic Courtès 8 years ago
tests: 'guix-gc.sh' passes even when 'out' or 'drv' are defined as env vars.

This fixes a test failure exhibited by
fb17a89912c2a3738dae716e30481c11e1c6f0ac whereby assignments to 'out' in
guix-gc.sh would go to the 'out' environment variable, when it exists,
which in turn prevents garbage collection of $out.

* tests/guix-gc.sh: Add 'unset' invocations.
ae0307f7 — Ludovic Courtès 8 years ago
tests: Adjust to new unbound-variable error message.

This is a followup to dc856223f5eab57d8a4881782ec0f50abd12afa3.

* tests/guix-package.sh: Adjust unbound-variable message regexp.
4ad3a3f9 — Ludovic Courtès 8 years ago
tests: Refer to "time@1.8".

This is a followup to dd00e0919fcecd895ff4e5a646cf068f46ff8d12.

* tests/guix-build.sh: Refer to "time@1.8".
b70d72ac — Ludovic Courtès 8 years ago
tests: Adjust to unbound-variable exception printer.

* tests/guix-system.sh: Adjust unbound-variable test for commit
dc856223f5eab57d8a4881782ec0f50abd12afa3.
c5a4a92f — Ludovic Courtès 8 years ago
gnu: Improve error reporting of the use-.*modules macros.

Suggested by Julien Lepiller and myglc2
at <https://lists.gnu.org/archive/html/guix-devel/2017-11/msg00106.html>.

* gnu.scm (%try-use-modules): New procedure.
(package-module-hint, service-module-hint): New procedures.
(try-use-modules): New macro.
(use-package-modules, use-service-modules, use-system-modules): Use it.
* tests/guix-system.sh: Test it.
49483f71 — Ludovic Courtès 8 years ago
services: Add 'lookup-service-types'.

* gnu/services.scm (lookup-service-types): New procedure.
* tests/services.scm ("lookup-service-types"): New test.
b5c7574b — Tobias Geerinckx-Rice 8 years ago
Revert "import: cpan: Use HTTPS for home pages."

This reverts commit 29f7bf59d5d4d4b848eaedc6766bb4e02cae20d3: HTTPS support
at search.cpan.org is unreliable, at best.  Don't rely on it.
29f7bf59 — Tobias Geerinckx-Rice 8 years ago
import: cpan: Use HTTPS for home pages.

* guix/import/cpan.scm (cpan-home): Use HTTPS.
* tests/cpan.scm ("cpan->guix-package"): Expect it.
e4bc1727 — Eric Bavier 8 years ago
import: cpan: Add trailing "/" on home-page.

This appeases 'guix lint', which otherwise complains about permanent
redirects.

* guix/import/cpan.scm (cpan-module->sexp): Add trailing "/" on home-page.
* tests/cpan.scm ("cpan->guix-package"): Adjust accordingly.
23055424 — Eric Bavier 8 years ago
import: cpan: Propagate imported dependencies.

This is most often the need for perl module dependencies.

* guix/import/cpan.scm (cpan-module->sexp): 'inputs -> 'propagated-inputs.
* tests/cpan.scm ("cpan->guix-package"): Adjust accordingly.
61f28fe7 — Ludovic Courtès 8 years ago
lint: 'home-page' checker reports permanent redirects.

* guix/scripts/lint.scm (probe-uri): Add special case for HTTP 301.
(validate-uri): Likewise.
* tests/lint.scm ("home-page: 301, invalid")
("home-page: 301 -> 200", "home-page: 301 -> 404")
("source: 301 -> 200", "source: 301 -> 404"): New tests.
6ea10db9 — Ludovic Courtès 8 years ago
tests: Support multiple HTTP server instances.

* guix/tests/http.scm (%http-server-socket): Turn into...
(open-http-server-socket): ... this procedure.
(http-server-can-listen?): New procedure.
(http-write, %http-server-lock, %http-server-ready)
(http-open, stub-http-server): Move to 'call-with-http-server' body.
(call-with-http-server): Add #:headers parameter.
(with-http-server): Add an additional pattern with headers.
* tests/derivations.scm: Use (http-server-can-listen?) instead
of (force %http-server-socket).
* tests/lint.scm: Likewise.
85a2b589 — Ludovic Courtès 8 years ago
zlib: Fix memory leak due to revealed ports not being GC'd.

Fixes <https://bugs.gnu.org/28784>.

This mostly reverts 81a0f1cdf12e7bcc34c1203f034a323fa8f52cf5, which
introduced a regression: revealed ports are *never* GC'd (contrary to
what Guile's manual suggests).

In addition to the revert, 'close-procedure' now explicitly swallows
EBADF errors when 'close-port' is called.

* guix/zlib.scm (close-procedure): New procedure.
(make-gzip-input-port)[gzfile]: Use 'fileno' instead of 'port->fdes'.
Use 'close-procedure' instead of 'gzclose'.
(make-gzip-output-port): Likewise.
* tests/zlib.scm ("compression/decompression pipe"): Use 'port-closed?'
to determine whether PARENT has been closed.
a6e22d84 — Ludovic Courtès 8 years ago
ui: Improve reporting of missing closing parentheses.

Suggested by Ricardo Wurmus.
Works around <https://bugs.gnu.org/28295>.

* guix/ui.scm (report-load-error): Add case for 'read-error'.
* tests/guix-system.sh: Test missing-closing-paren errors.
ad3a937d — Marius Bakke 8 years ago
Merge branch 'master' into staging
8b920d70 — Ludovic Courtès 8 years ago
import: Use a 'file://' URL in 'alist->package' test.

* tests/import-utils.scm ("alist->package with simple source"): Use a
'file://' URL.
0b123242 — Ludovic Courtès 8 years ago
uuid: Fix typo in 'uuid=?' test.

* tests/uuid.scm ("uuid=?"): Change to 'test-assert'.
6a317919 — Marius Bakke 8 years ago
Merge branch 'master' into staging
Next