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 30, 2024
1 parent 5e43b9f commit 3ba02ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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,12 @@ 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-1,no-default-features-3]"
Run-Vcpkg install @noDefaultFeatureArgs --x-feature=no-default-features-1 --x-feature=no-default-features-3
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 3ba02ce

Please sign in to comment.