summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/build-support/fetchdebianpatch/tests.nix11
-rw-r--r--pkgs/test/default.nix1
-rw-r--r--pkgs/top-level/all-packages.nix5
3 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchdebianpatch/tests.nix b/pkgs/build-support/fetchdebianpatch/tests.nix
new file mode 100644
index 00000000000..2146f66ce70
--- /dev/null
+++ b/pkgs/build-support/fetchdebianpatch/tests.nix
@@ -0,0 +1,11 @@
+{ testers, fetchDebianPatch, ... }:
+
+{
+  simple = testers.invalidateFetcherByDrvHash fetchDebianPatch {
+    pname = "pysimplesoap";
+    version = "1.16.2";
+    debianRevision = "5";
+    patch = "Add-quotes-to-SOAPAction-header-in-SoapClient";
+    hash = "sha256-xA8Wnrpr31H8wy3zHSNfezFNjUJt1HbSXn3qUMzeKc0=";
+  };
+}
diff --git a/pkgs/test/default.nix b/pkgs/test/default.nix
index b9d75c790da..d6fd75359fc 100644
--- a/pkgs/test/default.nix
+++ b/pkgs/test/default.nix
@@ -35,6 +35,7 @@ with pkgs;
   fetchurl = callPackages ../build-support/fetchurl/tests.nix { };
   fetchpatch = callPackages ../build-support/fetchpatch/tests.nix { };
   fetchpatch2 = callPackages ../build-support/fetchpatch/tests.nix { fetchpatch = fetchpatch2; };
+  fetchDebianPatch = callPackages ../build-support/fetchdebianpatch/tests.nix { };
   fetchzip = callPackages ../build-support/fetchzip/tests.nix { };
   fetchgit = callPackages ../build-support/fetchgit/tests.nix { };
   fetchFirefoxAddon = callPackages ../build-support/fetchfirefoxaddon/tests.nix { };
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e53b1fe1c65..72c906ec025 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1173,7 +1173,10 @@ with pkgs;
       tests = pkgs.tests.fetchzip;
     };
 
-  fetchDebianPatch = callPackage ../build-support/fetchdebianpatch { };
+  fetchDebianPatch = callPackage ../build-support/fetchdebianpatch { }
+    // {
+      tests = pkgs.tests.fetchDebianPatch;
+    };
 
   fetchCrate = callPackage ../build-support/rust/fetchcrate.nix { };