-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Don't pull in ports that causes cascades (#856)
- Loading branch information
1 parent
0dcfb79
commit 2f3a6b4
Showing
10 changed files
with
96 additions
and
9 deletions.
There are no files selected for viewing
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 @@ | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
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,4 @@ | ||
{ | ||
"name": "base-port", | ||
"version": "1" | ||
} |
1 change: 1 addition & 0 deletions
1
azure-pipelines/e2e_ports/ci/dep-on-feature-not-sup/portfile.cmake
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 @@ | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
8 changes: 8 additions & 0 deletions
8
azure-pipelines/e2e_ports/ci/dep-on-feature-not-sup/vcpkg.json
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,8 @@ | ||
{ | ||
"name": "dep-on-feature-not-sup", | ||
"version": "1", | ||
"dependencies": [{ | ||
"name": "feature-not-sup", | ||
"features": ["not-sup"] | ||
}] | ||
} |
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 @@ | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
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,11 @@ | ||
{ | ||
"name": "feature-not-sup", | ||
"version": "1", | ||
"dependencies": [], | ||
"features": { | ||
"not-sup": { | ||
"description": "not supported", | ||
"supports": "x64 & !x64" | ||
} | ||
} | ||
} |
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 @@ | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
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,9 @@ | ||
{ | ||
"name": "not-sup-host-b", | ||
"version": "1", | ||
"supports": "x64 & !x64", | ||
"dependencies": [{ | ||
"name": "base-port", | ||
"host": true | ||
}] | ||
} |
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 |
---|---|---|
@@ -1,13 +1,29 @@ | ||
. $PSScriptRoot/../end-to-end-tests-prelude.ps1 | ||
|
||
# Not a number | ||
Run-Vcpkg ci --triplet=$Triplet --x-skipped-cascade-count=fish | ||
Run-Vcpkg ci --dry-run --triplet=$Triplet --x-skipped-cascade-count=fish | ||
Throw-IfNotFailed | ||
|
||
# Negative | ||
Run-Vcpkg ci --triplet=$Triplet --x-skipped-cascade-count=-1 | ||
Run-Vcpkg ci --dry-run --triplet=$Triplet --x-skipped-cascade-count=-1 | ||
Throw-IfNotFailed | ||
|
||
# Clearly not the correct answer | ||
Run-Vcpkg ci --triplet=$Triplet --x-skipped-cascade-count=1000 | ||
Run-Vcpkg ci --dry-run --triplet=$Triplet --x-skipped-cascade-count=1000 | ||
Throw-IfNotFailed | ||
|
||
# test skipped ports | ||
$Output = Run-VcpkgAndCaptureOutput ci --dry-run --triplet=$Triplet --x-builtin-ports-root="$PSScriptRoot/../e2e_ports/ci" --binarysource=clear | ||
Throw-IfFailed | ||
if (-not ($Output.Contains("dep-on-feature-not-sup:${Triplet}: cascade"))) { | ||
throw 'dep-on-feature-not-sup must cascade because it depends on a features that is not supported' | ||
} | ||
if (-not ($Output.Contains("not-sup-host-b:${Triplet}: skip"))) { | ||
throw 'not-sup-host-b must be skipped because it is not supported' | ||
} | ||
if (-not ($Output.Contains("feature-not-sup:${Triplet}: *"))) { | ||
throw 'feature-not-sup must be build because the port that causes this port to skip should not be installed' | ||
} | ||
if ($Output.Split("*").Length -ne 3) { | ||
throw 'base-port should not be installed for the host' | ||
} |
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