~ruther/guix-local

ref: 0a1a93b4aabb8a2c0ee50f70a3cef7d4e7c626d8 guix-local/tests d---------
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
e5788ebb — Ludovic Courtès 8 years ago
publish: Cache uncompressed nars as well.

Fixes <https://bugs.gnu.org/28664>.
Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>.

* guix/scripts/publish.scm (bake-narinfo+nar): When COMPRESSION is
'none, write NAR instead of doing nothing.
(make-request-handler): Use 'render-nar/cached' for /nar URLs with no
compression.
* tests/publish.scm ("with cache", "with cache, uncompressed"): Adjust
expected result accordingly.
aed1f1b0 — Ludovic Courtès 8 years ago
uuid: Add 'uuid=?' and use it.

* gnu/system/uuid.scm (uuid=?): New procedure.
* tests/uuid.scm ("uuid=?"): New test.
* gnu/build/file-systems.scm (partition-uuid-predicate)
(luks-partition-uuid-predicate): Use it instead of 'bytevector=?'.
7716ccd5 — Marius Bakke 8 years ago
Merge branch 'master' into staging
5e892bc3 — Ricardo Wurmus 8 years ago
import: Add generic data to package converter.

* guix/import/utils.scm (build-system-modules, lookup-build-system-by-name,
specs->package-lists, source-spec->object, alist->package): New procedures.
* tests/import-utils.scm: Add tests for alist->package.
68a91a18 — Ricardo Wurmus 8 years ago
import: Add package->code.

* guix/import/print.scm: New file.
* tests/print.scm: New file.
* Makefile.am (SCM_TESTS): Add new test file.
(MODULES): Add print.scm.
ffcff272 — Marius Bakke 8 years ago
Merge branch 'master' into staging
8a7d81a5 — Ludovic Courtès 8 years ago
uuid: Add a parser for FAT32 UUIDs.

* gnu/system/uuid.scm (%fat32-uuid-rx): New variable.
(string->fat32-uuid): New procedure.
(%uuid-parsers): Add it.
* tests/uuid.scm ("uuid, FAT32, format preserved"): New test.
58366883 — Marius Bakke 8 years ago
Merge branch 'master' into staging
0649321d — Ludovic Courtès 8 years ago
guix system: Add 'search' command.

* guix/scripts/system.scm (resolve-subcommand): New procedure.
(process-command): Handle 'search'.
(guix-system): Likewise.
(show-help): Augment.
* guix/scripts/system/search.scm: New file.
* po/guix/POTFILES.in: Add it.
* Makefile.am (MODULES): Add it.
* guix/ui.scm (%text-width): Export.
* doc/guix.texi (Invoking guix system): Document it.
(Service Types and Services): Mention 'guix system search'.
* tests/guix-system.sh: Test it.
8f3b63b5 — Ludovic Courtès 8 years ago
uuid: Move tests to 'tests/uuid.scm'.

* tests/file-systems.scm ("uuid->string", "string->uuid")
("uuid", "uuid, syntax error"): Move to...
* tests/uuid.scm: ... here.  New file.
("uuid, ISO-9660, format preserved"): New test.
2ed1f4a5 — Ludovic Courtès 8 years ago
uuid: Adjust tests.

This is a followup to 9b336338cdc0e46a3bf7a2913c2f61cd2410c4d6.

* tests/file-systems.scm ("uuid"): Add call to 'uuid-bytevector'.
("uuid, syntax error"): Add 'dce to the expected form.
79e5e00f — Ludovic Courtès 8 years ago
import: cpan: Adjust expected license in tests.

This is a followup to 01ef804d69b2e57dd7b1d3d13e66e3f67e7c548a.

* tests/cpan.scm ("cpan->guix-package"): Expect 'perl-license'.
Next