Move Msi tests into the \test directory.

Partial #1250
This commit is contained in:
Eric Erhardt 2016-02-09 12:27:03 -06:00
parent 0b27dba299
commit faa88ae155
12 changed files with 4 additions and 3 deletions

View file

@ -243,7 +243,7 @@ if(!(Test-Path $DotnetBundleOutput))
Write-Host -ForegroundColor Green "Successfully created dotnet MSI - $DotnetMSIOutput" Write-Host -ForegroundColor Green "Successfully created dotnet MSI - $DotnetMSIOutput"
Write-Host -ForegroundColor Green "Successfully created dotnet bundle - $DotnetBundleOutput" Write-Host -ForegroundColor Green "Successfully created dotnet bundle - $DotnetBundleOutput"
_ $PSScriptRoot\testmsi.ps1 @("$DotnetMSIOutput") _ $RepoRoot\test\Installer\testmsi.ps1 @("$DotnetMSIOutput")
$PublishScript = Join-Path $PSScriptRoot "..\..\scripts\publish\publish.ps1" $PublishScript = Join-Path $PSScriptRoot "..\..\scripts\publish\publish.ps1"
& $PublishScript -file $DotnetMSIOutput & $PublishScript -file $DotnetMSIOutput

View file

@ -21,6 +21,7 @@ if(!(Test-Path $inputMsi))
} }
$env:CLI_MSI=$inputMsi $env:CLI_MSI=$inputMsi
$testDir="$PSScriptRoot\Dotnet.Cli.Msi.Tests"
$testBin="$RepoRoot\artifacts\tests\Dotnet.Cli.Msi.Tests" $testBin="$RepoRoot\artifacts\tests\Dotnet.Cli.Msi.Tests"
$xunitRunner="$env:USERPROFILE\.dnx\packages\xunit.runner.console\2.1.0\tools\xunit.console.exe" $xunitRunner="$env:USERPROFILE\.dnx\packages\xunit.runner.console\2.1.0\tools\xunit.console.exe"
@ -29,7 +30,7 @@ pushd "$Stage2Dir\bin"
try { try {
.\dotnet restore ` .\dotnet restore `
--runtime win-anycpu ` --runtime win-anycpu `
$RepoRoot\packaging\windows\Dotnet.Cli.Msi.Tests\project.json ` $testDir `
-f https://www.myget.org/F/dotnet-buildtools/api/v3/index.json | Out-Host -f https://www.myget.org/F/dotnet-buildtools/api/v3/index.json | Out-Host
if($LastExitCode -ne 0) if($LastExitCode -ne 0)
@ -41,7 +42,7 @@ try {
--framework net46 ` --framework net46 `
--runtime win-anycpu ` --runtime win-anycpu `
--output $testBin ` --output $testBin `
$RepoRoot\packaging\windows\Dotnet.Cli.Msi.Tests\project.json | Out-Host $testDir | Out-Host
if($LastExitCode -ne 0) if($LastExitCode -ne 0)
{ {