21 lines
1.0 KiB
PowerShell
21 lines
1.0 KiB
PowerShell
# Java 11 only. Test fixture does NOT enter production JAR.
|
|
$ErrorActionPreference = 'Stop'
|
|
$root = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
|
|
$tmp = Join-Path ([System.IO.Path]::GetTempPath()) ('ww-login-hotfix-' + [guid]::NewGuid().ToString('N'))
|
|
New-Item -ItemType Directory -Path $tmp | Out-Null
|
|
try {
|
|
& javac --release 11 -d $tmp `
|
|
(Join-Path $root 'hmi-docs/cheerpj/WorkplaceResizeBridge.java') `
|
|
(Join-Path $root 'hmi-docs/cheerpj/WindowGeometrySmoke.java') `
|
|
(Join-Path $root 'hmi-docs/cheerpj/WorkplaceLoginHotfixSmoke.java') `
|
|
(Join-Path $root 'hmi-scripts/tests/fixtures/MesLoginDialog.java')
|
|
if ($LASTEXITCODE -ne 0) { throw 'Java-11 compilation failed' }
|
|
& java -cp $tmp com.widgetworkbench.cheerpj.WindowGeometrySmoke
|
|
if ($LASTEXITCODE -ne 0) { throw 'Geometry test failed' }
|
|
& java -cp $tmp com.widgetworkbench.cheerpj.WorkplaceLoginHotfixSmoke
|
|
if ($LASTEXITCODE -ne 0) { throw 'Login test failed' }
|
|
Write-Host 'HOTFIX_V5_10_22_JAVA11_PASS'
|
|
} finally {
|
|
Remove-Item $tmp -Recurse -Force -ErrorAction SilentlyContinue
|
|
}
|