summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-10-29 14:42:32 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-10-31 21:25:12 -0300
commitdc4e3b543dd279674a767f222917dd64177f44b1 (patch)
tree70fd8af7998ebb5b69e445a947f11b7edce626a6 /nixos/tests
parentf87e45d17e866f522a51b37dcb98f6415243a1aa (diff)
downloadnixpkgs-dc4e3b543dd279674a767f222917dd64177f44b1.tar
nixpkgs-dc4e3b543dd279674a767f222917dd64177f44b1.tar.gz
nixpkgs-dc4e3b543dd279674a767f222917dd64177f44b1.tar.bz2
nixpkgs-dc4e3b543dd279674a767f222917dd64177f44b1.tar.lz
nixpkgs-dc4e3b543dd279674a767f222917dd64177f44b1.tar.xz
nixpkgs-dc4e3b543dd279674a767f222917dd64177f44b1.tar.zst
nixpkgs-dc4e3b543dd279674a767f222917dd64177f44b1.zip
ucg: rewrite tests
The tests can be easily done in the local machine, there is no necessity of
starting a virtual machine for them.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/all-tests.nix3
-rw-r--r--nixos/tests/ucg.nix18
2 files changed, 1 insertions, 20 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 1f91d5b4f38..d8bee3eeeb7 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -453,8 +453,8 @@ in
   tinc = handleTest ./tinc {};
   tinydns = handleTest ./tinydns.nix {};
   tor = handleTest ./tor.nix {};
-  # traefik test relies on docker-containers
   trac = handleTest ./trac.nix {};
+  # traefik test relies on docker-containers
   traefik = handleTestOn ["x86_64-linux"] ./traefik.nix {};
   trafficserver = handleTest ./trafficserver.nix {};
   transmission = handleTest ./transmission.nix {};
@@ -466,7 +466,6 @@ in
   turbovnc-headless-server = handleTest ./turbovnc-headless-server.nix {};
   tuxguitar = handleTest ./tuxguitar.nix {};
   ucarp = handleTest ./ucarp.nix {};
-  ucg = handleTest ./ucg.nix {};
   udisks2 = handleTest ./udisks2.nix {};
   unbound = handleTest ./unbound.nix {};
   unit-php = handleTest ./web-servers/unit-php.nix {};
diff --git a/nixos/tests/ucg.nix b/nixos/tests/ucg.nix
deleted file mode 100644
index 7769fd01fce..00000000000
--- a/nixos/tests/ucg.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-import ./make-test-python.nix ({ pkgs, ... }: {
-  name = "ucg";
-  meta = with pkgs.lib.maintainers; {
-    maintainers = [ AndersonTorres ];
-  };
-
-  machine = { pkgs, ... }: {
-    environment.systemPackages = [ pkgs.ucg ];
-  };
-
-  testScript = ''
-    machine.succeed("echo 'Lorem ipsum dolor sit amet\n2.7182818284590' > /tmp/foo")
-    assert "dolor" in machine.succeed("ucg 'dolor' /tmp/foo")
-    assert "Lorem" in machine.succeed("ucg --ignore-case 'lorem' /tmp/foo")
-    machine.fail("ucg --word-regexp '2718' /tmp/foo")
-    machine.fail("ucg 'pisum' /tmp/foo")
-  '';
-})