lorri icon indicating copy to clipboard operation
lorri copied to clipboard

Integration test for stream-events

Open Profpatsch opened this issue 3 years ago • 1 comments

We broke the stream-events in the last update, so we should create some integration tests that call the lorri executable

  • test the different --kind settings
  • check that all kinds of events are really shown.

What will be interesting:

  • how to start a lorri service and stop it as soon as an event arrives
  • how to trigger events in lorri without depending on too many nix internals

Profpatsch avatar Mar 29 '21 08:03 Profpatsch

how to start a lorri service and stop it as soon as an event arrives

You don't want the service to exit after the event, right? You want to get the events actually streamed out first, and then kill the service. Exiting the stream-events process is trickier, but a timeout is called for regardless. In a testing context, a watchdog timer seems appropriate.

how to trigger events in lorri without depending on too many nix internals

cp start-version shell.nix
lorri internal ping shell.nix
cp updated-version shell.nix
lorri internal stream-events --kind 
kill $DAEMON #?

nyarly avatar Jun 02 '22 16:06 nyarly