diff options
Diffstat (limited to 'src/internal/WixInternal.TestSupport/Builder.cs')
-rw-r--r-- | src/internal/WixInternal.TestSupport/Builder.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/internal/WixInternal.TestSupport/Builder.cs b/src/internal/WixInternal.TestSupport/Builder.cs index fa6e0064..78804826 100644 --- a/src/internal/WixInternal.TestSupport/Builder.cs +++ b/src/internal/WixInternal.TestSupport/Builder.cs | |||
@@ -26,6 +26,11 @@ namespace WixInternal.TestSupport | |||
26 | 26 | ||
27 | public string[] BuildAndQuery(Action<string[]> buildFunc, params string[] tables) | 27 | public string[] BuildAndQuery(Action<string[]> buildFunc, params string[] tables) |
28 | { | 28 | { |
29 | return this.BuildAndQuery(buildFunc, validate: false, tables); | ||
30 | } | ||
31 | |||
32 | public string[] BuildAndQuery(Action<string[]> buildFunc, bool validate, params string[] tables) | ||
33 | { | ||
29 | var sourceFiles = Directory.GetFiles(this.SourceFolder, "*.wxs"); | 34 | var sourceFiles = Directory.GetFiles(this.SourceFolder, "*.wxs"); |
30 | var wxlFiles = Directory.GetFiles(this.SourceFolder, "*.wxl"); | 35 | var wxlFiles = Directory.GetFiles(this.SourceFolder, "*.wxl"); |
31 | 36 | ||
@@ -63,6 +68,19 @@ namespace WixInternal.TestSupport | |||
63 | 68 | ||
64 | buildFunc(args.ToArray()); | 69 | buildFunc(args.ToArray()); |
65 | 70 | ||
71 | if (validate) | ||
72 | { | ||
73 | args = new List<string> | ||
74 | { | ||
75 | "msi", | ||
76 | "validate", | ||
77 | "-intermediateFolder", intermediateFolder, | ||
78 | outputPath, | ||
79 | }; | ||
80 | |||
81 | buildFunc(args.ToArray()); | ||
82 | } | ||
83 | |||
66 | return Query.QueryDatabase(outputPath, tables); | 84 | return Query.QueryDatabase(outputPath, tables); |
67 | } | 85 | } |
68 | } | 86 | } |