diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wix/test/WixToolsetTest.CoreIntegration/SigningFixture.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/wix/test/WixToolsetTest.CoreIntegration/SigningFixture.cs b/src/wix/test/WixToolsetTest.CoreIntegration/SigningFixture.cs index 1da449fd..8fe73e5d 100644 --- a/src/wix/test/WixToolsetTest.CoreIntegration/SigningFixture.cs +++ b/src/wix/test/WixToolsetTest.CoreIntegration/SigningFixture.cs | |||
| @@ -120,6 +120,47 @@ namespace WixToolsetTest.CoreIntegration | |||
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | [Fact] | 122 | [Fact] |
| 123 | public void CanInscribe64BitBundle() | ||
| 124 | { | ||
| 125 | var folder = TestData.Get(@"TestData", "SimpleBundle"); | ||
| 126 | var signedFolder = TestData.Get(@"TestData", ".Data"); | ||
| 127 | |||
| 128 | using (var fs = new DisposableFileSystem()) | ||
| 129 | { | ||
| 130 | var baseFolder = fs.GetFolder(); | ||
| 131 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 132 | var exePath = Path.Combine(baseFolder, @"bin\test.exe"); | ||
| 133 | var signedExe = Path.Combine(intermediateFolder, @"signed.exe"); | ||
| 134 | var reattachedExe = Path.Combine(baseFolder, @"bin\final.exe"); | ||
| 135 | |||
| 136 | var result = WixRunner.Execute(new[] | ||
| 137 | { | ||
| 138 | "build", | ||
| 139 | Path.Combine(folder, "Bundle.wxs"), | ||
| 140 | "-platform", "x64", | ||
| 141 | "-loc", Path.Combine(folder, "Bundle.en-us.wxl"), | ||
| 142 | "-bindpath", Path.Combine(folder, "data"), | ||
| 143 | "-bindpath", signedFolder, | ||
| 144 | "-intermediateFolder", intermediateFolder, | ||
| 145 | "-o", exePath, | ||
| 146 | }); | ||
| 147 | |||
| 148 | result.AssertSuccess(); | ||
| 149 | |||
| 150 | result = WixRunner.Execute(new[] | ||
| 151 | { | ||
| 152 | "burn", | ||
| 153 | "detach", | ||
| 154 | exePath, | ||
| 155 | "-engine", signedExe | ||
| 156 | }); | ||
| 157 | |||
| 158 | result.AssertSuccess(); | ||
| 159 | Assert.True(File.Exists(signedExe)); | ||
| 160 | } | ||
| 161 | } | ||
| 162 | |||
| 163 | [Fact] | ||
| 123 | public void CanInscribeUncompressedBundle() | 164 | public void CanInscribeUncompressedBundle() |
| 124 | { | 165 | { |
| 125 | var folder = TestData.Get(@"TestData", "BundleUncompressed"); | 166 | var folder = TestData.Get(@"TestData", "BundleUncompressed"); |
