Files
violin/scripts/smoke-test.ps1
T
2026-07-12 09:39:55 +01:00

35 lines
946 B
PowerShell

param(
[switch]$NoHermes
)
$ErrorActionPreference = "Stop"
$RepoRoot = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
Set-Location $RepoRoot
Write-Host "Violin smoke test (PowerShell)"
Write-Host "Repo: $RepoRoot"
python scripts/violin_guard.py check-release
if ($NoHermes) {
Write-Host "Skipping Hermes install smoke because -NoHermes was supplied."
exit 0
}
$Hermes = Get-Command hermes -ErrorAction SilentlyContinue
if (-not $Hermes) {
Write-Host "Hermes not found on PATH. Release checks passed; install smoke skipped."
exit 0
}
$ProfileName = "violin-smoke-$([int][double]::Parse((Get-Date -UFormat %s)))"
try {
hermes profile install . --name $ProfileName -y
hermes profile show $ProfileName
hermes -p $ProfileName tools --summary
hermes -p $ProfileName chat -q "Smoke test: reply with Violin profile loaded" -Q
}
finally {
hermes profile delete $ProfileName -y 2>$null
}