about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/shell/default.nix1
-rw-r--r--tests/git-clone-spectrum.nix20
2 files changed, 20 insertions, 1 deletions
diff --git a/modules/shell/default.nix b/modules/shell/default.nix
index 541674aa548a..c277c7d84d77 100644
--- a/modules/shell/default.nix
+++ b/modules/shell/default.nix
@@ -31,7 +31,6 @@
     neovim
     nix-diff
     nix-output-monitor
-    nix-top
     nmap
     openssh
     pciutils
diff --git a/tests/git-clone-spectrum.nix b/tests/git-clone-spectrum.nix
new file mode 100644
index 000000000000..df4486bace6d
--- /dev/null
+++ b/tests/git-clone-spectrum.nix
@@ -0,0 +1,20 @@
+{ pkgs ? import ./.. {} }: pkgs.nixosTest {
+  name = "git-clone";
+
+  nodes.machine = { pkgs, ... }: {
+    imports = [
+      ../modules/server/spectrum/git
+      ../modules/server/spectrum/git-http-backend
+    ];
+
+    environment.systemPackages = [ pkgs.gitMinimal ];
+
+    networking.hostName = "spectrum-os";
+    networking.domain = "org";
+  };
+  
+  testScript = ''
+    machine.wait_for_unit("nginx.service")
+    machine.succeed("git clone http://spectrum-os.org/git/spectrum")
+  '';
+}