Add EveFlutter conformance consumer proof
This commit is contained in:
parent
8fee12fc6b
commit
2709061fd8
5 changed files with 103 additions and 2 deletions
55
scripts/run-eveflutter-conformance-consumer-smoke.ps1
Normal file
55
scripts/run-eveflutter-conformance-consumer-smoke.ps1
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
param(
|
||||
[string] $ExportDirectory = "artifacts\conformance\latest",
|
||||
[string] $FlutterRoot = "flutter\eve_parity",
|
||||
[string] $ConsumerDirectory = "artifacts\eveflutter-conformance-consumer-smoke"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$sourceExport = if ([System.IO.Path]::IsPathRooted($ExportDirectory)) {
|
||||
$ExportDirectory
|
||||
} else {
|
||||
Join-Path $projectRoot $ExportDirectory
|
||||
}
|
||||
$flutterRootPath = if ([System.IO.Path]::IsPathRooted($FlutterRoot)) {
|
||||
$FlutterRoot
|
||||
} else {
|
||||
Join-Path $projectRoot $FlutterRoot
|
||||
}
|
||||
$consumerRoot = if ([System.IO.Path]::IsPathRooted($ConsumerDirectory)) {
|
||||
$ConsumerDirectory
|
||||
} else {
|
||||
Join-Path $projectRoot $ConsumerDirectory
|
||||
}
|
||||
$consumerExport = Join-Path $consumerRoot "export"
|
||||
|
||||
if (-not (Test-Path $sourceExport)) {
|
||||
throw "Conformance export not found: $sourceExport"
|
||||
}
|
||||
if (-not (Test-Path $flutterRootPath)) {
|
||||
throw "EveFlutter consumer root not found: $flutterRootPath"
|
||||
}
|
||||
|
||||
if (Test-Path $consumerExport) {
|
||||
Remove-Item -LiteralPath $consumerExport -Recurse -Force
|
||||
}
|
||||
New-Item -ItemType Directory -Force -Path $consumerRoot | Out-Null
|
||||
Copy-Item -LiteralPath $sourceExport -Destination $consumerExport -Recurse
|
||||
|
||||
$consumerScript = Join-Path $projectRoot "tools\conformance\consume-export.mjs"
|
||||
|
||||
Push-Location $flutterRootPath
|
||||
try {
|
||||
node $consumerScript $consumerExport `
|
||||
--expect-pack runtime `
|
||||
--expect-pack provider `
|
||||
--expect-fixture sai-vn `
|
||||
--expect-provider gamecult.home.vn `
|
||||
--expect-runtime windows-flutter `
|
||||
--expect-runtime linux-flutter `
|
||||
--expect-runtime android-flutter `
|
||||
--expect-split-target EveFlutter
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
Loading…
Reference in a new issue