about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2023-08-19 11:52:29 +0100
committerRobert Helgesson <robert@rycee.net>2023-08-20 00:45:36 +0200
commit174bd27ec81df6d6deccd7da05f3b10c3f7a93f4 (patch)
tree63cc2a92f9807a98a3d694bdf96c2322e02c0037 /pkgs
parent5726fc02de008b54171592c8066e42c5b6abb089 (diff)
jhead: enable tests
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/graphics/jhead/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/jhead/default.nix b/pkgs/tools/graphics/jhead/default.nix
index ad916624f6f18..35000088fea9b 100644
--- a/pkgs/tools/graphics/jhead/default.nix
+++ b/pkgs/tools/graphics/jhead/default.nix
@@ -15,6 +15,19 @@ stdenv.mkDerivation rec {
 
   makeFlags = [ "CPPFLAGS=" "CFLAGS=-O3" "LDFLAGS=" ];
 
+  doCheck = true;
+  checkPhase = ''
+    runHook preCheck
+
+    (
+      cd tests
+      patchShebangs runtests pretend-editor
+      ./runtests
+    )
+
+    runHook postCheck
+  '';
+
   installPhase = ''
     mkdir -p \
       $out/bin \