From 7150d7e203ab92fb914e08a780d30b6493e6988d Mon Sep 17 00:00:00 2001 From: David McFarland Date: Wed, 17 Apr 2024 09:12:18 -0300 Subject: [PATCH] dotnet: add self-contained test --- pkgs/development/compilers/dotnet/common.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/compilers/dotnet/common.nix b/pkgs/development/compilers/dotnet/common.nix index a26617149837..7cd37975f988 100644 --- a/pkgs/development/compilers/dotnet/common.nix +++ b/pkgs/development/compilers/dotnet/common.nix @@ -98,6 +98,15 @@ run = checkConsoleOutput "$src/test"; }; + self-contained = mkDotnetTest { + name = "self-contained"; + template = "console"; + usePackageSource = true; + build = "dotnet publish --use-current-runtime --sc -o $out"; + runtime = null; + run = checkConsoleOutput "$src/test"; + }; + single-file = mkDotnetTest { name = "single-file"; template = "console";