diff options
| author | chris_bednarski <Chris.Bednarski@minfos.com.au> | 2023-08-13 11:34:57 +1000 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2023-08-19 18:08:09 -0400 |
| commit | febb9c943d6c6c0db3a660de6f96b7d9f5941b1a (patch) | |
| tree | 3fe6673016b6edc7399c594842dbf7f1460d0335 /src/test/msi/TestData | |
| parent | 6f520b9def48f302625906ad961e1afa28edb3d0 (diff) | |
| download | wix-febb9c943d6c6c0db3a660de6f96b7d9f5941b1a.tar.gz wix-febb9c943d6c6c0db3a660de6f96b7d9f5941b1a.tar.bz2 wix-febb9c943d6c6c0db3a660de6f96b7d9f5941b1a.zip | |
add integration tests for the firewall extenstion
Diffstat (limited to 'src/test/msi/TestData')
| -rw-r--r-- | src/test/msi/TestData/FirewallExtensionTests/FirewallRules/FirewallRules.wixproj | 13 | ||||
| -rw-r--r-- | src/test/msi/TestData/FirewallExtensionTests/FirewallRules/product.wxs | 23 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/test/msi/TestData/FirewallExtensionTests/FirewallRules/FirewallRules.wixproj b/src/test/msi/TestData/FirewallExtensionTests/FirewallRules/FirewallRules.wixproj new file mode 100644 index 00000000..b1770b0f --- /dev/null +++ b/src/test/msi/TestData/FirewallExtensionTests/FirewallRules/FirewallRules.wixproj | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
| 2 | <Project Sdk="WixToolset.Sdk"> | ||
| 3 | <PropertyGroup> | ||
| 4 | <UpgradeCode>{4D188568-1CCF-4EEE-BC27-17C3DCC83E58}</UpgradeCode> | ||
| 5 | <ProductComponentsRef>true</ProductComponentsRef> | ||
| 6 | </PropertyGroup> | ||
| 7 | <ItemGroup> | ||
| 8 | <Compile Include="..\..\Templates\Product.wxs" Link="Product.wxs" /> | ||
| 9 | </ItemGroup> | ||
| 10 | <ItemGroup> | ||
| 11 | <PackageReference Include="WixToolset.Firewall.wixext" /> | ||
| 12 | </ItemGroup> | ||
| 13 | </Project> \ No newline at end of file | ||
diff --git a/src/test/msi/TestData/FirewallExtensionTests/FirewallRules/product.wxs b/src/test/msi/TestData/FirewallExtensionTests/FirewallRules/product.wxs new file mode 100644 index 00000000..e8ce54bf --- /dev/null +++ b/src/test/msi/TestData/FirewallExtensionTests/FirewallRules/product.wxs | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
| 2 | |||
| 3 | |||
| 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:fw="http://wixtoolset.org/schemas/v4/wxs/firewall"> | ||
| 5 | <Fragment> | ||
| 6 | <ComponentGroup Id="ProductComponents"> | ||
| 7 | <ComponentRef Id="FirewallComponent1"/> | ||
| 8 | </ComponentGroup> | ||
| 9 | </Fragment> | ||
| 10 | |||
| 11 | <Fragment> | ||
| 12 | <Component Id="FirewallComponent1" Guid="A2E492E7-7350-4F77-8424-1FE94553D776" Directory="INSTALLFOLDER"> | ||
| 13 | <File Source="$(sys.SOURCEFILEPATH)" KeyPath="yes" > | ||
| 14 | <fw:FirewallException Id="FirewallException1" | ||
| 15 | Description="WiX Toolset firewall exception rule integration test - minimal app properties" | ||
| 16 | Name="WiXToolset401 Test - 0001" Scope="any" /> | ||
| 17 | </File> | ||
| 18 | <fw:FirewallException Id="FirewallException2" | ||
| 19 | Description="WiX Toolset firewall exception rule integration test - minimal port properties" | ||
| 20 | Name="WiXToolset401 Test - 0002" Scope="any" Port="23456"/> | ||
| 21 | </Component> | ||
| 22 | </Fragment> | ||
| 23 | </Wix> | ||
