summary refs log tree commit diff
path: root/nixos/tests/boot-stage1.nix
Commit message (Collapse)AuthorAge
* nixosTests.boot-stage1: fix kernel build with 5.15Jonathan Ringer2022-01-22
|
* treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl2021-01-10
| | | | | The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
* nixos/boot-stage1: port test to pythonMarijan2019-11-06
|
* nixos.tests.boot-stage1: fix missing libelfVladimír Čunát2018-02-22
|
* tests/boot-stage1: Fix build of kcanary moduleaszlig2017-11-14
| | | | | | | | | | | | | | | | | In bfe9c928c18583d3adfb5978a55b48c392649ef5 the default kernel has been updated to version 4.14 and the declarations for allow_signal() and signal_pending() are no longer exposed via kthread.h, so let's actually use the right header files. I've added a condition for kernel 4.10 and upwards to include the linux/sched/signal.h header file, because that got introduced in version 4.10. Even if the declaration would still reside in kthread.h (I haven't checked) for version 4.10 it won't hurt and the compilation will still succeed. Tested against kernel 4.9 and 4.14 and the build now succeeds. Signed-off-by: aszlig <aszlig@nix.build>
* tests/boot-stage1: Use runCommandCC for kcanaryaszlig2016-10-09
| | | | | | | | Since 97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7, runCommand doesn't include a compiler anymore. So let's switch to the new runCommandCC, which resembles the old state. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* runCommand: Use stdenvNoCCEelco Dolstra2016-09-29
| | | | | | This ensures that most "trivial" derivations used to build NixOS configurations no longer depend on GCC. For commands that do invoke gcc, there is runCommandCC.
* nixos.tests.boot-stage1: disable pic for kernel moduleRobin Gloster2016-08-13
|
* nixos/tests/boot-stage1: Add myself to maintainersaszlig2016-05-06
| | | | | | | | | | | | As @edolstra pointed out that the kernel module might be painful to maintain. I strongly disagree because it's only a small module and it's good to have such a canary in the tests no matter how the bootup process looks like, so I'm going the masochistic route and try to maintain it. If it *really* becomes too much maintenance burden, we can still drop or disable kcanary. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests: Add a test for boot stage 1aszlig2016-05-06
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>