aszlig 4f796c28d5
nixos/tests: Add a test for boot stage 1
We already have a small regression test for #15226 within the swraid
installer test. Unfortunately, we only check there whether the md
kthread got signalled but not whether other rampaging processes are
still alive that *should* have been killed.

So in order to do this we provide multiple canary processes which are
checked after the system has booted up:

 * canary1: It's a simple forking daemon which just sleeps until it's
            going to be killed. Of course we expect this process to not
            be alive anymore after boot up.
 * canary2: Similar to canary1, but tries to mimick a kthread to make
            sure that it's going to be properly killed at the end of
            stage 1.
 * canary3: Like canary2, but this time using a @ in front of its
            command name to actually prevent it from being killed.
 * kcanary: This one is a real kthread and it runs until killed, which
            shouldn't be the case.

Tested with and without 67223ee and everything works as expected, at
least on my machine.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-05-06 16:56:43 +02:00
..
2016-04-12 19:13:52 +02:00
2016-02-28 16:18:39 +01:00
2015-10-13 20:18:48 +02:00
2016-03-19 03:18:17 +01:00
2016-03-30 22:22:40 +02:00
2015-09-06 14:44:13 +02:00
2016-01-24 04:06:19 +00:00
2016-01-23 01:20:14 +01:00
2015-09-06 15:20:56 +02:00
2016-04-23 16:17:22 +02:00
2015-08-31 18:36:32 +02:00
2015-12-06 13:35:21 +00:00
2015-12-25 15:55:07 +01:00
2016-04-12 19:13:52 +02:00