Validate exported conformance consumer layout
This commit is contained in:
parent
d0ada9d032
commit
615bc1e307
5 changed files with 131 additions and 2 deletions
36
scripts/run-conformance-consumer-smoke.ps1
Normal file
36
scripts/run-conformance-consumer-smoke.ps1
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
param(
|
||||
[string] $ExportDirectory = "artifacts\conformance\latest",
|
||||
[string] $ConsumerDirectory = "artifacts\conformance-consumer-smoke"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$sourceExport = if ([System.IO.Path]::IsPathRooted($ExportDirectory)) {
|
||||
$ExportDirectory
|
||||
} else {
|
||||
Join-Path $projectRoot $ExportDirectory
|
||||
}
|
||||
$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 (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
|
||||
|
||||
Push-Location $projectRoot
|
||||
try {
|
||||
node .\tools\conformance\consume-export.mjs $consumerExport
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
|
@ -14,6 +14,7 @@ $env:EVE_PARITY_OUTPUT = if ([System.IO.Path]::IsPathRooted($OutputDirectory)) {
|
|||
Push-Location $projectRoot
|
||||
try {
|
||||
node .\tools\parity\run-parity.mjs
|
||||
& (Join-Path $PSScriptRoot "run-conformance-consumer-smoke.ps1")
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue