<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/tests/import-utils.scm, branch merge-deploy</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://git.jakob.space/guix.git/atom?h=merge-deploy</id>
<link rel='self' href='https://git.jakob.space/guix.git/atom?h=merge-deploy'/>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/'/>
<updated>2019-07-24T22:16:41Z</updated>
<entry>
<title>maint: Switch to Guile-JSON 3.x.</title>
<updated>2019-07-24T22:16:41Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-07-21T21:05:54Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=81c3dc32244a17241d74eea9fa265edfcb326f6d'/>
<id>urn:sha1:81c3dc32244a17241d74eea9fa265edfcb326f6d</id>
<content type='text'>
Guile-JSON 3.x is incompatible with Guile-JSON 1.x, which we relied on
until now: it maps JSON dictionaries to alists (instead of hash tables),
and JSON arrays to vectors (instead of lists).  This commit is about
adjusting all the existing code to this new mapping.

* m4/guix.m4 (GUIX_CHECK_GUILE_JSON): New macro.
* configure.ac: Use it.
* doc/guix.texi (Requirements): Mention the Guile-JSON version.
* guix/git-download.scm (git-fetch)[guile-json]: Use GUILE-JSON-3.
* guix/import/cpan.scm (string-&gt;license): Expect vectors instead of
lists.
(module-&gt;dist-name): Use 'json-fetch' instead of 'json-fetch-alist'.
(cpan-fetch): Likewise.
* guix/import/crate.scm (crate-fetch): Likewise, and call 'vector-&gt;list'
for DEPS.
* guix/import/gem.scm (rubygems-fetch): Likewise.
* guix/import/json.scm (json-fetch-alist): Remove.
* guix/import/pypi.scm (pypi-fetch): Use 'json-fetch' instead of
'json-fetch-alist'.
(latest-source-release, latest-wheel-release): Call 'vector-&gt;list' on
RELEASES.
* guix/import/stackage.scm (stackage-lts-info-fetch): Use 'json-fetch'
instead of 'json-fetch-alist'.
(lts-package-version): Use 'vector-&gt;list'.
* guix/import/utils.scm (hash-table-&gt;alist): Remove.
(alist-&gt;package): Pass 'vector-&gt;list' on the inputs fields, and default
to the empty vector.
* guix/scripts/import/json.scm (guix-import-json): Remove call to
'hash-table-&gt;alist'.
* guix/swh.scm (define-json-reader): Expect pair? or null? instead of
hash-table?.
[extract-field]: Use 'assoc-ref' instead of 'hash-ref'.
(json-&gt;branches): Use 'map' instead of 'hash-map-&gt;list'.
(json-&gt;checksums): Likewise.
(json-&gt;directory-entries, origin-visits): Call 'vector-&gt;list' on the
result of 'json-&gt;scm'.
* tests/import-utils.scm ("alist-&gt;package with dependencies"): New test.
* gnu/installer.scm (build-compiled-file)[builder]: Use GUILE-JSON-3.
* gnu/installer.scm (installer-program)[installer-builder]: Likewise.
* gnu/installer/locale.scm (iso639-&gt;iso639-languages): Use 'assoc-ref'
instead of 'hash-ref', and pass vectors through 'vector-&gt;list'.
(iso3166-&gt;iso3166-territories): Likewise.
* gnu/system/vm.scm (system-docker-image)[build]: Use GUILE-JSON-3.
* guix/docker.scm (manifest, config): Adjust for Guile-JSON 3.
* guix/scripts/pack.scm (docker-image)[build]: Use GUILE-JSON-3.
* guix/import/github.scm (fetch-releases-or-tags): Update docstring.
(latest-released-version): Use 'assoc-ref' instead of 'hash-ref'.  Pass
the result of 'fetch-releases-or-tags' to 'vector-&gt;list'.
* guix/import/launchpad.scm (latest-released-version): Likewise.
</content>
</entry>
<entry>
<title>import: utils: 'alist-&gt;package' allows false license.</title>
<updated>2018-02-16T10:10:12Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-02-16T10:06:31Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=5e2495d09e5ad78f8ebb6bfa6fb4ff09fb305ec4'/>
<id>urn:sha1:5e2495d09e5ad78f8ebb6bfa6fb4ff09fb305ec4</id>
<content type='text'>
Reported by &lt;pkill9@runbox.com&gt;.
Fixes &lt;https://bugs.gnu.org/30470&gt;.

* guix/import/utils.scm (alist-&gt;package): Check whether 'license' is
false and set the 'license' field to #f in this case.
* tests/import-utils.scm ("alist-&gt;package with false license"): New
test.
</content>
</entry>
<entry>
<title>import: Use a 'file://' URL in 'alist-&gt;package' test.</title>
<updated>2017-10-06T12:16:24Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-10-06T12:15:34Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=8b920d707ed07a3251227f77526cf875d86a4417'/>
<id>urn:sha1:8b920d707ed07a3251227f77526cf875d86a4417</id>
<content type='text'>
* tests/import-utils.scm ("alist-&gt;package with simple source"): Use a
'file://' URL.
</content>
</entry>
<entry>
<title>import: Add generic data to package converter.</title>
<updated>2017-09-28T11:10:11Z</updated>
<author>
<name>Ricardo Wurmus</name>
<email>rekado@elephly.net</email>
</author>
<published>2017-08-27T15:38:47Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=5e892bc365a3da0d30a0982783ee2ab82ee090f8'/>
<id>urn:sha1:5e892bc365a3da0d30a0982783ee2ab82ee090f8</id>
<content type='text'>
* guix/import/utils.scm (build-system-modules, lookup-build-system-by-name,
specs-&gt;package-lists, source-spec-&gt;object, alist-&gt;package): New procedures.
* tests/import-utils.scm: Add tests for alist-&gt;package.
</content>
</entry>
<entry>
<title>import: utils: Refactor license-&gt;symbol.</title>
<updated>2016-09-28T11:17:15Z</updated>
<author>
<name>David Craven</name>
<email>david@craven.ch</email>
</author>
<published>2016-09-22T09:35:13Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=11e296ef3092de1e5b659822d4dad4465abad34f'/>
<id>urn:sha1:11e296ef3092de1e5b659822d4dad4465abad34f</id>
<content type='text'>
* guix/import/utils.scm (license-&gt;symbol): Work for all licenses.
* tests/import-utils.scm (license-&gt;symbol): Add test.
</content>
</entry>
<entry>
<title>build: Add a Guile custom test driver using SRFI-64.</title>
<updated>2016-04-03T12:19:09Z</updated>
<author>
<name>Mathieu Lirzin</name>
<email>mthl@gnu.org</email>
</author>
<published>2015-10-26T22:47:24Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=a9edb211e733b8b34e67ec3b4450567e9376986f'/>
<id>urn:sha1:a9edb211e733b8b34e67ec3b4450567e9376986f</id>
<content type='text'>
Before that '.log' files for scheme tests were fragmented and not
included in test-suite.log.  This unifies the semantics of SRFI-64 API
with Automake test suite.

* build-aux/test-driver.scm: New file.
* Makefile.am (SCM_LOG_DRIVER, AM_SCM_LOG_DRIVER_FLAGS): New variables.
(SCM_LOG_COMPILER, AM_SCM_LOG_FLAGS): Delete variables.
(AM_TESTS_ENVIRONMENT): Set GUILE_AUTO_COMPILE to 0.
* test-env.in: Silence guix-daemon.
* doc/guix.texi (Running the Test Suite): Describe how to display the
detailed results.  Bug reports require only 'test-suite.log' file.
* tests/base32.scm, tests/build-utils.scm, tests/builders.scm,
tests/challenge.scm, tests/cpan.scm, tests/cpio.scm, tests/cran.scm,
tests/cve.scm, tests/derivations.scm, tests/elpa.scm,
tests/file-systems.scm, tests/gem.scm, tests/gexp.scm,
tests/gnu-maintenance.scm, tests/grafts.scm, tests/graph.scm,
tests/gremlin.scm, tests/hackage.scm, tests/hash.scm,
tests/import-utils.scm, tests/lint.scm, tests/monads.scm, tests/nar.scm,
tests/packages.scm, tests/pk-crypto.scm, tests/pki.scm,
tests/profiles.scm, tests/publish.scm, tests/pypi.scm,
tests/records.scm, tests/scripts-build.scm, tests/scripts.scm,
tests/services.scm, tests/sets.scm, tests/size.scm, tests/snix.scm,
tests/store.scm, tests/substitute.scm, tests/syscalls.scm,
tests/system.scm, tests/ui.scm, tests/union.scm, tests/upstream.scm,
tests/utils.scm: Don't exit at the end of test groups.
* tests/containers.scm: Likewise.  Use 'test-skip' instead of exiting
with error code 77.
</content>
</entry>
<entry>
<title>tests: Move beatify-description tests to import-tests.</title>
<updated>2016-01-20T12:06:25Z</updated>
<author>
<name>Ben Woodcroft</name>
<email>donttrustben@gmail.com</email>
</author>
<published>2016-01-17T00:20:59Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=a132f7d68f4c61133c0c97d8e5125c48f7205ac9'/>
<id>urn:sha1:a132f7d68f4c61133c0c97d8e5125c48f7205ac9</id>
<content type='text'>
Fixes &lt;http://bugs.gnu.org/22391&gt;.

* tests/cran.scm (beautify-description: use double spacing,
beautify-description: transform fragment into sentence). Move
from here ...
* tests/import-utils.scm: ... to here. New file.
* Makefile.am (SCM_TESTS): Add import-utils.
</content>
</entry>
</feed>
