about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/bpftune.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/bpftune.nix')
-rw-r--r--nixpkgs/nixos/tests/bpftune.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/bpftune.nix b/nixpkgs/nixos/tests/bpftune.nix
new file mode 100644
index 000000000000..c17bbcd11092
--- /dev/null
+++ b/nixpkgs/nixos/tests/bpftune.nix
@@ -0,0 +1,20 @@
+import ./make-test-python.nix ({ lib, pkgs, ... }: {
+
+  name = "bpftune";
+
+  meta = {
+    maintainers = with lib.maintainers; [ nickcao ];
+  };
+
+  nodes = {
+    machine = { pkgs, ... }: {
+      services.bpftune.enable = true;
+    };
+  };
+
+  testScript = ''
+    machine.wait_for_unit("bpftune.service")
+    machine.wait_for_console_text("bpftune works")
+  '';
+
+})