about summary refs log tree commit diff
path: root/nixos/tests/kexec.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-06-16nixosTests.kexec: do not use module argument `config`Raito Bezarius1-1/+1
It is deprecated now.
2023-06-16nixosTests.kexec: reconnect properly after 2nd kexecRaito Bezarius1-1/+6
By some miracle, before, it was possible to reconnect to the `node1` without doing any relevant dance. But now we are direct booting (¿), it seems like we need to do the right things. This introduces a `check_output` flag for `execute` because we do not want to steal the messages from the backdoor service as we might execute the kexec too fast compared to when we will reconnect. Therefore, we will let the message in the pipe if needed.
2023-06-16nixosTests.kexec: do not use bootloaderRaito Bezarius1-4/+0
There's no reason to use a bootloader when testing kexec, this is a feature that reboots *directly* in the kernel, if anything, we should just direct boot the kernel and reboots in the kernel. A bootloader test really makes sense to test "default" systemctl kexec behavior which is already broken because systemctl kexec will read the ESP to determine what to kexec by default.
2022-06-09nixos/…/kexec-boot.nix: move into netboot.nix, rename to kexecTreeFlorian Klink1-4/+3
`nixos/modules/installer/kexec/kexec-boot.nix` doesn't contain any custom NixOS config, other than importing `netboot-minimal.nix` (which imports `netboot-base.nix`, which imports `netboot.nix`. `netboot.nix` really is just describing a self-contained system config, running entirely off kernel and initrd, so we might as well move the kexec script generation there as well. `netboot.nix` already contains some `system.build` attributes. Provide a `system.build.kexecTree` attribute (and `kexecScript` for composability).
2022-04-16nixosTests.kexec: better test if we are in a new systemlassulus1-3/+7
2022-04-14nixosTests.kexec: fix tests with kexecBoot formatFlorian Klink1-6/+8
2022-04-13nixosTests.kexec: extend with kexecBoot attributeFlorian Klink1-14/+36
Add a node2, which imports the kexec-boot.nix profile. Ensure node2 successfully boots up, then invoke the kexec-boot script from it on node1.
2022-03-28treewide: machine -> nodes.machineRobert Hensing1-1/+1
2021-11-05Merge branch 'staging-next' into stagingVladimír Čunát1-1/+1
2021-11-05nixosTests: Redirect stdout to stderr when detachingRobert Hensing1-1/+1
Avoids blocking on stdout.
2021-11-02Merge remote-tracking branch 'origin/staging-next' into stagingMartin Weinelt1-1/+1
2021-10-28nixos/test-runner: Fix execute() flakinessJanne Heß1-1/+1
Instead of using the magic string, we now just base64-encode everything and check for a newline.
2021-10-27nixos/kexec: fix testMaximilian Bosch1-7/+4
2019-12-27nixosTests.kexec: port to python.Niklas Hambüchen1-6/+12
The test did not succeed for me before this commit (the Perl test hung forever), and this translation exhibits the same problem.
2019-02-22Remove myself as maintainer from packagesFlorian Friesdorf1-1/+1
I'm currently not maintaining any packages.
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth1-1/+1
2015-07-12all tests: added meta.maintainers sectionJoachim Schiele1-3/+5
2014-06-28name nixos tests, close #3078Florian Friesdorf1-0/+1
2014-04-14Make it easier to run the testsEelco Dolstra1-3/+1
You can now run a test in the nixos/tests directory directly using nix-build, e.g. $ nix-build '<nixos/tests/login.nix>' -A test This gets rid of having to add the test to nixos/tests/default.nix. (Of course, you still need to add it to nixos/release.nix if you want Hydra to run the test.)
2013-10-10Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra1-0/+18