···11# This test runs influxdb and checks if influxdb is up and running
2233import ./make-test.nix {
44+ name = "influxdb";
55+46 nodes = {
57 one = { config, pkgs, ... }: {
68 services.influxdb.enable = true;
+9-7
nixos/tests/installer.nix
···215215 '';
216216217217218218- makeInstallerTest =
218218+ makeInstallerTest = name:
219219 { createPartitions, testChannel ? false, useEFI ? false, grubVersion ? 2, grubDevice ? "/dev/vda" }:
220220 makeTest {
221221 inherit iso;
222222+ name = "installer-" + name;
222223 nodes = if testChannel then { inherit webserver; } else { };
223224 testScript = testScriptFun {
224225 inherit createPartitions testChannel useEFI grubVersion grubDevice;
···233234234235 # The (almost) simplest partitioning scheme: a swap partition and
235236 # one big filesystem partition.
236236- simple = makeInstallerTest
237237+ simple = makeInstallerTest "simple"
237238 { createPartitions =
238239 ''
239240 $machine->succeed(
···251252 };
252253253254 # Same as the previous, but now with a separate /boot partition.
254254- separateBoot = makeInstallerTest
255255+ separateBoot = makeInstallerTest "separateBoot"
255256 { createPartitions =
256257 ''
257258 $machine->succeed(
···273274274275 # Create two physical LVM partitions combined into one volume group
275276 # that contains the logical swap and root partitions.
276276- lvm = makeInstallerTest
277277+ lvm = makeInstallerTest "lvm"
277278 { createPartitions =
278279 ''
279280 $machine->succeed(
···295296 '';
296297 };
297298298298- swraid = makeInstallerTest
299299+ swraid = makeInstallerTest "swraid"
299300 { createPartitions =
300301 ''
301302 $machine->succeed(
···328329 };
329330330331 # Test a basic install using GRUB 1.
331331- grub1 = makeInstallerTest
332332+ grub1 = makeInstallerTest "grub1"
332333 { createPartitions =
333334 ''
334335 $machine->succeed(
···348349 };
349350350351 # Test an EFI install.
351351- efi = makeInstallerTest
352352+ efi = makeInstallerTest "efi"
352353 { createPartitions =
353354 ''
354355 $machine->succeed(
···369370 # Rebuild the CD configuration with a little modification.
370371 rebuildCD = makeTest
371372 { inherit iso;
373373+ name = "rebuild-CD";
372374 nodes = { };
373375 testScript =
374376 ''
···22# elasticsearch is started.
3344import ./make-test.nix {
55+ name = "logstash";
5667 nodes = {
78 one =
+1
nixos/tests/misc.nix
···11# Miscellaneous small tests that don't warrant their own VM run.
2233import ./make-test.nix {
44+ name = "misc";
4556 machine =
67 { config, lib, pkgs, ... }:
+2
nixos/tests/mpich.nix
···11# Simple example to showcase distributed tests using NixOS VMs.
2233import ./make-test.nix {
44+ name = "mpich";
55+46 nodes = {
57 master =
68 { config, pkgs, ... }: {
···11# This test runs rabbitmq and checks if rabbitmq is up and running.
2233import ./make-test.nix ({ pkgs, ... }: {
44+ name = "rabbitmq";
4556 nodes = {
67 one = { config, pkgs, ... }: {