List of usage examples for org.eclipse.jdt.core.tests.performance FullSourceWorkspaceTests tearDown
protected void tearDown() throws Exception
From source file:org.dacapo.eclipse.BenchmarkRunner.java
License:Open Source License
public Object start(IApplicationContext context) throws Exception { boolean large = false, unzip = false, setup = false, index = false, build = false, hierarchy = false, ast = false, complete = false, search = false, format = false, model = false, teardown = false; String[] args = (String[]) context.getArguments().get(IApplicationContext.APPLICATION_ARGS); for (int i = 0; i < args.length; i++) { String arg = args[i];//from www . j a va 2 s . c o m if (arg.equals("large")) { large = true; } else if (arg.equals("unzip")) { unzip = true; } else if (arg.equals("setup")) { setup = true; } else if (arg.equals("index")) { index = true; } else if (arg.equals("build")) { build = true; } else if (arg.equals("hierarchy")) { hierarchy = true; } else if (arg.equals("ast")) { ast = true; } else if (arg.equals("complete")) { complete = true; } else if (arg.equals("search")) { search = true; } else if (arg.equals("format")) { format = true; } else if (arg.equals("model")) { model = true; } else if (arg.equals("teardown")) { teardown = true; } else if (arg.equals("all")) { unzip = setup = index = search = build = hierarchy = ast = complete = format = model = teardown = true; } else if (arg.equals("alltests")) { index = search = build = hierarchy = ast = complete = format = model = true; } } if (unzip) { FullSourceWorkspaceTests.unzipWorkSpace(large); } if (setup) { FullSourceWorkspaceTests.setup(large); } if (index) { FullSourceWorkspaceSearchTests.runDaCapoTests(); } if (build) { FullSourceWorkspaceBuildTests.runDaCapoTests(); } if (search) { FullSourceWorkspaceCompleteSearchTests.runDaCapoTests(); } if (hierarchy) { FullSourceWorkspaceTypeHierarchyTests.runDaCapoTests(); } if (ast) { FullSourceWorkspaceASTTests.runDaCapoTests(); } if (complete) { FullSourceWorkspaceCompletionTests.runDaCapoTests(); } if (format) { FullSourceWorkspaceFormatterTests.runDaCapoTests(); } if (model) { FullSourceWorkspaceModelTests.runDaCapoTests(); } if (teardown) { FullSourceWorkspaceTests.tearDown(); } return EXIT_OK; }