Fix xUnit tests for new framework

This also enables us to run them on OS X (though they will fail).
This commit is contained in:
Andrew Schwartzmeyer 2016-04-25 14:11:13 -07:00
parent ea5d5c3d05
commit a48abd0b6c

View file

@ -321,9 +321,12 @@ function Start-PSxUnit {
$Arguments = "--configuration", "Linux"
try {
Push-Location $PSScriptRoot/test/csharp
# Path manipulation to obtain test project output directory
$Output = Join-Path $pwd ((Split-Path -Parent (Get-PSOutput)) -replace (New-PSOptions).Top)
Write-Host "Output is $Output"
Start-NativeExecution { dotnet build $Arguments }
Copy-Item -ErrorAction SilentlyContinue -Recurse -Path $Content/* -Include Modules,libpsl-native* -Destination "./bin/Linux/netcoreapp1.0/ubuntu.14.04-x64"
Copy-Item -ErrorAction SilentlyContinue -Recurse -Path $Content/* -Include Modules,libpsl-native* -Destination $Output
Start-NativeExecution { dotnet test $Arguments }
if ($LASTEXITCODE -ne 0) {