Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1011 Bytes

File metadata and controls

30 lines (22 loc) · 1011 Bytes

Running tests on Linux from Windows

The Unix code path (UnixProcessGroup, Libc) is exercised in CI on ubuntu-latest, but you can also run the suite locally against a Linux container — useful when changing native interop or shutdown semantics.

Requirements

  • Rancher Desktop (or Docker Desktop) with the dockerd / moby engine enabled so docker is on PATH
  • PowerShell 7+

Usage

pwsh ./scripts/test-linux.ps1

The script mounts the repo into mcr.microsoft.com/dotnet/sdk:10.0 and runs dotnet build + dotnet test. The host's bin/ and obj/ folders are shadowed inside the container with anonymous volumes, so the Linux build neither sees the Windows IDE artifacts nor writes back into the host tree. A named volume (processkit-nuget) caches NuGet packages between runs.

Useful switches:

pwsh ./scripts/test-linux.ps1 -Filter "FullyQualifiedName~TerminateAll"
pwsh ./scripts/test-linux.ps1 -Configuration Debug -Rebuild