From 16f6a68d0bb1a0d5892a8cef10b835acc4e2a317 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 31 Jan 2020 21:43:14 +1100 Subject: Add failing test for compiling a WixStdBa bundle. --- src/test/WixToolsetTest.Bal/BalExtensionFixture.cs | 35 ++++++++++++++++++ .../TestData/WixStdBa/Bundle.wxs | 15 ++++++++ .../WixToolsetTest.Bal/WixToolsetTest.Bal.csproj | 42 ++++++++++++++++++++++ .../WixToolsetTest.Bal.v3.ncrunchproject | 5 +++ 4 files changed, 97 insertions(+) create mode 100644 src/test/WixToolsetTest.Bal/BalExtensionFixture.cs create mode 100644 src/test/WixToolsetTest.Bal/TestData/WixStdBa/Bundle.wxs create mode 100644 src/test/WixToolsetTest.Bal/WixToolsetTest.Bal.csproj create mode 100644 src/test/WixToolsetTest.Bal/WixToolsetTest.Bal.v3.ncrunchproject (limited to 'src') 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 @@ +// 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. + +namespace WixToolsetTest.Bal +{ + using System.IO; + using WixBuildTools.TestSupport; + using WixToolset.Core.TestPackage; + using Xunit; + + public class BalExtensionFixture + { + [Fact(Skip = "Test demonstrates failure")] + public void CanBuildUsingWixStdBa() + { + using (var fs = new DisposableFileSystem()) + { + var baseFolder = fs.GetFolder(); + var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); + var bundleSourceFolder = TestData.Get(@"TestData\WixStdBa"); + + var compileResult = WixRunner.Execute(new[] + { + "build", + Path.Combine(bundleSourceFolder, "Bundle.wxs"), + "-ext", TestData.Get(@"WixToolset.Bal.wixext.dll"), + "-burnStub", TestData.Get(@"runtimes\win-x86\native\burn.x86.exe"), + "-o", bundleFile, + }); + compileResult.AssertSuccess(); + + Assert.True(File.Exists(bundleFile)); + } + } + } +} diff --git a/src/test/WixToolsetTest.Bal/TestData/WixStdBa/Bundle.wxs b/src/test/WixToolsetTest.Bal/TestData/WixStdBa/Bundle.wxs new file mode 100644 index 00000000..3a37e8ec --- /dev/null +++ b/src/test/WixToolsetTest.Bal/TestData/WixStdBa/Bundle.wxs @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + diff --git a/src/test/WixToolsetTest.Bal/WixToolsetTest.Bal.csproj b/src/test/WixToolsetTest.Bal/WixToolsetTest.Bal.csproj new file mode 100644 index 00000000..4523346c --- /dev/null +++ b/src/test/WixToolsetTest.Bal/WixToolsetTest.Bal.csproj @@ -0,0 +1,42 @@ + + + + + + netcoreapp3.1 + false + + + + NU1701 + + + + + + + + + + + + + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/src/test/WixToolsetTest.Bal/WixToolsetTest.Bal.v3.ncrunchproject b/src/test/WixToolsetTest.Bal/WixToolsetTest.Bal.v3.ncrunchproject new file mode 100644 index 00000000..7b5b2139 --- /dev/null +++ b/src/test/WixToolsetTest.Bal/WixToolsetTest.Bal.v3.ncrunchproject @@ -0,0 +1,5 @@ + + + True + + \ No newline at end of file -- cgit v1.2.3-55-g6feb