summary refs log tree commit diff
path: root/nixos/tests/installer.nix
Commit message (Collapse)AuthorAge
* all tests: added meta.maintainers sectionJoachim Schiele2015-07-12
|
* nixos/tests/installer: Add a testcase for fat32 /bootWilliam A. Kennington III2015-07-08
|
* Installer test: Fix booting from SCSIEelco Dolstra2015-06-17
| | | | This is required by the GRUB 1 test.
* Installer test: Remove apparently useless setting of nix.readOnlyStoreEelco Dolstra2015-06-10
|
* Installer tests: Don't use the ISOEelco Dolstra2015-06-10
| | | | | | | | | We already have separate tests for checking whether the ISO boots correctly, so it's not necessary to do that here. So now tests/installer.nix just tests nixos-install, from a regular NixOS VM that uses the host's Nix store. This makes running the tests more convenient because we don't have to build a new ISO after every change.
* Remove dead codeEelco Dolstra2015-06-03
|
* nixos/installer: Make test install disk larger to support the expressionsWilliam A. Kennington III2015-05-25
|
* nixos/test-driver: Make tesseract OCR optional.aszlig2015-05-22
| | | | | | | | | | | | | | | | | By default this is now enabled, and it has to be explicitely enabled using "enableOCR = true". If it is set to false, any usage of getScreenText or waitForText will fail with an error suggesting to pass enableOCR. This should get rid of the rather large dependency on tesseract which we don't need for most tests. Note, that I'm using system("type -P") here to check whether tesseract is in PATH. I know it's a bashism but we already have other bashisms within the test scripts and we also run it with bash, so IMHO it's not a problem here. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/luksroot: Switch to use waitForText.aszlig2015-05-21
| | | | | | | | Fixes the "blindly hope that 60 seconds is enough" issue from 1f34503, so that we now have a (hopefully) reliable way to wait for the passphrase prompt. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/installer: Add test for LUKS rootfs.aszlig2015-05-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This serves as a regression test for #7859. It's pretty straightforward, except from the fact that nixos-generate- config doesn't detect LUKS devices and the "sleep 60". As for the former, I have tried to add support for LUKS devices for nixos-generate-config, but it's not so easy as it sounds, because we need to create a device tree across all possible mappers and/or LVM up to the "real" device and then decide whether it is relevant to what is currently mounted. So I guess this is something for the nixpart branch (see #2079). And the latter isn't very trivial as well, because the LUKS passphrase prompt is issued on /dev/console, which is the last "console=..." kernel parameter (thus the `mkAfter`). So we can't simply grep the log, because the prompt ends up being on one terminal only (tty0) and using select() on $machine->{socket} doesn't work very well, because the FD is always "ready for read". If we would read the FD, we would conflict with $machine->connect and end up having an inconsistent state. Another idea would be to use multithreading to do $machine->connect while feeding the passphrase prompt in a loop and stop the thread once $machine->connect is done. Turns out that this is not so easy as well, because the threads need to share the $machine object and of course need to do properly locking. In the end I decided to use the "blindly hope that 60 seconds is enough" approach for now and come up with a better solution later. Other VM tests surely use sleep as well, but it's $machine->sleep, which is bound to the clock of the VM, so if the build machine is on high load, a $machine->sleep gets properly delayed but the timer outside the VM won't get that delay, so the test is not deterministic. Tested against the following revisions: 5e3fe39: Before the libgcrypt cleanup (a71f78a) that broke cryptsetup. 69a6848: While cryptsetup was broken (obviously the test failed). 15faa43: After cryptsetup has been switched to OpenSSL (fd588f9). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/installer: Allow pre-boot commands.aszlig2015-05-21
| | | | | | | | These commands will be executed directly after the machine is created, so it gives us the chance to for example type in passphrases using the virtual keyboard. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/installer: Allow to pass extra config.aszlig2015-05-21
| | | | | | | | We're going to need it for installer tests where nixos-generate-config isn't yet able to fully detect the filesystems/hardware. for example for device mapper configurations other than LVM. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/swraid: Increase boot partition size.aszlig2015-04-01
| | | | | | | | | | I'm increasing it to 100MB to make sure, any bootloader will fit with all its stages. Of course, right now the reason why GRUB doesn't fit into the partition is because of mdadm 3.3.2 and thus the initrd taking all the space, but in order to avoid confusion on why the *boot* loader fails in the VM tests, I've increased the size. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/installer: Add all bootloaders to the storeWilliam A. Kennington III2015-02-13
|
* nixos/tests: Fix installer test by providing a missing dependencyWilliam A. Kennington III2015-02-12
|
* ParanoiaEelco Dolstra2015-01-15
|
* Use https://cache.nixos.orgEelco Dolstra2014-12-09
|
* installer tests: don't rely on swap.target until systemd bug is fixedDomen Kožar2014-12-07
|
* fix installer testsDomen Kožar2014-12-05
|
* nixos/installer: Fix swap device overrideWilliam A. Kennington III2014-12-04
|
* nixos/installer: Override swap devices so tests don't failWilliam A. Kennington III2014-12-03
| | | | | | | | This patch should be reverted if either: - systemd fixes the multi-swapon issue. https://bugs.freedesktop.org/show_bug.cgi?id=86930 - If we disable the autogeneration of swap and vfat units within systemd.
* eval fixDomen Kožar2014-10-07
|
* Ditch efi installer testsShea Levy2014-10-07
| | | | They've been broken forever due to weirdness in qemu tests, and they don't add much over installer tests
* Installer test: Use the minimal ISOEelco Dolstra2014-09-25
| | | | So we don't depend on KDE etc. (which we don't even test here).
* nixos/installer-test: nixos-option syntax correctionWilliam A. Kennington III2014-09-05
|
* nixos/installer-test: Add writable store testWilliam A. Kennington III2014-09-05
|
* nixos/installer-test: Use nested subvolumes for root to test detectionWilliam A. Kennington III2014-09-02
|
* nixos/tests-installer: Add a test for btrfs default volumes and bind mountsWilliam A. Kennington III2014-09-02
|
* Revert "Revert "Merge pull request #2449 from wkennington/master.grub""William A. Kennington III2014-09-02
| | | | | | | This reverts commit 94205f5f21c4d9942bb4205c06229438051b6853. Conflicts: nixos/modules/system/boot/loader/grub/install-grub.pl
* Revert "Merge pull request #2449 from wkennington/master.grub"Michael Raskin2014-08-31
| | | | | | | | | | | | | This reverts commit 469f22d717e53c48d13a66ca862942e8098accc5, reversing changes made to 0078bc5d8f87512104902eab00c8a44bef286067. Conflicts: nixos/modules/installer/tools/nixos-generate-config.pl nixos/modules/system/boot/loader/grub/install-grub.pl nixos/release.nix nixos/tests/installer.nix I tried to keep apparently-safe code in conflicts.
* Fix evaluation of nixos testedLuca Bruno2014-08-29
|
* tests/installer: Provided test should add symlinks to /dev/disk if udev doesn'tWilliam A. Kennington III2014-08-28
|
* nixos/grub: Simplify detection of labels / uuids for provided device namesWilliam A. Kennington III2014-08-28
|
* tests/installer: Fix provided test uuid and label mountsWilliam A. Kennington III2014-08-28
|
* tests/installer: Swapspace should be largerWilliam A. Kennington III2014-08-28
|
* tests/installer: Remove unneeded testsWilliam A. Kennington III2014-08-28
|
* tests/installer: Fix simple testsWilliam A. Kennington III2014-08-28
|
* tests/installer: Add swap to the new testsWilliam A. Kennington III2014-08-28
|
* tests/installer: fix mountWilliam A. Kennington III2014-08-28
|
* installer/btrfs: Typo in subvolWilliam A. Kennington III2014-08-28
|
* tests/installer: Test for more grub configurationsWilliam A. Kennington III2014-08-28
|
* tests/installer: Add btrfs tests for grub and nixos-generate-configWilliam A. Kennington III2014-08-28
|
* Bump the amount of memory for the installer testEelco Dolstra2014-08-25
| | | | | | It randomly OOMs. http://hydra.nixos.org/build/13587153
* Fix evaluationEelco Dolstra2014-07-01
|
* name nixos tests, close #3078Florian Friesdorf2014-06-28
|
* sudo: Always keepVisudo in order to simplify sudo buildWilliam A. Kennington III2014-06-17
|
* nixos.tests.installer: Fix test failures due to network being disabledRicardo M. Correia2014-06-17
|
* nixos.tests.installer: Attempt to fix race conditionRicardo M. Correia2014-05-30
| | | | | | | | Attempt to fix race condition in installer tests, especially the grub1 test. The latter was failing when running "parted /dev/sda ..." because /dev/sda didn't exist yet.
* Installer test: Don't wait for dhcpcd if we don't have a networkEelco Dolstra2014-05-21
|
* Installer test: Get rid of a warningEelco Dolstra2014-05-21
|