* @throws IOException
*/
@Test
public void catalogCompilerRunner() throws IOException {
File script = TestDataProvider.getTestFile("testData/mock-output.sh");
PuppetCatalogCompilerRunner compiler = new PuppetCatalogCompilerRunner(script.getAbsolutePath());
int result = compiler.compileCatalog(
new File("foo"), null, "bar", new File("baz"), SubMonitor.convert(null, 10000));
assertEquals("Should have 0 exit status", 0, result);
List<CatalogDiagnostic> diagnostics = compiler.getDiagnostics();
assertEquals("Should have found n diagnostics", 3, diagnostics.size());
int i = 1;
boolean parseErrorSeen = false;
for(CatalogDiagnostic d : diagnostics) {
String s = d.getFile().getName();