dotnet/wrapper: add ready-to-run sdk test

This commit is contained in:
David McFarland
2025-01-21 15:18:30 -04:00
parent 3afb9cfa7d
commit 77dd43a1e2
@@ -204,6 +204,13 @@ stdenvNoCC.mkDerivation (finalAttrs: {
runtime = null;
run = checkConsoleOutput "$src/bin/test";
};
ready-to-run = mkConsoleTest {
name = "ready-to-run";
usePackageSource = true;
build = "dotnet publish --use-current-runtime -p:PublishReadyToRun=true -o $out/bin";
run = checkConsoleOutput "$src/bin/test";
};
}
// lib.optionalAttrs finalAttrs.finalPackage.hasILCompiler {
aot = mkConsoleTest {