mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 03:29:07 +08:00
c898283a41
* [vcpkg registries] support versions This PR merges the Registries changes and the versioning changes, so that one can use both at the same time. There is one major difference between this PR and the RFC (#13590), which is that instead of version files looking like: ```json [ ... ] ``` version files look like: ``` { "versions": [ ... ] } ``` this is to support interop between this PR and existing demos and the like; fixing this, along with perhaps renaming `port_versions` to `port-versions` should be done after this is merged, should be a trivial change.
29 lines
1.6 KiB
PowerShell
29 lines
1.6 KiB
PowerShell
if (-not $IsLinux -and -not $IsMacOS) {
|
|
. $PSScriptRoot/../end-to-end-tests-prelude.ps1
|
|
|
|
# Test msbuild props and targets
|
|
$Script:CurrentTest = "zlib:x86-windows-static msbuild scripts\testing\integrate-install\..."
|
|
Write-Host $Script:CurrentTest
|
|
./vcpkg $commonArgs install zlib:x86-windows-static --x-binarysource=clear
|
|
Throw-IfFailed
|
|
foreach ($project in @("VcpkgTriplet", "VcpkgTriplet2", "VcpkgUseStatic", "VcpkgUseStatic2")) {
|
|
$Script: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
|
|
}
|
|
$Script:CurrentTest = "zlib:x86-windows msbuild scripts\testing\integrate-install\..."
|
|
Write-Host $Script:CurrentTest
|
|
./vcpkg $commonArgs install zlib:x86-windows --x-binarysource=clear
|
|
Throw-IfFailed
|
|
foreach ($project in @("Project1", "NoProps")) {
|
|
$Script:CurrentTest = "msbuild scripts\testing\integrate-install\$project.vcxproj"
|
|
Write-Host $Script: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
|
|
}
|
|
}
|