Update release script parity assertions
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user