about summary refs log tree commit diff
path: root/nixos/tests/quicktun.nix
diff options
context:
space:
mode:
authorh7x4 <h7x4@nani.wtf>2023-11-01 19:48:51 +0100
committerh7x4 <h7x4@nani.wtf>2023-11-01 20:10:14 +0100
commit78f663bc0b6d4e24401164f07113533f119d2fa7 (patch)
tree230716df42037e048f5aa69ad2d2a1e01ed4056e /nixos/tests/quicktun.nix
parent5672d3d8b835b510a72b4280c97e8db0765ebef4 (diff)
nixos/quicktun: add test
Diffstat (limited to 'nixos/tests/quicktun.nix')
-rw-r--r--nixos/tests/quicktun.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/quicktun.nix b/nixos/tests/quicktun.nix
new file mode 100644
index 0000000000000..a5a6324571174
--- /dev/null
+++ b/nixos/tests/quicktun.nix
@@ -0,0 +1,18 @@
+import ./make-test-python.nix ({ pkgs, lib, ... }:
+{
+  name = "quicktun";
+  meta.maintainers = with lib.maintainers; [ h7x4 ];
+
+  nodes = {
+    machine = { ... }: {
+      services.quicktun."test-tunnel" = {
+        protocol = "raw";
+      };
+    };
+  };
+
+  testScript = ''
+    start_all()
+    machine.wait_for_unit("quicktun-test-tunnel.service")
+  '';
+})