guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] tests: Add 'prosody-service-type' test.


From: Ludovic Courtès
Subject: Re: [PATCH 2/2] tests: Add 'prosody-service-type' test.
Date: Fri, 10 Feb 2017 23:24:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello Clément,

Clément Lassieur <address@hidden> skribis:

> Ludovic Courtès <address@hidden> writes:

[...]

>>> +(define (run-xmpp-test name xmpp-service pid-file create-account)
>>> +  "Run a test of an OS running XMPP-SERVICE, which writes its PID to 
>>> PID-FILE."
>>> +  (mlet* %store-monad ((os -> (marionette-operating-system
>>> +                               (os-with-service xmpp-service)
>>> +                               #:imported-modules '((gnu services herd))))
>>
>> I think you can remove ‘os-with-service’ and simply add the Prosody
>> service explicitly in ‘%base-os’ (which could be rename ‘%prosody-os’
>> maybe).
>
> But then, my test wouldn't be generic anymore, would it?  I would like
> it to be Prosody-independent, so that one can add, say, the ejabberd
> service easily.  That's why I call the service 'xmpp-daemon' instead of
> 'prosody'.  WDYT?

I think you’re right.  :-)  I didn’t know you had this in mind, but it’s
a good idea.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]