diff options
Diffstat (limited to 'src/internal/WixInternal.TestSupport/Builder.cs')
-rw-r--r-- | src/internal/WixInternal.TestSupport/Builder.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/internal/WixInternal.TestSupport/Builder.cs b/src/internal/WixInternal.TestSupport/Builder.cs index 51b7bb0a..eec51797 100644 --- a/src/internal/WixInternal.TestSupport/Builder.cs +++ b/src/internal/WixInternal.TestSupport/Builder.cs | |||
@@ -100,7 +100,7 @@ namespace WixInternal.TestSupport | |||
100 | } | 100 | } |
101 | } | 101 | } |
102 | 102 | ||
103 | public void BuildAndDecompileAndBuild(Action<string[]> buildFunc, Action<string[]> decompileFunc, string decompilePath) | 103 | public void BuildAndDecompileAndBuild(Action<string[]> buildFunc, Action<string[]> decompileFunc, string decompilePath, bool validate = false) |
104 | { | 104 | { |
105 | var sourceFiles = Directory.GetFiles(this.SourceFolder, "*.wxs"); | 105 | var sourceFiles = Directory.GetFiles(this.SourceFolder, "*.wxs"); |
106 | var wxlFiles = Directory.GetFiles(this.SourceFolder, "*.wxl"); | 106 | var wxlFiles = Directory.GetFiles(this.SourceFolder, "*.wxl"); |
@@ -145,6 +145,19 @@ namespace WixInternal.TestSupport | |||
145 | 145 | ||
146 | buildFunc(firstBuildArgs.ToArray()); | 146 | buildFunc(firstBuildArgs.ToArray()); |
147 | 147 | ||
148 | if (validate) | ||
149 | { | ||
150 | firstBuildArgs = new List<string> | ||
151 | { | ||
152 | "msi", | ||
153 | "validate", | ||
154 | "-intermediateFolder", intermediateFolder, | ||
155 | outputPath, | ||
156 | }; | ||
157 | |||
158 | buildFunc(firstBuildArgs.ToArray()); | ||
159 | } | ||
160 | |||
148 | // Decompile built output. | 161 | // Decompile built output. |
149 | var decompileArgs = new List<string> | 162 | var decompileArgs = new List<string> |
150 | { | 163 | { |