summary refs log tree commit diff
path: root/nixos/lib/testing/name.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/lib/testing/name.nix')
-rw-r--r--nixos/lib/testing/name.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/lib/testing/name.nix b/nixos/lib/testing/name.nix
new file mode 100644
index 00000000000..a54622e139b
--- /dev/null
+++ b/nixos/lib/testing/name.nix
@@ -0,0 +1,14 @@
+{ lib, ... }:
+let
+  inherit (lib) mkOption types mdDoc;
+in
+{
+  options.name = mkOption {
+    description = mdDoc ''
+      The name of the test.
+
+      This is used in the derivation names of the [{option}`driver`](#opt-driver) and [{option}`test`](#opt-test) runner.
+    '';
+    type = types.str;
+  };
+}