From 66c729f19141027233b320617b22f6ddb53900b2 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:24:29 +0100 Subject: [PATCH] distribution: add version test --- pkgs/by-name/di/distribution/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/di/distribution/package.nix b/pkgs/by-name/di/distribution/package.nix index 64c04ebaefdb..9ade1080e3e2 100644 --- a/pkgs/by-name/di/distribution/package.nix +++ b/pkgs/by-name/di/distribution/package.nix @@ -2,6 +2,8 @@ , buildGoModule , fetchFromGitHub , fetchpatch +, testers +, distribution }: buildGoModule rec { @@ -38,6 +40,13 @@ buildGoModule rec { "-skip=^TestHTTPChecker$|^TestInMemoryDriverSuite$" ]; + passthru = { + tests.version = testers.testVersion { + package = distribution; + version = "v${version}"; + }; + }; + meta = with lib; { description = "Toolkit to pack, ship, store, and deliver container content"; longDescription = ''