-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move last reference to VcpkgPaths from unit tests into e2e test (#324)
* Move last reference to VcpkgPaths from unit tests into e2e test * Remove VCPKG_ROOT from unit tests in pipelines * Address CR feedback
- Loading branch information
1 parent
23a5f63
commit e49443d
Showing
5 changed files
with
40 additions
and
58 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
azure-pipelines/end-to-end-tests-dir/manifest-reserialize.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
. "$PSScriptRoot/../end-to-end-tests-prelude.ps1" | ||
|
||
Write-Trace "test re-serializing every manifest" | ||
$manifestDir = "$TestingRoot/manifest-dir" | ||
New-Item -Path $manifestDir -ItemType Directory | Out-Null | ||
|
||
$ports = Get-ChildItem "$env:VCPKG_ROOT/ports" | ||
|
||
$ports | % { | ||
if (Test-Path "$_/vcpkg.json") { | ||
Copy-Item "$_/vcpkg.json" "$manifestDir" | Out-Null | ||
$x = Get-Content "$manifestDir/vcpkg.json" -Raw | ||
Run-Vcpkg -EndToEndTestSilent format-manifest "$manifestDir/vcpkg.json" | Out-Null | ||
Throw-IfFailed "$_/vcpkg.json" | ||
$y = Get-Content "$manifestDir/vcpkg.json" -Raw | ||
if ($x -ne $y) { | ||
throw "Expected formatting manifest $_/vcpkg.json to cause no modifications" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters