Log context of running test.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2015-12-16 19:14:10 +01:00
parent 18c78c5638
commit 02ee7a3868

View File

@ -134,11 +134,11 @@ test_script:
foreach ($component in $components) {
[string]$path = $component + "\testsuite\bin\TestSuite.exe";
if (Test-Path -Path $path) {
Write-Host -ForegroundColor Yellow '--------------------------------------';
Write-Host -ForegroundColor Yellow '|' $component;
Write-Host -ForegroundColor Yellow '--------------------------------------';
Write-Host -ForegroundColor Yellow '-------------------------------------------------------------------------------------';
Write-Host -ForegroundColor Yellow '|' $env:APPVEYOR_BUILD_VERSION $env:vs$builder $env:Platform $env:linkmode $component;
Write-Host -ForegroundColor Yellow '-------------------------------------------------------------------------------------';
$process = Start-Process -PassThru -NoNewWindow -Wait -FilePath "$path" -Args "-all" -RSO "cout" -RSE "cerr";
Get-Content cout; Get-Content cerr:
Get-Content cout; Get-Content cerr;
$process.ExitCode;
}
}
@ -147,13 +147,13 @@ test_script:
{
$env:PATH = "$env:CD\bin64;" + $env:PATH
foreach ($component in $components) {
[string]$path = $component + "\testsuite\bin\TestSuite.exe";
[string]$path = $component + "\testsuite\bin64\TestSuite.exe";
if (Test-Path -Path $path) {
Write-Host -ForegroundColor Yellow '--------------------------------------';
Write-Host -ForegroundColor Yellow '|' $component;
Write-Host -ForegroundColor Yellow '--------------------------------------';
Write-Host -ForegroundColor Yellow '-------------------------------------------------------------------------------------';
Write-Host -ForegroundColor Yellow '|' $env:APPVEYOR_BUILD_VERSION $env:vs$builder $env:Platform $env:linkmode $component;
Write-Host -ForegroundColor Yellow '-------------------------------------------------------------------------------------';
$process = Start-Process -PassThru -NoNewWindow -Wait -FilePath "$path" -Args "-all" -RSO "cout" -RSE "cerr";
Get-Content cout; Get-Content cerr:
Get-Content cout; Get-Content cerr;
$process.ExitCode;
}
}