Unverified Commit 4c3e6ef5 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Migrate my NixOS tests to runTest (#388795)

parents 6fd99a01 dd7cee4f
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ in {
  avahi = handleTest ./avahi.nix {};
  avahi-with-resolved = handleTest ./avahi.nix { networkd = true; };
  ayatana-indicators = runTest ./ayatana-indicators.nix;
  babeld = handleTest ./babeld.nix {};
  babeld = runTest ./babeld.nix;
  bazarr = handleTest ./bazarr.nix {};
  bcachefs = handleTestOn ["x86_64-linux" "aarch64-linux"] ./bcachefs.nix {};
  beanstalkd = handleTest ./beanstalkd.nix {};
@@ -212,7 +212,7 @@ in {
  boot-stage2 = handleTest ./boot-stage2.nix {};
  borgbackup = handleTest ./borgbackup.nix {};
  borgmatic = handleTest ./borgmatic.nix {};
  botamusique = handleTest ./botamusique.nix {};
  botamusique = runTest ./botamusique.nix;
  bpf = handleTestOn ["x86_64-linux" "aarch64-linux"] ./bpf.nix {};
  bpftune = handleTest ./bpftune.nix {};
  breitbandmessung = handleTest ./breitbandmessung.nix {};
@@ -460,7 +460,7 @@ in {
  gnupg = handleTest ./gnupg.nix {};
  goatcounter = handleTest ./goatcounter.nix {};
  go-camo = handleTest ./go-camo.nix { };
  go-neb = handleTest ./go-neb.nix {};
  go-neb = runTest ./go-neb.nix;
  gobgpd = handleTest ./gobgpd.nix {};
  gocd-agent = handleTest ./gocd-agent.nix {};
  gocd-server = handleTest ./gocd-server.nix {};
@@ -575,7 +575,7 @@ in {
  kavita = handleTest ./kavita.nix {};
  kbd-setfont-decompress = handleTest ./kbd-setfont-decompress.nix {};
  kbd-update-search-paths-patch = handleTest ./kbd-update-search-paths-patch.nix {};
  kea = handleTest ./kea.nix {};
  kea = runTest ./kea.nix;
  keepalived = handleTest ./keepalived.nix {};
  keepassxc = handleTest ./keepassxc.nix {};
  kerberos = handleTest ./kerberos/default.nix {};
@@ -589,7 +589,7 @@ in {
  keymap = handleTest ./keymap.nix {};
  kimai = handleTest ./kimai.nix {};
  kmonad = runTest ./kmonad.nix;
  knot = handleTest ./knot.nix {};
  knot = runTest ./knot.nix;
  komga = handleTest ./komga.nix {};
  krb5 = discoverTests (import ./krb5);
  ksm = handleTest ./ksm.nix {};
@@ -903,7 +903,7 @@ in {
  phylactery = handleTest ./web-apps/phylactery.nix {};
  pict-rs = handleTest ./pict-rs.nix {};
  pingvin-share = handleTest ./pingvin-share.nix {} ;
  pinnwand = handleTest ./pinnwand.nix {};
  pinnwand = runTest ./pinnwand.nix;
  plantuml-server = handleTest ./plantuml-server.nix {};
  plasma-bigscreen = handleTest ./plasma-bigscreen.nix {};
  plasma5 = handleTest ./plasma5.nix {};
@@ -1036,7 +1036,7 @@ in {
  slurm = handleTest ./slurm.nix {};
  snmpd = handleTest ./snmpd.nix {};
  smokeping = handleTest ./smokeping.nix {};
  snapcast = handleTest ./snapcast.nix {};
  snapcast = runTest ./snapcast.nix;
  snapper = handleTest ./snapper.nix {};
  snipe-it = runTest ./web-apps/snipe-it.nix;
  soapui = handleTest ./soapui.nix {};
+185 −184
Original line number Diff line number Diff line
import ./make-test-python.nix (
  { pkgs, lib, ... }:
{
  pkgs,
  ...
}:
{
  name = "babeld";
  meta = with pkgs.lib.maintainers; {
@@ -8,7 +10,7 @@ import ./make-test-python.nix (

  nodes = {
    client =
        { pkgs, lib, ... }:
      { lib, ... }:
      {
        virtualisation.vlans = [ 10 ];

@@ -46,7 +48,7 @@ import ./make-test-python.nix (
      };

    local_router =
        { pkgs, lib, ... }:
      { lib, ... }:
      {
        virtualisation.vlans = [
          10
@@ -116,7 +118,7 @@ import ./make-test-python.nix (
        };
      };
    remote_router =
        { pkgs, lib, ... }:
      { lib, ... }:
      {
        virtualisation.vlans = [
          20
@@ -207,4 +209,3 @@ import ./make-test-python.nix (
    remote_router.succeed("ping -c1 2001:db8:10::2")
  '';
}
)
+48 −46
Original line number Diff line number Diff line
import ./make-test-python.nix (
  { pkgs, lib, ... }:
{
  pkgs,
  lib,
  ...
}:

{
  name = "botamusique";
@@ -52,4 +55,3 @@ import ./make-test-python.nix (
        machine.log(output)
  '';
}
)
+48 −47
Original line number Diff line number Diff line
import ./make-test-python.nix (
  { pkgs, ... }:
{
  pkgs,
  ...
}:
{
  name = "go-neb";
  meta = with pkgs.lib.maintainers; {
@@ -50,4 +52,3 @@ import ./make-test-python.nix (
  '';

}
)
+192 −190
Original line number Diff line number Diff line
@@ -5,8 +5,11 @@
# that the nameserver can resolve the clients fqdn to the correct IP
# address.

import ./make-test-python.nix (
  { pkgs, lib, ... }:
{
  pkgs,
  lib,
  ...
}:
{
  meta.maintainers = with lib.maintainers; [ hexa ];

@@ -232,4 +235,3 @@ import ./make-test-python.nix (
      router.succeed("curl --no-buffer 127.0.0.1:9547 | grep -qE '^kea_dhcp4_addresses_assigned_total.*1.0$'")
    '';
}
)
Loading