Skip to content

Commit

Permalink
Improve extensibility of NativeTestBase
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwvj committed Feb 2, 2017
1 parent 9b67af0 commit 74be6d0
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ protected void generate(String... paths)
}

}

List<String> args = buildArgs(paths);

CGenMain.main(args.toArray(new String[] {}));
}

protected List<String> buildArgs(String... paths)
{
List<String> args = new Vector<String>(Arrays.asList(new String[] {
"--quiet", "-dest", root.getAbsolutePath() }));
args.addAll(Arrays.asList(paths));
Expand All @@ -109,8 +117,7 @@ protected void generate(String... paths)
args.add("-formatter");
args.add(System.getProperty(FORMATTER));
}

CGenMain.main(args.toArray(new String[] {}));
return args;
}

protected void compileAndTest(File... tests) throws IOException,
Expand Down

0 comments on commit 74be6d0

Please sign in to comment.