about summary refs log tree commit diff
path: root/pkgs/by-name/ra/ratchet/tests.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ra/ratchet/tests.nix')
-rw-r--r--pkgs/by-name/ra/ratchet/tests.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/by-name/ra/ratchet/tests.nix b/pkgs/by-name/ra/ratchet/tests.nix
new file mode 100644
index 0000000000000..7585c06d91728
--- /dev/null
+++ b/pkgs/by-name/ra/ratchet/tests.nix
@@ -0,0 +1,17 @@
+{
+  lib,
+  runCommand,
+  ratchet,
+}: let
+  inherit (ratchet) pname version;
+in
+  runCommand "${pname}-tests" {meta.timeout = 60;}
+  ''
+    set -euo pipefail
+
+    # Ensure ratchet is executable
+    ${ratchet}/bin/ratchet --version
+    ${ratchet}/bin/ratchet --help
+
+    touch $out
+  ''