#Requires -Version 7 <# .SYNOPSIS Builds and runs every offline test program in RynthCore, RynthSuite and RynthServers. Exit 0 only when every one passes. .DESCRIPTION The test programs are console apps: RynthCore tools\*Tests, RynthSuite and RynthServers Tools\*Tests, each run as `dotnet run -c Release` from its own folder (exit 0 = pass, anything else = fail), and the loader's C tests (a Run-Tests.ps1 beside test.c, built with MSVC). None needs a game client, a server or the network, and none writes to %APPDATA% or C:\Games (each project's header says what it reads). Publish-Update.ps1 runs this before it builds a release and refuses to publish when a test fails (2026-10-22: tests only ran when someone remembered to; a release went out with Missile Crafting broken while the tests that existed passed). Every folder whose name contains "Test" is run unless $Skip below names it with a reason; skipped ones are listed in the summary, never dropped silently. Each program's output goes to \..log, and the summary (also \summary.txt) shows each failure's last lines. .EXAMPLE .\scripts\Run-AllTests.ps1 -RynthSuiteRoot C:\Projects\rel1002\RynthSuite .EXAMPLE .\scripts\Run-AllTests.ps1 -Only RynthCore.RynthAiHostTests, ChatFilterTests #> param( [string]$RynthCoreRoot = "", # defaults to this checkout [string]$RynthSuiteRoot = "", # defaults to ..\RynthSuite beside RynthCore [string]$RynthServersRoot = "", # defaults to ..\RynthServers beside RynthSuite [string[]]$Only = @(), # folder names (or repo.name) to run; empty = all [string]$LogDir = "", # defaults to %TEMP%\rynth-tests\