mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 11:01:06 +08:00
815396fa4e
* [vcpkg] Refactor end-to-end tests * [vcpkg] Cherry-pick x-builtin-ports-root from #14999 * [vcpkg] Move create test from unit tests to e2e Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
29 lines
1.5 KiB
PowerShell
29 lines
1.5 KiB
PowerShell
if (-not $IsLinux -and -not $IsMacOS) {
|
|
. $PSScriptRoot/../end-to-end-tests-prelude.ps1
|
|
|
|
# Test msbuild props and targets
|
|
$CurrentTest = "zlib:x86-windows-static msbuild scripts\testing\integrate-install\..."
|
|
Write-Host $CurrentTest
|
|
./vcpkg $commonArgs install zlib:x86-windows-static --x-binarysource=clear
|
|
Throw-IfFailed
|
|
foreach ($project in @("VcpkgTriplet", "VcpkgTriplet2", "VcpkgUseStatic", "VcpkgUseStatic2")) {
|
|
$CurrentTest = "msbuild scripts\testing\integrate-install\$project.vcxproj"
|
|
./vcpkg $commonArgs env "msbuild scripts\testing\integrate-install\$project.vcxproj /p:VcpkgRoot=$TestingRoot /p:IntDir=$TestingRoot\int\ /p:OutDir=$TestingRoot\out\ "
|
|
Throw-IfFailed
|
|
Remove-Item -Recurse -Force $TestingRoot\int
|
|
Remove-Item -Recurse -Force $TestingRoot\out
|
|
}
|
|
$CurrentTest = "zlib:x86-windows msbuild scripts\testing\integrate-install\..."
|
|
Write-Host $CurrentTest
|
|
./vcpkg $commonArgs install zlib:x86-windows --x-binarysource=clear
|
|
Throw-IfFailed
|
|
foreach ($project in @("Project1", "NoProps")) {
|
|
$CurrentTest = "msbuild scripts\testing\integrate-install\$project.vcxproj"
|
|
Write-Host $CurrentTest
|
|
./vcpkg $commonArgs env "msbuild scripts\testing\integrate-install\$project.vcxproj /p:VcpkgRoot=$TestingRoot /p:IntDir=$TestingRoot\int\ /p:OutDir=$TestingRoot\out\ "
|
|
Throw-IfFailed
|
|
Remove-Item -Recurse -Force $TestingRoot\int
|
|
Remove-Item -Recurse -Force $TestingRoot\out
|
|
}
|
|
}
|