aboutsummaryrefslogtreecommitdiffstats
path: root/dist/windows/appveyor
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-06-12 07:57:27 +0200
committerTristan Gingold <tgingold@free.fr>2017-06-12 07:58:03 +0200
commit9d68047d4984e1ba0c50e45f2cd8e520c9ce4513 (patch)
tree7af722108b4dfe3a736a54168e049a573aab5d68 /dist/windows/appveyor
parent1ffa7bee75381916253d9990be6f558051b17095 (diff)
downloadghdl-9d68047d4984e1ba0c50e45f2cd8e520c9ce4513.tar.gz
ghdl-9d68047d4984e1ba0c50e45f2cd8e520c9ce4513.tar.bz2
ghdl-9d68047d4984e1ba0c50e45f2cd8e520c9ce4513.zip
Appveyor: set test exit status (tentatively)
For #364
Diffstat (limited to 'dist/windows/appveyor')
-rw-r--r--dist/windows/appveyor/test.ps113
1 files changed, 9 insertions, 4 deletions
diff --git a/dist/windows/appveyor/test.ps1 b/dist/windows/appveyor/test.ps1
index a28186285..7d427460a 100644
--- a/dist/windows/appveyor/test.ps1
+++ b/dist/windows/appveyor/test.ps1
@@ -51,7 +51,10 @@ cd "$($env:APPVEYOR_BUILD_FOLDER)\testsuite"
# Use a MinGW compatible path
$env:GHDL="$($env:GHDL_PREFIX_DIR)/bin/ghdl.exe"
-# ==============================================================================
+# Exit status
+$Err = 0
+
+# =============================================================================
$TestFramework = "GNA"
Write-Host "Running GNA tests..." -Foreground Yellow
cd gna
@@ -75,11 +78,12 @@ foreach ($Directory in $Directories)
else
{ Write-Host "FAILED" -Foreground Red
Update-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Failed -Duration $TotalMilliseconds
+ $Err = 1
}
}
cd ..\..
-# ==============================================================================
+# =============================================================================
$TestFramework = "VESTS"
Write-Host "Running VESTS tests..." -Foreground Yellow
@@ -109,10 +113,11 @@ else
else
{ Write-Host "FAILED" -Foreground Red
Update-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Failed -Duration $TotalMilliseconds
+ $Err = 1
}
cd ..
}
-# ==============================================================================
+# =============================================================================
cd $env:APPVEYOR_BUILD_FOLDER
-exit 0
+exit $Err