diff options
author | James Parsons <japarson@microsoft.com> | 2020-10-01 23:05:25 -0700 |
---|---|---|
committer | James Parsons <japarson@microsoft.com> | 2020-10-01 23:05:25 -0700 |
commit | af731a9631a7f7f6d7c3b2ef84f38a07bb4db211 (patch) | |
tree | 6423ab630edd94df8beb35308bd5a47bcad771aa /src/test | |
parent | 9ed6f291d49599bb12a1baa3a0e000f1e0e254cf (diff) | |
download | wix-af731a9631a7f7f6d7c3b2ef84f38a07bb4db211.tar.gz wix-af731a9631a7f7f6d7c3b2ef84f38a07bb4db211.tar.bz2 wix-af731a9631a7f7f6d7c3b2ef84f38a07bb4db211.zip |
Split up latest package and individual packages. Make corresponding changes to tests.
Diffstat (limited to 'src/test')
6 files changed, 86 insertions, 6 deletions
diff --git a/src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs b/src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs index 845e1373..c9391074 100644 --- a/src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs +++ b/src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs | |||
@@ -12,6 +12,56 @@ namespace WixToolsetTest.Netfx | |||
12 | public class NetfxExtensionFixture | 12 | public class NetfxExtensionFixture |
13 | { | 13 | { |
14 | [Fact] | 14 | [Fact] |
15 | public void CanBuildUsingLatestDotNetCorePackages() | ||
16 | { | ||
17 | using (var fs = new DisposableFileSystem()) | ||
18 | { | ||
19 | var baseFolder = fs.GetFolder(); | ||
20 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
21 | var bundleSourceFolder = TestData.Get(@"TestData\UsingDotNetCorePackages"); | ||
22 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
23 | |||
24 | var compileResult = WixRunner.Execute(new[] | ||
25 | { | ||
26 | "build", | ||
27 | Path.Combine(bundleSourceFolder, "BundleLatest.wxs"), | ||
28 | "-ext", TestData.Get(@"WixToolset.Bal.wixext.dll"), | ||
29 | "-ext", TestData.Get(@"WixToolset.Netfx.wixext.dll"), | ||
30 | "-intermediateFolder", intermediateFolder, | ||
31 | "-o", bundleFile, | ||
32 | }); | ||
33 | compileResult.AssertSuccess(); | ||
34 | |||
35 | Assert.True(File.Exists(bundleFile)); | ||
36 | } | ||
37 | } | ||
38 | |||
39 | [Fact] | ||
40 | public void CanBuildUsingLatestDotNetCorePackages_X64() | ||
41 | { | ||
42 | using (var fs = new DisposableFileSystem()) | ||
43 | { | ||
44 | var baseFolder = fs.GetFolder(); | ||
45 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
46 | var bundleSourceFolder = TestData.Get(@"TestData\UsingDotNetCorePackages"); | ||
47 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
48 | |||
49 | var compileResult = WixRunner.Execute(new[] | ||
50 | { | ||
51 | "build", | ||
52 | Path.Combine(bundleSourceFolder, "BundleLatest_x64.wxs"), | ||
53 | "-ext", TestData.Get(@"WixToolset.Bal.wixext.dll"), | ||
54 | "-ext", TestData.Get(@"WixToolset.Netfx.wixext.dll"), | ||
55 | "-intermediateFolder", intermediateFolder, | ||
56 | "-o", bundleFile, | ||
57 | }); | ||
58 | compileResult.AssertSuccess(); | ||
59 | |||
60 | Assert.True(File.Exists(bundleFile)); | ||
61 | } | ||
62 | } | ||
63 | |||
64 | [Fact] | ||
15 | public void CanBuildUsingDotNetCorePackages() | 65 | public void CanBuildUsingDotNetCorePackages() |
16 | { | 66 | { |
17 | using (var fs = new DisposableFileSystem()) | 67 | using (var fs = new DisposableFileSystem()) |
diff --git a/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/Bundle.wxs b/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/Bundle.wxs index 49e8c022..d746226e 100644 --- a/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/Bundle.wxs +++ b/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/Bundle.wxs | |||
@@ -6,9 +6,9 @@ | |||
6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" /> | 6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" /> |
7 | </BootstrapperApplicationRef> | 7 | </BootstrapperApplicationRef> |
8 | <Chain> | 8 | <Chain> |
9 | <PackageGroupRef Id="AspNetCoreRuntime31Redist_x86" /> | 9 | <PackageGroupRef Id="AspNetCoreRuntime318Redist_x86" /> |
10 | <PackageGroupRef Id="DesktopNetCoreRuntime31Redist_x86" /> | 10 | <PackageGroupRef Id="DesktopNetCoreRuntime318Redist_x86" /> |
11 | <PackageGroupRef Id="DotNetCoreRuntime31Redist_x86" /> | 11 | <PackageGroupRef Id="DotNetCoreRuntime318Redist_x86" /> |
12 | </Chain> | 12 | </Chain> |
13 | </Bundle> | 13 | </Bundle> |
14 | </Wix> | 14 | </Wix> |
diff --git a/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/BundleLatest.wxs b/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/BundleLatest.wxs new file mode 100644 index 00000000..49e8c022 --- /dev/null +++ b/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/BundleLatest.wxs | |||
@@ -0,0 +1,14 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
4 | <Bundle Name="WixStdBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="75D5D534-E177-4689-AAE9-CAC1C39002C2"> | ||
5 | <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense"> | ||
6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" /> | ||
7 | </BootstrapperApplicationRef> | ||
8 | <Chain> | ||
9 | <PackageGroupRef Id="AspNetCoreRuntime31Redist_x86" /> | ||
10 | <PackageGroupRef Id="DesktopNetCoreRuntime31Redist_x86" /> | ||
11 | <PackageGroupRef Id="DotNetCoreRuntime31Redist_x86" /> | ||
12 | </Chain> | ||
13 | </Bundle> | ||
14 | </Wix> | ||
diff --git a/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/BundleLatest_x64.wxs b/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/BundleLatest_x64.wxs new file mode 100644 index 00000000..09c7bcdd --- /dev/null +++ b/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/BundleLatest_x64.wxs | |||
@@ -0,0 +1,14 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
4 | <Bundle Name="WixStdBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="75D5D534-E177-4689-AAE9-CAC1C39002C2"> | ||
5 | <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense"> | ||
6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" /> | ||
7 | </BootstrapperApplicationRef> | ||
8 | <Chain> | ||
9 | <PackageGroupRef Id="AspNetCoreRuntime31Redist_x64" /> | ||
10 | <PackageGroupRef Id="DesktopNetCoreRuntime31Redist_x64" /> | ||
11 | <PackageGroupRef Id="DotNetCoreRuntime31Redist_x64" /> | ||
12 | </Chain> | ||
13 | </Bundle> | ||
14 | </Wix> | ||
diff --git a/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/Bundle_x64.wxs b/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/Bundle_x64.wxs index 09c7bcdd..4d1ba73e 100644 --- a/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/Bundle_x64.wxs +++ b/src/test/WixToolsetTest.Netfx/TestData/UsingDotNetCorePackages/Bundle_x64.wxs | |||
@@ -6,9 +6,9 @@ | |||
6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" /> | 6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" /> |
7 | </BootstrapperApplicationRef> | 7 | </BootstrapperApplicationRef> |
8 | <Chain> | 8 | <Chain> |
9 | <PackageGroupRef Id="AspNetCoreRuntime31Redist_x64" /> | 9 | <PackageGroupRef Id="AspNetCoreRuntime318Redist_x64" /> |
10 | <PackageGroupRef Id="DesktopNetCoreRuntime31Redist_x64" /> | 10 | <PackageGroupRef Id="DesktopNetCoreRuntime318Redist_x64" /> |
11 | <PackageGroupRef Id="DotNetCoreRuntime31Redist_x64" /> | 11 | <PackageGroupRef Id="DotNetCoreRuntime318Redist_x64" /> |
12 | </Chain> | 12 | </Chain> |
13 | </Bundle> | 13 | </Bundle> |
14 | </Wix> | 14 | </Wix> |
diff --git a/src/test/WixToolsetTest.Netfx/WixToolsetTest.Netfx.csproj b/src/test/WixToolsetTest.Netfx/WixToolsetTest.Netfx.csproj index 1df84972..a9e5cd2b 100644 --- a/src/test/WixToolsetTest.Netfx/WixToolsetTest.Netfx.csproj +++ b/src/test/WixToolsetTest.Netfx/WixToolsetTest.Netfx.csproj | |||
@@ -14,6 +14,8 @@ | |||
14 | <ItemGroup> | 14 | <ItemGroup> |
15 | <Content Include="TestData\UsingDotNetCorePackages\Bundle.wxs" CopyToOutputDirectory="PreserveNewest" /> | 15 | <Content Include="TestData\UsingDotNetCorePackages\Bundle.wxs" CopyToOutputDirectory="PreserveNewest" /> |
16 | <Content Include="TestData\UsingDotNetCorePackages\Bundle_x64.wxs" CopyToOutputDirectory="PreserveNewest" /> | 16 | <Content Include="TestData\UsingDotNetCorePackages\Bundle_x64.wxs" CopyToOutputDirectory="PreserveNewest" /> |
17 | <Content Include="TestData\UsingDotNetCorePackages\BundleLatest.wxs" CopyToOutputDirectory="PreserveNewest" /> | ||
18 | <Content Include="TestData\UsingDotNetCorePackages\BundleLatest_x64.wxs" CopyToOutputDirectory="PreserveNewest" /> | ||
17 | <Content Include="TestData\UsingNativeImage\example.txt" CopyToOutputDirectory="PreserveNewest" /> | 19 | <Content Include="TestData\UsingNativeImage\example.txt" CopyToOutputDirectory="PreserveNewest" /> |
18 | <Content Include="TestData\UsingNativeImage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" /> | 20 | <Content Include="TestData\UsingNativeImage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" /> |
19 | <Content Include="TestData\UsingNativeImage\Package.wxs" CopyToOutputDirectory="PreserveNewest" /> | 21 | <Content Include="TestData\UsingNativeImage\Package.wxs" CopyToOutputDirectory="PreserveNewest" /> |