You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw'base-port should not be installed for the host'
22
18
}
23
-
if (-not ($ErrorOutput.Contains("REGRESSION: not-sup-host-b:${Triplet} is marked as fail but not supported for ${Triplet}."))) {
24
-
throw"feature-not-sup's baseline fail entry should result in a regression because the port is not supported"
25
-
}
26
-
if (-not ($ErrorOutput.Contains("REGRESSION: dep-on-feature-not-sup:${Triplet} is marked as fail but one dependency is not supported for ${Triplet}."))) {
27
-
throw"feature-not-sup's baseline fail entry should result in a regression because the port is cascade for this triplet"
28
-
}
19
+
Throw-IfNonContains -Actual $Output-Expected @"
20
+
SUMMARY FOR $Triplet
21
+
CASCADED_DUE_TO_MISSING_DEPENDENCIES: 1
22
+
EXCLUDED_BY_DRY_RUN: 3
23
+
UNSUPPORTED: 1
24
+
"@
25
+
# feature-not-sup's baseline fail entry should result in a regression because the port is not supported
26
+
Throw-IfNonContains -Actual $ErrorOutput-Expected "REGRESSION: not-sup-host-b:${Triplet} is marked as fail but not supported for ${Triplet}."
27
+
# feature-not-sup's baseline fail entry should result in a regression because the port is cascade for this triplet
28
+
Throw-IfNonContains -Actual $ErrorOutput-Expected "REGRESSION: dep-on-feature-not-sup:${Triplet} is marked as fail but one dependency is not supported for ${Triplet}."
29
29
30
30
# pass means pass
31
-
$Output=Run-VcpkgAndCaptureOutput ci --dry-run --triplet=$Triplet--x-builtin-ports-root="$PSScriptRoot/../e2e-ports/ci"--binarysource=clear --ci-baseline="$PSScriptRoot/../e2e-assets/ci/ci.baseline.txt"
31
+
Run-Vcpkg ci --dry-run --triplet=$Triplet--x-builtin-ports-root="$PSScriptRoot/../e2e-ports/ci"--binarysource=clear --ci-baseline="$PSScriptRoot/../e2e-assets/ci/ci.baseline.txt"
32
32
Throw-IfNotFailed
33
33
$ErrorOutput= Run-VcpkgAndCaptureStdErr ci --dry-run --triplet=$Triplet--x-builtin-ports-root="$PSScriptRoot/../e2e-ports/ci"--binarysource=clear --ci-baseline="$PSScriptRoot/../e2e-assets/ci/ci.pass.baseline.txt"
34
34
Throw-IfNotFailed
35
-
if (-not ($ErrorOutput.Contains("REGRESSION: not-sup-host-b:${Triplet} is marked as pass but not supported for ${Triplet}."))) {
36
-
throw"feature-not-sup's baseline pass entry should result in a regression because the port is not supported"
37
-
}
38
-
if (-not ($ErrorOutput.Contains("REGRESSION: dep-on-feature-not-sup:${Triplet} is marked as pass but one dependency is not supported for ${Triplet}."))) {
39
-
throw"feature-not-sup's baseline pass entry should result in a regression because the port is cascade for this triplet"
40
-
}
35
+
# feature-not-sup's baseline pass entry should result in a regression because the port is not supported
36
+
Throw-IfNonContains -Actual $ErrorOutput-Expected "REGRESSION: not-sup-host-b:${Triplet} is marked as pass but not supported for ${Triplet}."
37
+
# feature-not-sup's baseline pass entry should result in a regression because the port is cascade for this triplet
38
+
Throw-IfNonContains -Actual $ErrorOutput-Expected "REGRESSION: dep-on-feature-not-sup:${Triplet} cascaded, but it is required to pass. ("
41
39
42
40
# any invalid manifest must raise an error
43
-
$Output= Run-VcpkgAndCaptureOutput ci --dry-run --triplet=$Triplet--x-builtin-ports-root="$PSScriptRoot/../e2e-ports/broken-manifests"--binarysource=clear --ci-baseline="$PSScriptRoot/../e2e-assets/ci/ci.baseline.txt"
41
+
Remove-Problem-Matchers
42
+
Run-Vcpkg ci --dry-run --triplet=$Triplet--x-builtin-ports-root="$PSScriptRoot/../e2e-ports/broken-manifests"--binarysource=clear --ci-baseline="$PSScriptRoot/../e2e-assets/ci/ci.baseline.txt"
43
+
Restore-Problem-Matchers
44
44
Throw-IfNotFailed
45
45
46
46
# test malformed individual overlay port manifest
47
47
Remove-Problem-Matchers
48
48
$Output= Run-VcpkgAndCaptureOutput ci --dry-run --triplet=$Triplet--x-builtin-ports-root="$PSScriptRoot/../e2e-ports/ci"--binarysource=clear --ci-baseline="$PSScriptRoot/../e2e-assets/ci/ci.baseline.txt"--overlay-ports="$PSScriptRoot/../e2e-ports/broken-manifests/malformed"
49
49
Restore-Problem-Matchers
50
50
Throw-IfNotFailed
51
-
if (-not ($Output.Contains("vcpkg.json:3:17: error: Trailing comma"))) {
52
-
throw'malformed port manifest must raise a parsing error'
53
-
}
51
+
# malformed port manifest must raise a parsing error
$Output= Run-VcpkgAndCaptureOutput ci @commonArgs--x-builtin-ports-root="$emptyDir"--binarysource=clear --overlay-ports="$PSScriptRoot/../e2e-ports/duplicate-file-a"--overlay-ports="$PSScriptRoot/../e2e-ports/duplicate-file-b"
$Output= Run-VcpkgAndCaptureOutput ci @commonArgs--x-builtin-ports-root="$PSScriptRoot/../e2e-ports/ci"--binarysource="clear;files,$ArchiveRoot"--parent-hashes="$TestingRoot/parent-hashes.json"
88
86
Throw-IfFailed
89
-
if ($Output.Contains("base-port:${Triplet}: SUCCEEDED:")) {
0 commit comments