Skip to content

Commit

Permalink
Test transitive features within app manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Jan 29, 2024
1 parent 5e43b9f commit 0482764
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions azure-pipelines/end-to-end-tests-dir/manifests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function feature {
}

$vcpkgJson = @{
'name' = 'myapp';
'default-features' = @( 'default-fail' );
'features' = @{
'default-fail' = feature 'vcpkg-fail-if-depended-upon';
Expand All @@ -29,6 +30,10 @@ $vcpkgJson = @{
'default-features' = $False;
'features' = @( 'success' )
};
'no-default-features-3' = feature @{
'name' = 'myapp';
'default-features' = $False;
};
}
}

Expand Down Expand Up @@ -78,6 +83,9 @@ Throw-IfFailed
Write-Trace "test manifest features: no-default-features, features = [no-default-features-2]"
Run-Vcpkg install @noDefaultFeatureArgs --x-feature=no-default-features-2
Throw-IfFailed
Write-Trace "test manifest features: no-default-features, features = [no-default-features-3]"
Run-Vcpkg install @noDefaultFeatureArgs --x-feature=no-default-features-3
Throw-IfFailed

$vcpkgJson = @{
'name' = "manifest-test";
Expand Down

0 comments on commit 0482764

Please sign in to comment.