mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00

GP-3754: last pass GP-3754: most review issues address (ymm0/testSave not); tests pass GP-3754: review - eval/exec GP-3754: moved registers to thread GP-3754: review pass 7 - register w/o banks GP-3754: review pass 6 - basic clean-up items GP-3754: pass 5 - tests all pass (minus commented-out ones) GP-3754: review pass 4(?) GP-3754: review pass 3 GP-3754: review pass 2 GP-3754: review pass 1 GP-3754: ref Pybag GP-3754: clean-up GP-3754: testing post-changes in hooks GP-3754: fix for env GP-3754: convenience method for get_debugger GP-3754: tests all running successfully GP-3754: hook tests running GP-3754: hook tests: memory changed not wokring, bpt modified does nothing GP-3754: lot of work to get testExited to pass GP-3754: start on hooks tests; mods to methods not-runnable while running GP-3754: methods tests working GP-3754: bulk of bpt tests running GP-3754: whittling down the list GP-3754: more passing method tests GP-3754: at least a few method tests working (don't run batch) GP-3754: cmd tests pass w/o closing stdin GP-3754: command test basically running GP-3754: 3 cmd tests failing; 3 commented out GP-3754: ghidra_trace_set_values uses broken except for in testGetValues GP-3754: whittling down the command tests GP-3754: tests esp. SetValue GP-3754: testMinimal works but cannot 'execute' GP-3754: JUnits still don't run GP-3754: breakpoints in the list GP-3754: continued work on hooks; bpts not registering as bpts GP-3754: templates for hooks GP-3754: tests, first viable hook (module_load)' GP-3754: first pass at methods GP-3754: memory/regs working GP-3754: most of the puts done GP-3754: modules/regions working GP-3754: process/threads working GP-3754: added to manifest GP-3754: minimal shell: arch faked out / thru activate w/o push
86 lines
3.3 KiB
Groovy
86 lines
3.3 KiB
Groovy
/* ###
|
|
* IP: GHIDRA
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
apply from: "$rootProject.projectDir/gradle/javaProject.gradle"
|
|
apply from: "$rootProject.projectDir/gradle/javaTestProject.gradle"
|
|
apply plugin: 'eclipse'
|
|
eclipse.project.name = '_Integration Test'
|
|
|
|
|
|
/*********************************************************************************
|
|
* Build dependencies
|
|
*********************************************************************************/
|
|
|
|
// There are tests in this module that require resources in Base:test. This
|
|
// is a on-off type of situation so just add to the resources source set here.
|
|
sourceSets {
|
|
integrationTest {
|
|
resources {
|
|
srcDirs += [project(':Base').sourceSets.test.resources]
|
|
}
|
|
}
|
|
}
|
|
|
|
processIntegrationTestResources {
|
|
duplicatesStrategy = 'exclude'
|
|
}
|
|
|
|
dependencies {
|
|
// integrationtest module may depend on other projects in this repo; add them
|
|
// here
|
|
def ghidraPath = projectDir.getParentFile().getParentFile().path.replace(File.separator, "/") + "/";
|
|
|
|
rootProject.subprojects { p ->
|
|
p.plugins.withType(JavaPlugin) {
|
|
def projectPath = p.projectDir.path.replace(File.separator, "/")
|
|
if (projectPath.startsWith(ghidraPath) && (
|
|
projectPath.contains("/Framework/") ||
|
|
projectPath.contains("/Features/") ||
|
|
projectPath.contains("/Debug/") ||
|
|
projectPath.contains("/Processors/"))) {
|
|
|
|
api p
|
|
}
|
|
}
|
|
}
|
|
|
|
// some tests use classes in Base, FunctionGraph and PDB
|
|
testImplementation project(path: ':Base', configuration: 'testArtifacts')
|
|
testImplementation project(path: ':Base', configuration: 'integrationTestArtifacts')
|
|
testImplementation project(path: ':FunctionGraph', configuration: 'testArtifacts')
|
|
testImplementation project(path: ':PDB', configuration: 'testArtifacts')
|
|
testImplementation project(path: ':GnuDemangler', configuration: 'testArtifacts')
|
|
|
|
testImplementation project(path: ':Framework-TraceModeling', configuration: 'testArtifacts')
|
|
testImplementation project(path: ':Framework-AsyncComm', configuration: 'testArtifacts')
|
|
testImplementation project(path: ':Framework-Debugging', configuration: 'testArtifacts')
|
|
testImplementation project(path: ':Debugger', configuration: 'testArtifacts')
|
|
}
|
|
|
|
// For Java 9, we must explicitly export references to the internal classes we are using.
|
|
// We export them to all "unnamed" modules, which are modules that don't define themselves
|
|
// as a new Java 9 style module. Ghidra is currently using unnamed modules everywhere.
|
|
ext.addExports([
|
|
'java.desktop/sun.awt=ALL-UNNAMED',
|
|
'java.desktop/sun.swing=ALL-UNNAMED',
|
|
'java.desktop/sun.java2d=ALL-UNNAMED'
|
|
])
|
|
|
|
integrationTest {
|
|
dependsOn { project(':Debugger-rmi-trace').assemblePyPackage }
|
|
dependsOn { project(':Debugger-agent-gdb').assemblePyPackage }
|
|
dependsOn { project(':Debugger-agent-lldb').assemblePyPackage }
|
|
dependsOn { project(':Debugger-agent-dbgeng').assemblePyPackage }
|
|
}
|