Strengthen split target conformance consumption
This commit is contained in:
parent
52a5dd1e56
commit
ef16b0c90b
5 changed files with 135 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ try {
|
|||
& (Join-Path $PSScriptRoot "run-conformance-consumer-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-plugin-owner-conformance-consumer-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-runtime-owner-conformance-consumer-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-split-target-conformance-consumer-smoke.ps1")
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
|
|
|||
53
scripts/run-split-target-conformance-consumer-smoke.ps1
Normal file
53
scripts/run-split-target-conformance-consumer-smoke.ps1
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
param(
|
||||
[string] $SourceDirectory = "artifacts\conformance\latest",
|
||||
[string] $SmokeDirectory = "artifacts\split-target-conformance-consumer-smoke"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$sourcePath = if ([System.IO.Path]::IsPathRooted($SourceDirectory)) {
|
||||
$SourceDirectory
|
||||
} else {
|
||||
Join-Path $projectRoot $SourceDirectory
|
||||
}
|
||||
$smokePath = if ([System.IO.Path]::IsPathRooted($SmokeDirectory)) {
|
||||
$SmokeDirectory
|
||||
} else {
|
||||
Join-Path $projectRoot $SmokeDirectory
|
||||
}
|
||||
$exportPath = Join-Path $smokePath "export"
|
||||
|
||||
if (-not (Test-Path -LiteralPath (Join-Path $sourcePath "index.json"))) {
|
||||
throw "Conformance export not found: $sourcePath"
|
||||
}
|
||||
|
||||
if (Test-Path -LiteralPath $exportPath) {
|
||||
Remove-Item -LiteralPath $exportPath -Recurse -Force
|
||||
}
|
||||
New-Item -ItemType Directory -Force -Path $smokePath | Out-Null
|
||||
Copy-Item -LiteralPath $sourcePath -Destination $exportPath -Recurse
|
||||
|
||||
Push-Location $projectRoot
|
||||
try {
|
||||
node .\tools\conformance\consume-export.mjs $exportPath `
|
||||
--expect-split-target EveFlutter `
|
||||
--expect-split-target-status EveFlutter:incubating `
|
||||
--expect-split-target-proof "EveFlutter:Provider picker consumes provider advertisements" `
|
||||
--expect-split-target-proof "EveFlutter:Conformance pack can be consumed" `
|
||||
--expect-split-target-proof "EveFlutter:Flutter lifecycle evidence is declared" `
|
||||
--expect-split-target-blocker "EveFlutter:Tagged EveFlutter release" `
|
||||
--expect-split-target EveUnity `
|
||||
--expect-split-target-status EveUnity:incubating `
|
||||
--expect-split-target-proof "EveUnity:Unity lifecycle evidence is declared" `
|
||||
--expect-split-target-blocker "EveUnity:Tagged UPM release" `
|
||||
--expect-split-target-blocker "EveUnity:Unity batchmode EditMode runner" `
|
||||
--expect-split-target-blocker "EveUnity:Unity batchmode or editor capture artifact"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Split target conformance consumer smoke failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
Write-Host "Split target conformance consumer smoke passed: $exportPath"
|
||||
Loading…
Reference in a new issue