about summary refs log tree commit diff
path: root/nixos/tests
Commit message (Collapse)AuthorAge
* tests/virtualbox: Give test machines more memory.aszlig2015-09-16
| | | | | | | | Sometimes there are random kernel panics do to the lack of memory in the qemu guests, but as we're setting the VirtualBox memory size relatively low, 1024 MB should be enough for the qemu guests. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* tests/virtualbox: Start systemwide DBus in guests.aszlig2015-09-16
| | | | | | | | | | | We want to check whether DBus functionality is working, so let's make sure it is running in our mini-initrd. DBus unfortunately requires to have users properly set up and another configuration file other than in ${dbus.daemon}/etc/dbus-1/system.conf, so we do provide that as well. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos tests: add gdm testLuca Bruno2015-09-15
|
* xdotool: 2.20110530.1 -> 3.20150503.1Gabriel Ebner2015-09-12
|
* logstash service: fix testsJaka Hudoklin2015-09-06
|
* etcd service: fix testsJaka Hudoklin2015-09-06
|
* docker: Minor improvements, fix failing testRagnar Dahlén2015-09-04
| | | | | | - Replace usage of deprecated CLI flag `--daemon` - Introduce `storageDriver` option for module - Fix failing test by using `overlay` storage driver
* Fix NFSv4 testEelco Dolstra2015-09-01
| | | | http://hydra.nixos.org/build/25349071
* Make proxy test more robustEelco Dolstra2015-08-31
| | | | http://hydra.nixos.org/build/25322489
* gnome3 test: revert back to using slimLuca Bruno2015-08-31
| | | | | GDM needs more time to load on hydra, need a better way to find out when the user has logged in.
* Fix tests that use the Valgrind docsEelco Dolstra2015-08-28
|
* gnome3 test: use gdm with autologin instead of slimLuca Bruno2015-08-27
|
* cups: Fix printing testJascha Geerds2015-08-27
|
* GrmblEelco Dolstra2015-08-25
| | | | http://hydra.nixos.org/build/24983009
* chromium: Fix test on i686-linuxEelco Dolstra2015-08-24
| | | | http://hydra.nixos.org/build/24982682
* Give the chromium test more memoryEelco Dolstra2015-08-20
| | | | | | Hopefully fixes random failures like http://hydra.nixos.org/build/24861987/nixlog/446
* nixos/tests/lightdm: Drop "session" screenshot.aszlig2015-08-20
| | | | | | | | | | Using waitForWindow on the IceWM root window doesn't necessarily mean that the panel will be shown. In the lightdm test, we only make sure that the login is working and thus it doesn't matter how the session itself will look or whether IceWM is broken, so we don't need that screenshot. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/lightdm: Fix waiting for the login to succeedTuomas Tynkkynen2015-08-15
| | | | | | | | | | Currently the lightdm test detects a successful login by OCR'ing the screen and searching for the clock widget's text. Since the last IceWM update (commit bdd20ced), either the font or the colors of the clock changed such that the OCR doesn't pick it up anymore. Instead, just look for a matching (root) window title, e.g. "IceWM 1.3.9 (Linux/i686)"
* nixos/vbox: Move all options to virtualisation.*.aszlig2015-08-13
| | | | | | | | | | | | Commit 687caeb renamed services.virtualboxHost to programs.virtualbox, but according to the discussion on the commit, it's probably a better to put it into virtualisation.virtualbox instead. The discussion can be found here: https://github.com/NixOS/nixpkgs/commit/687caeb#commitcomment-12664978 Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/openssh: Fix test by using safe public keysWilliam A. Kennington III2015-08-12
|
* Unify NixOS and Nixpkgs channel structureEelco Dolstra2015-08-05
| | | | | | | | | | | | | | | | | | | | | | This is primarily to ensure that -I nixpkgs=https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz and -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz and -I nixpkgs=https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz behave consistently. It also allows installing packages via "nix-env -iA nixos.<pkg>" rather than "nixos.pkgs.<pkg>". It would be even better to allow "nixpkgs.<pkg>", but that requires a change to nix-channel. Fixes #7659.
* Remove broken/unused testEelco Dolstra2015-08-05
|
* nixos.tests.avahi: unmaintainRicardo M. Correia2015-08-04
|
* nixos/tests/printing: unmaintainVladimír Čunát2015-08-04
| | | | | I won't be a good maintainer of printing tests, as I don't print. I don't know why I was made one in #8163, in the first place.
* Merge branch 'vboxguest-sbin-removal'.aszlig2015-08-04
|\ | | | | | | | | | | | | | | | | | | | | | | | | This removes all references to .../sbin for the guest additions and also installs all binaries to .../bin instead (so no more .../sbin). The main motivation for doing this is commit 98cedb3 (which unfortunately had to be reverted in a9f2e10) and pull request #9063, where the latter is an initial effort to move mount.vboxsf to .../bin instead of .../sbin. The commit I made afterwards is finishing the removal of .../sbin entirely.
| * vbox-guest: Remove all references to sbin/.aszlig2015-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Using $storepath/sbin is deprecated according to commit 98cedb3, so let's avoid putting anything in .../sbin for the guest additions. This is a continuation of the initial commit done by @ctheune at 1fb1360, which unfortunately broke VM tests and only changed the path of the mount.vboxsf helper. With this commit, the VM test is fixed and I've also verified on my machine that it is indeed working again. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | riak2: use sensible default pathsCharles Strahan2015-08-03
|/ | | | | | Make exporting the RIAK_{ETC,LOG,DATA}_DIR variables optional; if they're not in the environment, we use the same default values as NixOS.
* cups: Fix test by using different groff outputJascha Geerds2015-07-27
|
* riak: new nixos serviceCharles Strahan2015-07-21
|
* all tests: added meta.maintainers sectionJoachim Schiele2015-07-12
|
* tests/boot: Remove unused store contentsWilliam A. Kennington III2015-07-08
|
* nixos/tests/installer: Add a testcase for fat32 /bootWilliam A. Kennington III2015-07-08
|
* nixos docker: fix service and testLuca Bruno2015-07-05
|
* nixos/tests/chromium: Improve sandbox checking.aszlig2015-07-04
| | | | | | | | We no longer need have "SUID sandbox" enabled in the chrome://sandbox status page and we now also check for "You are adequately sandboxed." to be absolutely sure that we're running with proper sandboxing. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Installer test: Fix booting from SCSIEelco Dolstra2015-06-17
| | | | This is required by the GRUB 1 test.
* Initial attempt at configuring from EC2 userdata (with input from cstrahan). ↵Dan Peebles2015-06-11
| | | | Now with VM tests!
* Simple EC2 user-data VM testDan Peebles2015-06-11
|
* 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: Add small VM test for lightdm.aszlig2015-05-27
| | | | | | | | | | | | | | Serves as a regression test for #7902. It's not yet referenced in release(-combined)?.nix because it will fail until the issue is resolved. Tested successfully against libgcrypt with libcap passed as null however. As for the test itself, I'm not quite sure whether checking for the time displayed by IceWM is a good idea, but we can still fix that if it turns out to be a problem. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/installer: Make test install disk larger to support the expressionsWilliam A. Kennington III2015-05-25
|
* nixos/tests/chromium: Detect popup using OCR.aszlig2015-05-22
| | | | | | | | | | | | | This will make the test a lot more reliable, because we no longer need to press ESC multiple times hoping that it will close the popup. Unfortunately in order to run this test I needed to locally revert the gyp update from a305e6855dd8723683c77635f45ae28411c8f36c. With the old gyp version however the test runs fine and it's able to properly detect the popup. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* 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>
* Drop GNOME 3.12Luca Bruno2015-05-18
|
* cups: Second attempt to fix our printing tests; add more sleep statementsJascha Geerds2015-05-14
|