You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
590 B
27 lines
590 B
$ErrorActionPreference = "Stop"
|
|
|
|
# Get the root directory and third_party directory
|
|
$ROOT_DIR = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent | Split-Path -Parent | Split-Path -Parent -Resolve
|
|
|
|
# Include the common functions
|
|
. "$ROOT_DIR/hack/lib/windows/init.ps1"
|
|
|
|
function Test {
|
|
poetry run pytest
|
|
if ($LASTEXITCODE -ne 0) {
|
|
GPUStack.Log.Fatal "failed to run poetry run pytest."
|
|
}
|
|
}
|
|
|
|
#
|
|
# main
|
|
#
|
|
|
|
GPUStack.Log.Info "+++ TEST +++"
|
|
try {
|
|
Test
|
|
} catch {
|
|
GPUStack.Log.Fatal "failed to test: $($_.Exception.Message)"
|
|
}
|
|
GPUStack.Log.Info "--- TEST ---"
|