Re: How to test modified shepherd services

2021-12-26 Thread Maxim Cournoyer
Hello, Simon South writes: > Nathan Dehnel writes: >> I modified a shepherd service to accept a new field from config.scm >> and I was wondering how to test that it works correctly. > > Assuming this is an existing Guix service, it's probably easiest to > update the corresponding system test

Re: How to test modified shepherd services

2021-12-20 Thread Nathan Dehnel
Thanks, that worked. On Mon, Dec 20, 2021 at 4:00 AM Attila Lendvai wrote: > > i have just finished my first Guix service. for now it's a PR for that other > channel, so i'll copy-paste some stuff from it: > > Run with something like this: > > $(guix system --no-graphic vm path/to/swarm.scm) -m

Re: How to test modified shepherd services

2021-12-20 Thread Attila Lendvai
i have just finished my first Guix service. for now it's a PR for that other channel, so i'll copy-paste some stuff from it: Run with something like this: $(guix system --no-graphic vm path/to/swarm.scm) -m 2048 $(./pre-inst-env guix system --no-graphic vm /path/to/swarm.scm) -m 2048 this

Re: How to test modified shepherd services

2021-12-20 Thread Simon South
Nathan Dehnel writes: > I modified a shepherd service to accept a new field from config.scm > and I was wondering how to test that it works correctly. Assuming this is an existing Guix service, it's probably easiest to update the corresponding system test suite under gnu/tests (if necessary) to

Re: How to test modified shepherd services

2021-12-19 Thread raingloom
On Sun, 19 Dec 2021 16:47:07 -0600 Nathan Dehnel wrote: > I modified a shepherd service to accept a new field from config.scm > and I was wondering how to test that it works correctly. Do I need to > make a VM from my modified guix repo with pre-inst-env? > That's probably the best way, it's

How to test modified shepherd services

2021-12-19 Thread Nathan Dehnel
I modified a shepherd service to accept a new field from config.scm and I was wondering how to test that it works correctly. Do I need to make a VM from my modified guix repo with pre-inst-env?