Windows 0.3.0 clean next-generation source delta; no private history or other platform changes
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#requires -Version 7.0
|
||||
# Build/package only. The only executed app modes are the six reviewed offline
|
||||
# self-tests below, offline startup UI and --installer-verify; no installation/network/TUN commands.
|
||||
# self-tests below, offline startup/preview UI and --installer-verify; no installation/network/TUN commands.
|
||||
param(
|
||||
[string]$OutputDirectory,
|
||||
[string]$ToolRoot,
|
||||
[string]$DependencyPayloadRoot,
|
||||
[ValidateSet(2,3,4)][int]$PreviewRevision = 2,
|
||||
[switch]$FormalChannel,
|
||||
[ValidateSet('0.2.20','0.2.21')][string]$FormalVersion = '0.2.21'
|
||||
[ValidateSet('0.2.20','0.2.21','0.2.22','0.2.23','0.2.24','0.3.0')][string]$FormalVersion = '0.2.21'
|
||||
)
|
||||
$ErrorActionPreference='Stop'
|
||||
Set-StrictMode -Version Latest
|
||||
@@ -76,7 +76,11 @@ function Run-Offline([string]$File,[string]$Argument,[int]$Timeout=45){
|
||||
return $child.ExitCode
|
||||
} finally {$child.Dispose()}
|
||||
}
|
||||
$results=@(foreach($name in @('tailnet-transport-self-test','connection-health-self-test','connection-selection-self-test','private-auxiliary-self-test','learning-self-test','window-chrome-self-test','installation-self-test')){
|
||||
$offlineTests=@('tailnet-transport-self-test','connection-health-self-test','connection-selection-self-test','private-auxiliary-self-test','learning-self-test','window-chrome-self-test','installation-self-test')
|
||||
if($FormalChannel -and $FormalVersion -eq '0.3.0'){
|
||||
$offlineTests+=@('public-tailnet-selection-self-test','learning-sync-coordinator-self-test','tailnet-readiness-self-test','nextgen-lifecycle-self-test','network-handover-self-test','dashboard-interaction-self-test')
|
||||
}
|
||||
$results=@(foreach($name in $offlineTests){
|
||||
$report=Join-Path $candidate ($name+'.json');if(Test-Path -LiteralPath $report){throw 'Stale offline report'}
|
||||
$exit=Run-Offline $exe ('--'+$name)
|
||||
$parsed=Get-Content -LiteralPath $report -Raw | ConvertFrom-Json
|
||||
@@ -97,6 +101,16 @@ if($startupExit -ne 0 -or $startup.passed -ne $true){throw 'Offline startup/logi
|
||||
foreach($name in @('startup-self-test.json','startup-login-test.png')){
|
||||
Copy-Checked (Join-Path $candidate $name) (Join-Path $evidence $name) | Out-Null
|
||||
}
|
||||
if($FormalChannel -and $FormalVersion -eq '0.3.0'){
|
||||
$previewExit=Run-Offline $exe '--render-preview'
|
||||
$previewReport=Join-Path $candidate 'dashboard-ui-self-test.json'
|
||||
$preview=Get-Content -LiteralPath $previewReport -Raw | ConvertFrom-Json
|
||||
if($previewExit -ne 0 -or $preview.passed -ne $true){throw 'Exact-build dashboard preview failed'}
|
||||
Copy-Checked $previewReport (Join-Path $evidence 'dashboard-ui-self-test.json') | Out-Null
|
||||
foreach($previewImage in Get-ChildItem -LiteralPath $candidate -Filter 'preview-*.png' -File){
|
||||
Copy-Checked $previewImage.FullName (Join-Path $evidence $previewImage.Name) | Out-Null
|
||||
}
|
||||
}
|
||||
foreach($name in $results.Test){Copy-Item -LiteralPath (Join-Path $candidate ($name+'.json')) -Destination (Join-Path $evidence ($name+'.json'))}
|
||||
if(Test-Path -LiteralPath (Join-Path $candidate 'window-chrome-offline.png')){Copy-Item -LiteralPath (Join-Path $candidate 'window-chrome-offline.png') -Destination (Join-Path $evidence 'window-chrome-offline.png')}
|
||||
$manifest=@(foreach($name in $expected){
|
||||
|
||||
Reference in New Issue
Block a user