|
28 | 28 |
|
29 | 29 | import io.sloeber.autoBuild.api.AutoBuildProject;
|
30 | 30 | import io.sloeber.autoBuild.api.IAutoBuildConfigurationDescription;
|
| 31 | +import io.sloeber.autoBuild.api.IToolProvider; |
| 32 | +import io.sloeber.autoBuild.api.IToolProviderManager; |
31 | 33 | import io.sloeber.autoBuild.extensionPoint.providers.MakeRule;
|
32 | 34 | import io.sloeber.autoBuild.extensionPoint.providers.MakeRules;
|
33 | 35 | import io.sloeber.autoBuild.helpers.Shared;
|
|
40 | 42 | public class regression {
|
41 | 43 | static private String extensionPointID = "io.sloeber.autoBuild.buildDefinitions";
|
42 | 44 | static int testCounter = 1;
|
| 45 | + static IToolProvider toolprovider = IToolProviderManager.getDefault().getAnyToolProvider(); |
43 | 46 |
|
44 | 47 | @BeforeAll
|
45 | 48 | public static void beforeAll() {
|
@@ -72,7 +75,7 @@ public void createCloseOpenProject() throws Exception {
|
72 | 75 |
|
73 | 76 | IProject testProject = AutoBuildProject.createProject(projectName, extensionPointID, "cdt.cross.gnu",
|
74 | 77 | "cdt.managedbuild.target.gnu.cross.exe", CCProjectNature.CC_NATURE_ID,
|
75 |
| - new TemplateTestCodeProvider("exe"), false, null); |
| 78 | + new TemplateTestCodeProvider("exe"), toolprovider, false, null); |
76 | 79 |
|
77 | 80 | //Build all the configurations and verify proper building
|
78 | 81 | Shared.buildAndVerifyProjectUsingActivConfig(testProject, null);
|
@@ -111,7 +114,7 @@ public void setBuilder() throws Exception {
|
111 | 114 |
|
112 | 115 | IProject testProject = AutoBuildProject.createProject(projectName, extensionPointID, "cdt.cross.gnu",
|
113 | 116 | "cdt.managedbuild.target.gnu.cross.exe", CCProjectNature.CC_NATURE_ID,
|
114 |
| - new TemplateTestCodeProvider("exe"), false, null); |
| 117 | + new TemplateTestCodeProvider("exe"), toolprovider, false, null); |
115 | 118 |
|
116 | 119 | //Build the active configuration and verify proper building
|
117 | 120 | Shared.BuildAndVerifyActiveConfig(testProject);
|
@@ -169,7 +172,7 @@ void testOptions(String optionID, String optionValue, String commandContribution
|
169 | 172 | if (testProject == null || !testProject.exists()) {
|
170 | 173 | testProject = AutoBuildProject.createProject(projectName, extensionPointID, "io.sloeber.autoBuild.test",
|
171 | 174 | "io.sloeber.autoBuild.projectType.test.options", CCProjectNature.CC_NATURE_ID,
|
172 |
| - new TemplateTestCodeProvider("exe"), false, null); |
| 175 | + new TemplateTestCodeProvider("exe"), toolprovider, false, null); |
173 | 176 | }
|
174 | 177 |
|
175 | 178 | //get the project and autobuild configurations
|
|
0 commit comments