From b07524deaa62b1f62f418188bccdf87b313e5276 Mon Sep 17 00:00:00 2001 From: sudoforge Date: Mon, 15 Dec 2025 22:49:38 -0800 Subject: [PATCH] git-bug: enable package tests This change enables package tests, skipping tests that require the network. --- pkgs/by-name/gi/git-bug/package.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/gi/git-bug/package.nix b/pkgs/by-name/gi/git-bug/package.nix index 3a7ac839d093..832e069d171b 100644 --- a/pkgs/by-name/gi/git-bug/package.nix +++ b/pkgs/by-name/gi/git-bug/package.nix @@ -2,6 +2,7 @@ lib, buildGoModule, fetchFromGitHub, + gitMinimal, installShellFiles, }: @@ -20,7 +21,24 @@ buildGoModule rec { nativeBuildInputs = [ installShellFiles ]; - doCheck = false; + nativeCheckInputs = [ + gitMinimal + ]; + + checkFlags = + let + integrationTests = [ + "TestValidateUsername/existing_organisation" + "TestValidateUsername/existing_organisation_with_bad_case" + "TestValidateUsername/existing_username" + "TestValidateUsername/existing_username_with_bad_case" + "TestValidateUsername/non_existing_username" + "TestValidateProject/public_project" + ]; + in + [ + "-skip=^${lib.concatStringsSep "$|^" integrationTests}$" + ]; excludedPackages = [ "doc"