Diff of /tests/run_tests.ps1 [000000] .. [5d12a0]

Switch to unified view

a b/tests/run_tests.ps1
1
$PYCMD = "python"
2
3
$PYTHON_SCRIPTS = @(
4
    "test_core_ants_image.py",
5
    "test_core_ants_image_io.py",
6
    "test_core_ants_transform.py",
7
    "test_core_ants_transform_io.py",
8
    "test_core_ants_metric.py",
9
    "test_learn.py",
10
    "test_registration.py",
11
    "test_segmentation.py",
12
    "test_utils.py",
13
    "test_bugs.py"
14
)
15
16
$scriptFailed = $false
17
18
Set-Location -Path ".\tests"
19
20
foreach ($script in $PYTHON_SCRIPTS) {
21
    Write-Host "Running Python script $script"
22
    & $PYCMD $script $args
23
24
    if ($LASTEXITCODE -ne 0) {
25
        Write-Host "Python script $script failed with exit code $LASTEXITCODE"
26
        $scriptFailed = $true
27
    }
28
}
29
30
if ($scriptFailed) {
31
    exit 1
32
}