about summary refs log tree commit diff
path: root/nixos/tests
Commit message (Collapse)AuthorAge
* gnome3 test: increase timeoutMathnerd3142015-10-05
| | | | | The gnome3 test has been failing recently ([1](http://hydra.nixos.org/build/26608126/nixlog/1/raw) [2](http://hydra.nixos.org/build/26605926/nixlog/1/raw)); this is due to exit code 124 which is [the command timing out](https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html). This increases the timeout to 900, to align with the similar timeout in https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/test-driver/Machine.pm#L222
* nixos/docker: default storageDriver to "devicemapper"Bjørn Forsman2015-10-04
| | | | | | | | | | | | | | | | | | | | | Commit 9bfe92ecee ("docker: Minor improvements, fix failing test") added the services.docker.storageDriver option, made it mandatory but didn't give it a default value. This results in an ugly traceback when users enable docker, if they don't pay enough attention to also set the storageDriver option. (An attempt was made to add an assertion, but it didn't work, possibly because of how "mkMerge" works.) The arguments against a default value were that the optimal value depends on the filesystem on the host. This is, AFAICT, only in part true. (It seems some backends are filesystem agnostic.) Also, docker itself uses a default storage driver, "devicemapper", when no --storage-driver=x options are given. Hence, we use the same value as default. Add a FIXME comment that 'devicemapper' breaks NixOS VM tests (for yet unknown reasons), so we still run those with the 'overlay' driver. Closes #10100 and #10217.
* nixos/tests/gnome3: wait for gnome shell to be started, for a better screenshotLuca Bruno2015-09-30
|
* Remove superfluous root resizing testEelco Dolstra2015-09-28
| | | | This is done in the EC2 test now.
* Test whether EC2 root volume resizing worksEelco Dolstra2015-09-28
|
* Fix the EC2 testEelco Dolstra2015-09-28
|
* nixos/tests/virtualbox: Don't parallelize VM boot.aszlig2015-09-25
| | | | | | | | | | | | | | | | I'm not quite sure why the official Hydra gets a kernel panic in one of two VMs using the exact same kernels: https://hydra.nixos.org/build/26339384 Because the kernel panic happens before stage 1, let's wait for the first VM to boot up and after the bootup is done, start the second one in hope that it won't trigger the panic. Oddly enough, whenever I run the test on my own Hydra and on my local machines, I don't get anything like that. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Add filesystem option to automatically grow to the maximum sizeEelco Dolstra2015-09-24
| | | | | This is primarily for EC2 and other cloud environments, where the disk may be bigger than the original image.
* nixos/tests/virtualbox: Destroy detectvirt VM.aszlig2015-09-24
| | | | | | | I forgot to do this in da0e642. It shouldn't be a big problem but it's more clean to destroy the VM once we're done testing. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/virtualbox: Give VMs more memory.aszlig2015-09-24
| | | | | | | | | | | | | We previously had 1024 MB of memory to fit a VirtualBox VM with 512 MB plus the memory needed of the VirtualBox host VM. That obviously won't work for two VirtualBox VMs, which are used for testing networking between two VirtualBox guests. Now, we have 2048 MB on the qemu guest (the VirtualBox host) and 768 MB for each VirtualBox guest. That should be enough to fit in two VirtualBox guests (I hope). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* tests/virtualbox: Add a subtest for host USB.aszlig2015-09-21
| | | | | | | | | | | Unfortunately, we can't test whether USB is really working, but we can make sure that VirtualBox has access to the USB devices. This is essentially testing #9736, which I haven't yet been able to reproduce though, but it makes sense to test it so it won't happen in future releases. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* tests/virtualbox: Add systemd-detect-virt subtest.aszlig2015-09-17
| | | | | | | | | | | Addresses #9876 in the way that we want to make sure that VirtualBox 5.x is going to be properly detected. Right now the result is "kvm", so the subtest fails as expected with: error: systemd-detect-virt returned "kvm" instead of "oracle" at (eval 14) line 414, <__ANONIO__> line 92. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* tests/virtualbox: Put name in log descriptions.aszlig2015-09-17
| | | | | | | Makes it easier to debug and find out for which machine a certain log socket has been started or stopped. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* tests/virtualbox: Use antiquotes for log sockets.aszlig2015-09-17
| | | | | | | | | | | | | | | | | | | | | We're simply using antiquotation, since it's been a while since these got introduced (in Nix 1.7). So we can use them because it makes the code much more readable. As usual, I made sure that I didn't accidentally change something in functionality: $ nix-instantiate nixos/tests/virtualbox.nix ... /nix/store/cldxyrxqvwpqm02cd3lvknnmj4qmblyn-vm-test-run-virtualbox.drv $ git stash pop ... $ nix-instantiate nixos/tests/virtualbox.nix ... /nix/store/cldxyrxqvwpqm02cd3lvknnmj4qmblyn-vm-test-run-virtualbox.drv $ Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* tests/virtualbox: Fix long line in guestAdditions.aszlig2015-09-17
| | | | | | | | | | | | | | | | | | | | This is essentially not only "wrapping" the line but refactoring into a shorter name which is used in two places. And yes, I know I'm very pedantic if it comes to whitespaces and line lengths, but I made sure this doesn't change any functionality: $ nix-instantiate nixos/tests/virtualbox.nix ... /nix/store/cldxyrxqvwpqm02cd3lvknnmj4qmblyn-vm-test-run-virtualbox.drv $ git stash pop ... $ nix-instantiate nixos/tests/virtualbox.nix ... /nix/store/cldxyrxqvwpqm02cd3lvknnmj4qmblyn-vm-test-run-virtualbox.drv $ Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* tests/virtualbox: Allow to call it with debug attr.aszlig2015-09-17
| | | | | | | | | Instead of manually setting debug to true or false, this should make it possible to now run the test like this: nix-build nixos/tests/virtualbox.nix --arg debug true Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* 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>