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 4713bf9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 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,11 @@ $vcpkgJson = @{
'default-features' = $False;
'features' = @( 'success' )
};
'no-default-features-3' = feature @{
'name' = 'myapp';
'default-features' = $False;
'features' = @( 'no-default-features-1' )
};
}
}

Expand Down Expand Up @@ -78,6 +84,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 4713bf9

Please sign in to comment.