services: openntpd: Add test for issue #3731.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Sat, 7 Sep 2019 00:24:43 +0000 (09:24 +0900)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Sun, 8 Sep 2019 14:15:32 +0000 (23:15 +0900)
commit2625abc6aa5df66a6503e906b7592691452954f5
treeff8e118d5d3c5615e261a82d3202f4b6cbc876aa
parentafd39a76e26a8ad6d77e65b7316b912fd8dbb623
services: openntpd: Add test for issue #3731.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37318.

* gnu/services/networking.scm (openntpd-configuration->string): New procedure,
extracted from top of the `openntpd-shepherd-service' to make it testable.
(openntpd-shepherd-service): Adapt following the move of the code to the above
procedure.
* tests/networking.scm: Add a test for the `openntpd-configuration->string'
procedure.
gnu/services/networking.scm
tests/networking.scm