guix-play/tests/services
Attila Lendvai e11517052b
services: configuration: Support (field1 maybe-number "") format.
As opposed to explicitly using 'disabled as value, or using the
(field1 (maybe-number) "") format.

It's mostly the work of Maxime Devos shared under #54674, with some
modifications by Attila Lendvai.

* gnu/services/configuration.scm (normalize-field-type+def): New function.
(define-configuration-helper) (define-configuration): Support new field
format.
* tests/services/configuration.scm (config-with-maybe-number->string): New
function.
("maybe value serialization of the instance"): New test.
("maybe value serialization of the instance, unspecified"): New test.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-06-15 00:25:21 +02:00
..
configuration.scm services: configuration: Support (field1 maybe-number "") format. 2022-06-15 00:25:21 +02:00
file-sharing.scm services: Add transmission-daemon service. 2021-02-12 15:11:36 +08:00
linux.scm
telephony.scm Reinstate "services: Add a service for Jami." 2021-08-02 17:23:30 -04:00