<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/tests/records.scm, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://www.git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://www.git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/'/>
<updated>2019-03-30T10:08:39Z</updated>
<entry>
<title>records: Support custom 'this' identifiers.</title>
<updated>2019-03-30T10:08:39Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-03-29T21:40:55Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=d2be7e3c4ba8d6d0dde9b4c0bff623ab85637424'/>
<id>urn:sha1:d2be7e3c4ba8d6d0dde9b4c0bff623ab85637424</id>
<content type='text'>
This lets record users choose an identifier other than 'this-record'.

* guix/records.scm (make-syntactic-constructor): Add #:this-identifier.
[wrap-field-value]: Honor it.
(define-record-type*): Add form with extra THIS-IDENTIFIER and honor
it.
* tests/records.scm ("define-record-type* &amp; thunked &amp; inherit &amp; custom this"):
New test.
</content>
</entry>
<entry>
<title>records: Allow thunked fields to refer to 'this-record'.</title>
<updated>2019-03-25T22:37:06Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-03-22T13:02:00Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=abd4d6b33dba4de228e90ad15a8efb456fcf7b6e'/>
<id>urn:sha1:abd4d6b33dba4de228e90ad15a8efb456fcf7b6e</id>
<content type='text'>
* guix/records.scm (this-record): New syntax parameter.
(make-syntactic-constructor)[wrap-field-value]: When F is thunked,
return a one-argument lambda instead of a thunk, and parameterize
THIS-RECORD.
(define-record-type*)[thunked-field-accessor-definition]: Pass X
to (real-get X).
* tests/records.scm ("define-record-type* &amp; thunked &amp; this-record")
("define-record-type* &amp; thunked &amp; default &amp; this-record")
("define-record-type* &amp; thunked &amp; inherit &amp; this-record"): New tests.
</content>
</entry>
<entry>
<title>records: Detect duplicate field initializers.</title>
<updated>2019-01-22T22:04:05Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-04-19T16:33:25Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=c2dcff41c2e47f5f978f467864d5ed7829939884'/>
<id>urn:sha1:c2dcff41c2e47f5f978f467864d5ed7829939884</id>
<content type='text'>
* guix/records.scm (report-duplicate-field-specifier): New procedure.
(make-syntactic-constructor): Call it.
* tests/records.scm ("define-record-type* &amp; duplicate initializers"):
New test.

Co-authored-by: Mark H Weaver &lt;mhw@netris.org&gt;
</content>
</entry>
<entry>
<title>records: Adjust to test changes in 'record-abi-mismatch-error'.</title>
<updated>2018-08-31T15:26:56Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-08-31T15:23:38Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=8e1395be5c7d1a6e895fb5b1e70bebc0fef161a6'/>
<id>urn:sha1:8e1395be5c7d1a6e895fb5b1e70bebc0fef161a6</id>
<content type='text'>
Fixes a test failure introduced in
de5cbd4a38a33e0412f1c481fe8e01a871dc13e5.

* guix/records.scm (abi-check): Refer to TYPE in an unquoted context so
we get at the RTD.
* tests/records.scm ("ABI checks"): Adjust 'catch' handler to changes
in the 'record-abi-mismatch-error' arguments.
</content>
</entry>
<entry>
<title>records: Insert record type ABI checks in constructors.</title>
<updated>2018-05-23T08:21:02Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-05-16T08:05:24Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=7874bbbb9f09cc14ea3e179fd0fa10da5f90cfc7'/>
<id>urn:sha1:7874bbbb9f09cc14ea3e179fd0fa10da5f90cfc7</id>
<content type='text'>
* guix/records.scm (print-record-abi-mismatch-error): New procedure.
&lt;top level&gt;: Add 'set-exception-printer!' call.
(current-abi-identifier, abi-check): New procedures.
(make-syntactic-constructor): Add #:abi-cookie parameter.  Insert calls
to 'abi-check'.
(define-record-type*)[compute-abi-cookie]: New procedure.
Use it and emit a definition of the 'current-abi-identifier' for TYPE.
* tests/records.scm ("ABI checks"): New test.
</content>
</entry>
<entry>
<title>records: Improve reporting of invalid field specifiers.</title>
<updated>2016-07-14T17:07:07Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2016-07-14T16:58:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=babc2c80a7e1f1b5e72fd1685ef6604b93157a8e'/>
<id>urn:sha1:babc2c80a7e1f1b5e72fd1685ef6604b93157a8e</id>
<content type='text'>
Fixes &lt;http://bugs.gnu.org/23969&gt;.
Reported by Vincent Legoll &lt;vincent.legoll@gmail.com&gt;.

* guix/records.scm (report-invalid-field-specifier): New procedure.
* tests/records.scm ("define-record-type* &amp; wrong field specifier"): New
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://www.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: Avoid sequence of zero expressions.</title>
<updated>2015-06-11T21:33:32Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2015-06-11T21:28:31Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=6c356414537fa8394b140b6593ce31df93e4a69d'/>
<id>urn:sha1:6c356414537fa8394b140b6593ce31df93e4a69d</id>
<content type='text'>
* tests/records.scm ("define-record-type* with let* behavior"): Add missing
  body for clause.
</content>
</entry>
<entry>
<title>records: Add support for 'innate' fields.</title>
<updated>2015-06-11T21:33:32Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2015-06-11T20:57:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=8a16d064fa265c449d136ff6c3d3267e314cde8d'/>
<id>urn:sha1:8a16d064fa265c449d136ff6c3d3267e314cde8d</id>
<content type='text'>
* guix/records.scm (make-syntactic-constructor): Add #:innate parameter.
  [record-inheritance]: Honor it.
  [innate-field?]: New procedure.
  (define-record-type*)[innate-field?]: New procedure.
  Pass #:innate to 'make-syntactic-constructor'.
* tests/records.scm ("define-record-type* &amp; inherit &amp; innate",
  "define-record-type* &amp; thunked &amp; innate"): New tests.
</content>
</entry>
<entry>
<title>records: Add support for delayed fields.</title>
<updated>2015-01-19T22:30:42Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2015-01-19T22:21:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=310b32a2a6136a99d3c48542bf68d0d8b550f42f'/>
<id>urn:sha1:310b32a2a6136a99d3c48542bf68d0d8b550f42f</id>
<content type='text'>
* guix/records.scm (make-syntactic-constructor): Add #:delayed
  parameter.
  [delayed-field?]: New procedure.
  [wrap-field-value]: Use it.
  (define-record-type*)[delayed-field?, wrapped-field?]: New procedures.
  [thunked-field-accessor-name]: Rename to...
  [wrapped-field-accessor-name]: ... this.
  [field-spec-&gt;srfi-9]: Change 'thunked' to 'wrapped'.
  [delayed-field-accessor-definition]: New procedure.
  Compute delayed-field accessors and emit them.  Pass #:delayed to
  'make-syntactic-constructor'.
* tests/records.scm ("define-record-type* &amp; delayed",
  "define-record-type* &amp; delayed &amp; default",
  "define-record-type* &amp; delayed &amp; inherited"): New tests.
</content>
</entry>
</feed>
