diff options
author | David McFarland <corngood@gmail.com> | 2024-04-17 09:12:18 -0300 |
---|---|---|
committer | David McFarland <corngood@gmail.com> | 2024-04-17 09:47:46 -0300 |
commit | 7150d7e203ab92fb914e08a780d30b6493e6988d (patch) | |
tree | fe49930ba872bfb1193af4c4681d45aa874d065f /pkgs/development/compilers/dotnet | |
parent | 767d892193e5e8afd9a077efaa51ecac7a9c48ab (diff) |
dotnet: add self-contained test
Diffstat (limited to 'pkgs/development/compilers/dotnet')
-rw-r--r-- | pkgs/development/compilers/dotnet/common.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/compilers/dotnet/common.nix b/pkgs/development/compilers/dotnet/common.nix index a266171498379..7cd37975f9888 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"; |