summaryrefslogtreecommitdiffstats
path: root/nixos/tests/installer.nix
AgeCommit message (Collapse)Author
2020-09-07nixos/tests/installer: increase RAM in the VMVladimír Čunát
1G apparently isn't sufficient anymore, at least in swraid case: https://hydra.nixos.org/build/126561574
2020-09-05nixos/tests/installer swraid: increase partition sizeVladimír Čunát
We apparently didn't fit anymore. I don't think this test is meant to (also) check closure size. Note: as of this commit, the test is blocked by a fontconfig problem, so I tested with that merge temporarily reverted.
2020-09-03cryptsetup, lvm2, systemd: Break cyclic dependency at a different pointAnders Kaseorg
The cyclic dependency of systemd → cryptsetup → lvm2 → udev=systemd needs to be broken somewhere. The previous strategy of building cryptsetup with an lvm2 built without udev (#66856) caused the installer.luksroot test to fail. Instead, build lvm2 with a udev built without cryptsetup. Fixes #96479. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-08-26Merge pull request #95956 from matthewbauer/qemu-cpu-maxMatthew Bauer
runInLinuxVM, test-driver: use -cpu max instead of -cpu host
2020-08-26nixos installer tests: add a missing packageVladimír Čunát
Tested it locally fixes #96361 nix-build nixos/release-combined.nix -A nixos.tests.installer.lvm.x86_64-linux -Q
2020-08-23nixosTests.installer.btrfsSubvolDefault: fix warningajs124
2020-08-21runInLinuxVM, test-driver: use -cpu max instead of -cpu hostMatthew Bauer
This appears to avoid requiring KVM when it’s not available. This is what I originally though -cpu host did. Unfortunately not much documentation available from the QEMU side on this, but this appears to square with help: $ qemu-system-x86 -cpu help ... x86 host KVM processor with all supported host features x86 max Enables all features supported by the accelerator in the current host ... Whether we actually want to support this not clear, since this only happens when your CPU doesn’t have full KVM support. Some Nix builders are lying about kvm support though. Things aren’t too slow without it though. Fixes https://github.com/NixOS/nixpkgs/issues/85394 Alternative to https://github.com/NixOS/nixpkgs/pull/83920
2020-07-25nixos/tests/installer lvm: increase partition sizeVladimír Čunát
We apparently didn't fit anymore. I don't think this test is meant to (also) check closure size.
2020-07-14nixos/tests/installer: lvm: test lvm2-pvscan@ unitsajs124
Also, add some sleep statements in between, which seems to at least feel like it causes > WARNING: Device /dev/vda* not initialized in udev database even after waiting 10000000 microseconds. To occur less frequently. This eventually still succeeds after some amount of waiting, I suspect some racyness in the way lvm's udev-triggered scripts trigger other units.
2020-07-14nixos/test/installer: add postBootCommandsajs124
2020-05-12Merge pull request #79966 from chkno/bcacheJacek Galowicz
nixos/bcache: Installer test for / on bcache
2020-05-11nixos/tests/installer: Fix machine nameChuck
2020-04-22installer test: Fix grub extraConfig syntaxBenjamin Staffin
It looks like `terminal_output.serial` is incorrect, according to the grub documentation: https://www.gnu.org/software/grub/manual/grub/html_node/Serial-terminal.html Related PR: #79406
2020-04-12specialisation: replace nesting with named configurationsGraham Christensen
Co-authored-by: worldofpeace <worldofpeace@protonmail.ch>
2020-03-26nixosTests.installer: Don't wait for the nixos-manual serviceMichael Weiss
The nixos-manual service was removed in #83199 but we missed the check in this test which prevents the "tested" job from succeeding [0][1]. [0]: https://hydra.nixos.org/build/115472896 [1]: https://hydra.nixos.org/build/115472896/nixlog/94/tail
2020-02-12nixos/bcache: Installer test for / on bcacheChuck
2020-02-07nixosTests.installer: Port to pythonJacek Galowicz
2020-01-15runInLinuxVM, test-driver: pass host's cpu type to guest vmvolth
'kvm64' is the most generic CPU, which does not support SSE4.2, AVX and other ISA extentions.
2019-10-16Revert "installer: Disable udisks"Franz Pletz
This reverts commit 571fb74f449aa173e231166515b41feb778524b8. The dependency on gtk2 was removed. Co-authored-by: Florian Klink <flokli@flokli.de>
2019-07-11nixos/tests: add test for showing child configuration in grub menuVenkateswara Rao Mandela
- Create a child configuration named "Work" with an extra config file. - Name the default configuration as "Home" :-) - Once the VM is setup, reboot and verify that it has booted into default configuration. - Reboot into the "Work" configuration via grub. - Verify that we have booted into the "Work" configuration and that the extra config file is present. This test works for the simple grub configuration and simple UEFI Grub configuration. UEFI Systemd is not included in the test.
2019-07-11nixos/tests: installer: restructure simpleUefiGrub test dataVenkateswara Rao Mandela
2019-07-11nixos/tests: installer: restructure simple test dataVenkateswara Rao Mandela
2019-06-08nixos/tests: fix luksroot installer test nameFranz Pletz
Both tests were previously called "luksroot-luks2".
2019-03-02nixos/tests/installer: add cryptsetup tests for LUKS format 2 & default formatAndreas Rammhold
2019-01-26treewide: remove wkennington as maintainerJörg Thalheim
He prefers to contribute to his own nixpkgs fork triton. Since he is still marked as maintainer in many packages this leaves the wrong impression he still maintains those.
2018-11-17nixos/tests/installer.nix: shorten test name to fit length limitSymphorien Gibol
previously one of the tests would fail with boot-after-install: starting vm Path length (109) is longer than maximum supported length (108) and will be truncated at /nix/store/0ingn8cwwnl84i374hcl6nafsm2c5m2p-perl-5.28.0/lib/perl5/5.28.0/x86_64-linux-thread-multi/Socket.pm line 872, <__ANONIO__> line 268. boot-after-install# qemu-system-x86_64: -monitor unix:./monitor: Failed to connect socket ./monitor: No such file or directory error: QEMU died prematurely QEMU died prematurely vde_switch: EOF on stdin, cleaning up and exiting cleaning up builder for '/nix/store/zbpxwwxwy7f6z5z3kg4nf5mjqsywzjvx-vm-test-run-installer-filesystemEncryptedWithKeyfile.drv' failed with exit code 4 Shortening the test name fixes the issue.
2018-11-11tests: refactor to carry the package set as an argumentLéo Gaspard
This way, the package set will be possible to pass without re-importing all the time
2018-09-22nixos/tests/installer: stop udev queue before calling mdadmUli Baum
In the swraid test, temporarily stop udev queue execution while creating mdraid devices to prevent a race with udev, see https://groups.google.com/forum/#!topic/scylladb-dev/u87yHgo3ylU
2018-09-22nixos/tests/installer: use flock for all parted callsUli Baum
to further reduce risk of race with udev, like util-linux recommends for sfdisk: https://github.com/karelzak/util-linux/blob/v2.32/disk-utils/sfdisk.8#L71
2018-09-22nixos/tests/installer: prevent race between parted and udevUli Baum
by combining all parted commands into a single parted call. This eliminates one cause of non-deterministic failure.
2018-09-17nixos/tests/installer: grub1 needs /tmp to exist.Samuel Dionne-Riel
2018-09-01nixos/tests/installer: add missing system.extraDependenciesUli Baum
Since 1b11fdd0df2254a762a16d04e603ba99e42169c0 the test VM depends on some extra packages to build the system to be installed. This broke the installer test as it tried to download/build these packages in a sandbox.
2018-08-29Reviews use of old nixos wallpaper to use one with the new logo.Samuel Dionne-Riel
The wallpaper used is *structurally compatible* with the other one, meaning that the logo is at the same location, and not bigger. It has one drawback: the logo is brighter, which clashes with the grub usage. This is to be fixed with new options in grub.
2018-08-11nixos/tests/luksroot: Fix OCR of passphrase promptaszlig
Since a9d69a74d6edb6bcca29b1189d4bc3b203ecaf25, the passphrase prompt now no longer starts with "Enter passphrase for" but now it's just "Passphrase for", which causes the luksroot installer test to fail. I've tested this on a x86_64-linux machine and the test now succeeds. Signed-off-by: aszlig <aszlig@nix.build> Cc: @oxij, @samueldr Issue: #29441
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth
2018-07-20Merge pull request #43857 from volth/unusedFrederik Rietdijk
[bot] treewide: remove unreferenced code
2018-07-20[bot]: remove unreferenced codevolth
2018-07-18treewide: remove aliases in nixpkgsMatthew Bauer
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases = true;}'’ work in Nixpkgs. Misc... - qtikz: use libsForQt5.callPackage This ensures we get the right poppler. - rewrites: docbook5_xsl -> docbook_xsl_ns docbook_xml_xslt -> docbook_xsl diffpdf: fixup
2018-06-30nixos/tests: users.(extraUsers|extraGroup->users|group)Florian Klink
2018-06-22installer tests: avoid udisks2Vladimír Čunát
This is a temporary hack to fix channel until we resolve #42324.
2018-05-15nixos/tests/installer: Add lndir to extraDepsaszlig
In commit 17dd7bcd89d568596f52356624be82201ea84779 the systemd unit generator now uses lndir instead of "ln -s", so we need to have lndir available in the Nix store for the installer tests to be able to build the units and thus the whole system. This should fix the installer tests, although I have only tested it with the "simple" subtest. Signed-off-by: aszlig <aszlig@nix.build> Cc: @jtojnar, @xeji, @edolstra
2018-03-24nixos/tests/installer: Give eval failure on unsupported boot methodsTuomas Tynkkynen
2018-03-21nixos/tests: Make simpleUefiGrub test work on AArch64Tuomas Tynkkynen
Needs more refactoring for the AArch64 '-enable-kvm' stuff some day...
2018-02-27Don't try hashed mirrors in the installer testEelco Dolstra
2018-02-27nixos/tests/installer.nix: Don't use a writable storeEelco Dolstra
This is no longer needed.
2018-02-07Fix commentsEelco Dolstra
2018-01-30nixos/tests: Drop unnecessary qemu-flags.nix includeTuomas Tynkkynen
None of these files are using anything from there.
2017-11-25nixos.tests.installer.swraid: increase drive sizeVladimír Čunát
The latest staging caused this test not to fit anymore. I'm all for keeping closure sizes under control, but I don't think *this* is a good place.
2017-11-19nixos: run parted with --script option (3rd)Bjørn Forsman
Doh, should have included this in previous commit. Ref. 0ff4bb5f875afe8eb208bbabb3f52dc29539d2bc ("nixos: run parted with --script option").
2017-11-19nixos: run parted with --script option (2nd)Bjørn Forsman
Ref. 0ff4bb5f875afe8eb208bbabb3f52dc29539d2bc ("nixos: run parted with --script option")