mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GT-3062: updated screenshot config to extend test/integrationTest
This commit is contained in:
parent
34bf3b6585
commit
54f61b03c5
5 changed files with 16 additions and 1024 deletions
File diff suppressed because it is too large
Load diff
|
@ -29,6 +29,8 @@ dependencies {
|
|||
|
||||
// some tests use classes in Base/src/test and test.slow
|
||||
testCompile project(path: ':Base', configuration: 'testArtifacts')
|
||||
compile project(path: ':Base', configuration: 'integrationTestArtifacts')
|
||||
compile project(path: ':FunctionGraph', configuration: 'testArtifacts')
|
||||
}
|
||||
|
||||
// For Java 9, we must explicitly export references to the internal classes we are using.
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
*/
|
||||
package help.screenshot;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.awt.*;
|
||||
import java.math.BigInteger;
|
||||
|
@ -25,8 +24,7 @@ import java.util.List;
|
|||
import javax.swing.*;
|
||||
import javax.swing.border.TitledBorder;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.*;
|
||||
|
||||
import docking.widgets.indexedscrollpane.IndexedScrollPane;
|
||||
import generic.test.TestUtils;
|
||||
|
@ -69,7 +67,7 @@ public class RepositoryScreenShots extends AbstractListingMergeManagerTest {
|
|||
super();
|
||||
}
|
||||
|
||||
// FIXME: JUnit4 ??
|
||||
@Before
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
@ -78,7 +76,7 @@ public class RepositoryScreenShots extends AbstractListingMergeManagerTest {
|
|||
env = mtf.getTestEnvironment();
|
||||
}
|
||||
|
||||
// FIXME: JUnit4 ??
|
||||
@After
|
||||
@Override
|
||||
public void tearDown() throws Exception {
|
||||
mtfGenerator.showResults();
|
||||
|
|
|
@ -339,6 +339,10 @@ public class FrontEndTestEnv {
|
|||
return new ArrayList<>(Arrays.asList(tools));
|
||||
}
|
||||
|
||||
public Set<DockingActionIf> getFrontEndActions() {
|
||||
return AbstractDockingTest.getActionsByOwner(frontEndTool, "FrontEndPlugin");
|
||||
}
|
||||
|
||||
public DockingActionIf getAction(String actionName) {
|
||||
DockingActionIf action =
|
||||
AbstractDockingTest.getAction(frontEndTool, "FrontEndPlugin", actionName);
|
||||
|
@ -409,7 +413,7 @@ public class FrontEndTestEnv {
|
|||
waitForTasks();
|
||||
}
|
||||
|
||||
protected void editProgram(Program program, ModifyProgramCallback modifyProgramCallback)
|
||||
public void editProgram(Program program, ModifyProgramCallback modifyProgramCallback)
|
||||
throws CancelledException, IOException {
|
||||
int transactionID = program.startTransaction("test");
|
||||
try {
|
||||
|
@ -424,7 +428,7 @@ public class FrontEndTestEnv {
|
|||
}
|
||||
}
|
||||
|
||||
protected void editProgram(DomainFile df, Object consumer, ModifyProgramCallback edit)
|
||||
public void editProgram(DomainFile df, Object consumer, ModifyProgramCallback edit)
|
||||
throws Exception {
|
||||
|
||||
Program program = (Program) df.getDomainObject(this, true, false, TaskMonitor.DUMMY);
|
||||
|
@ -438,7 +442,7 @@ public class FrontEndTestEnv {
|
|||
}
|
||||
}
|
||||
|
||||
interface ModifyProgramCallback {
|
||||
public interface ModifyProgramCallback {
|
||||
public void call(Program p) throws Exception;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,8 +79,8 @@ sourceSets {
|
|||
screenShots {
|
||||
java {
|
||||
srcDir 'src/screen/java'
|
||||
compileClasspath += main.output
|
||||
runtimeClasspath += main.output
|
||||
compileClasspath += main.output + test.output + integrationTest.output
|
||||
runtimeClasspath += main.output + test.output + integrationTest.output
|
||||
}
|
||||
}
|
||||
pcodeTest {
|
||||
|
@ -107,6 +107,7 @@ configurations {
|
|||
pcodeTestCompile.extendsFrom compile
|
||||
testArtifacts.extendsFrom testRuntime
|
||||
integrationTestArtifacts.extendsFrom integrationTestRuntime
|
||||
screenShotsCompile.extendsFrom integrationTestCompile
|
||||
}
|
||||
|
||||
task testJar(type: Jar) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue