From ec1bee5df70470a38311d408cfaff052dbaef5a7 Mon Sep 17 00:00:00 2001 From: DuProcess <273172371+DuProcess@users.noreply.github.com> Date: Thu, 16 Jul 2026 21:39:59 -0400 Subject: [PATCH] Update release script parity assertions --- tests/release_scripts.rs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tests/release_scripts.rs b/tests/release_scripts.rs index 7061b5f..3906564 100644 --- a/tests/release_scripts.rs +++ b/tests/release_scripts.rs @@ -296,8 +296,20 @@ fn windows_installer_generates_hosts_config_like_unix() { "Windows installer missing host config setting {setting}" ); } - assert!(ps1.contains("$hostUdp = if ($DoshHost) { $DoshHost } else { $defaultServer }")); - assert!(ps1.contains("Set-Content -NoNewline -Encoding utf8 $hostsConfig")); + assert!(install.contains("host_udp_line=\"# dosh_host = \\\"server.example.com\\\"\"")); + assert!( + ps1.contains("$hostUdpLine = if ($DoshHost)") + && ps1.contains("# dosh_host = `\"server.example.com`\""), + "Windows installer should not bake an SSH target into dosh_host" + ); + assert!( + ps1.contains("Write-Utf8NoBom $hostsConfig $hostsToml"), + "Windows installer should write TOML as UTF-8 without BOM" + ); + assert!( + !ps1.contains("Set-Content -NoNewline -Encoding utf8 $hostsConfig"), + "PowerShell Set-Content -Encoding utf8 can write a BOM on older hosts" + ); } #[test] @@ -315,6 +327,9 @@ fn package_check_verifies_only_artifacts_it_builds() { .expect("package-check target"); assert!(package_check.contains("package-release-linux")); assert!(package_check.contains("package-release-windows")); + assert!(package_check.contains("package-release-windows-arm64")); + assert!(package_check.contains("aarch64-w64-mingw32-clang")); + assert!(package_check.contains("aarch64-pc-windows-gnullvm")); assert!(package_check.contains("dosh-linux-x86_64.tar.gz")); assert!(package_check.contains("dosh-windows-x86_64.zip")); assert!(