nixpkgs-suyu/nixos
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
..
doc/manual Merge #15105: nixos manual: rephrase indented strings 2016-05-02 11:58:45 +02:00
lib treewide: Use correct output in ${config.nix.package}/bin 2016-04-25 16:44:37 +02:00
maintainers Update AMI creation script 2016-04-05 11:25:12 +02:00
modules nixos/stage-1: Don't kill kernel threads 2016-05-06 16:24:42 +02:00
tests nixos/tests: Add a test for boot stage 1 2016-05-06 16:56:43 +02:00
COPYING
default.nix nix: Add a "dev" output 2016-04-18 21:13:18 +02:00
README
release-combined.nix tested job: fix evaluation of chromium tests 2016-05-06 10:56:17 +02:00
release-small.nix containers: test imperative and ipv4 in small-release (#15015) 2016-04-26 22:38:47 +02:00
release.nix nixos/tests: Add a test for boot stage 1 2016-05-06 16:56:43 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.