diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-01-31 21:43:14 +1100 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-01-31 21:49:35 +1100 |
| commit | 16f6a68d0bb1a0d5892a8cef10b835acc4e2a317 (patch) | |
| tree | bbd973f86085ef1175d8bf03cadc2d855d3c06a1 /src/test/WixToolsetTest.Bal/BalExtensionFixture.cs | |
| parent | 08ab1a16349500606b76ba0c5d003c1c993710fb (diff) | |
| download | wix-16f6a68d0bb1a0d5892a8cef10b835acc4e2a317.tar.gz wix-16f6a68d0bb1a0d5892a8cef10b835acc4e2a317.tar.bz2 wix-16f6a68d0bb1a0d5892a8cef10b835acc4e2a317.zip | |
Add failing test for compiling a WixStdBa bundle.
Diffstat (limited to 'src/test/WixToolsetTest.Bal/BalExtensionFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.Bal/BalExtensionFixture.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.Bal/BalExtensionFixture.cs b/src/test/WixToolsetTest.Bal/BalExtensionFixture.cs new file mode 100644 index 00000000..c5a25948 --- /dev/null +++ b/src/test/WixToolsetTest.Bal/BalExtensionFixture.cs | |||
| @@ -0,0 +1,35 @@ | |||
| 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 | namespace WixToolsetTest.Bal | ||
| 4 | { | ||
| 5 | using System.IO; | ||
| 6 | using WixBuildTools.TestSupport; | ||
| 7 | using WixToolset.Core.TestPackage; | ||
| 8 | using Xunit; | ||
| 9 | |||
| 10 | public class BalExtensionFixture | ||
| 11 | { | ||
| 12 | [Fact(Skip = "Test demonstrates failure")] | ||
| 13 | public void CanBuildUsingWixStdBa() | ||
| 14 | { | ||
| 15 | using (var fs = new DisposableFileSystem()) | ||
| 16 | { | ||
| 17 | var baseFolder = fs.GetFolder(); | ||
| 18 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 19 | var bundleSourceFolder = TestData.Get(@"TestData\WixStdBa"); | ||
| 20 | |||
| 21 | var compileResult = WixRunner.Execute(new[] | ||
| 22 | { | ||
| 23 | "build", | ||
| 24 | Path.Combine(bundleSourceFolder, "Bundle.wxs"), | ||
| 25 | "-ext", TestData.Get(@"WixToolset.Bal.wixext.dll"), | ||
| 26 | "-burnStub", TestData.Get(@"runtimes\win-x86\native\burn.x86.exe"), | ||
| 27 | "-o", bundleFile, | ||
| 28 | }); | ||
| 29 | compileResult.AssertSuccess(); | ||
| 30 | |||
| 31 | Assert.True(File.Exists(bundleFile)); | ||
| 32 | } | ||
| 33 | } | ||
| 34 | } | ||
| 35 | } | ||
