mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
gradle test option tweaks
This commit is contained in:
parent
6a8788acbc
commit
a2b7869199
2 changed files with 22 additions and 5 deletions
|
@ -156,7 +156,7 @@ def initTestJVM(Task task, String rootDirName) {
|
||||||
// -javaagent:/path/to/jmockit.jar
|
// -javaagent:/path/to/jmockit.jar
|
||||||
task.doFirst {
|
task.doFirst {
|
||||||
def jmockitPath = configurations.jmockitAgent.singleFile
|
def jmockitPath = configurations.jmockitAgent.singleFile
|
||||||
|
|
||||||
task.jvmArgs '-DupgradeProgramErrorMessage=' + upgradeProgramErrorMessage,
|
task.jvmArgs '-DupgradeProgramErrorMessage=' + upgradeProgramErrorMessage,
|
||||||
'-DupgradeTimeErrorMessage=' + upgradeTimeErrorMessage,
|
'-DupgradeTimeErrorMessage=' + upgradeTimeErrorMessage,
|
||||||
'-Dlog4j.configuration=' + logPropertiesUrl,
|
'-Dlog4j.configuration=' + logPropertiesUrl,
|
||||||
|
@ -177,11 +177,15 @@ def initTestJVM(Task task, String rootDirName) {
|
||||||
'-Duser.country=US',
|
'-Duser.country=US',
|
||||||
'-Duser.language=en',
|
'-Duser.language=en',
|
||||||
'-Djdk.attach.allowAttachSelf',
|
'-Djdk.attach.allowAttachSelf',
|
||||||
'-javaagent:' + jmockitPath,
|
'-javaagent:' + jmockitPath,
|
||||||
'-DLock.DEBUG=true',
|
'-noverify',
|
||||||
|
'-XX:TieredStopAtLevel=1',
|
||||||
'-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=' + debugPort
|
'-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=' + debugPort
|
||||||
|
|
||||||
|
|
||||||
|
// Note: this args are used to speed-up the tests, but are not safe for production code
|
||||||
|
// -noverify and -XX:TieredStopAtLevel=1
|
||||||
|
|
||||||
// Note: modern remote debug invocation;
|
// Note: modern remote debug invocation;
|
||||||
// -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
|
// -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
|
||||||
|
|
||||||
|
@ -191,6 +195,16 @@ def initTestJVM(Task task, String rootDirName) {
|
||||||
// -Xnoagent
|
// -Xnoagent
|
||||||
// -Djava.compiler=NONE
|
// -Djava.compiler=NONE
|
||||||
// -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
|
// -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
|
||||||
|
|
||||||
|
//
|
||||||
|
// TODO Future Updates:
|
||||||
|
// The test configuration should be updated to support all known modes of operation:
|
||||||
|
// command-line test execution, CI test execution of a branch upon request, and full
|
||||||
|
// CI test execution (this is slow and may need to run overnight). We do not currently
|
||||||
|
// support well running tests via the command-line. See discussion at github 2854.
|
||||||
|
// For better command-line usage we will need to update tests such that they can
|
||||||
|
// share a VM, enabling us to elimnate the use of 'forEver 1' in this file.
|
||||||
|
//
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
|
|
|
@ -345,10 +345,13 @@ def initTestJVM(Task task, String rootDirName) {
|
||||||
'-Duser.country=US',
|
'-Duser.country=US',
|
||||||
'-Duser.language=en',
|
'-Duser.language=en',
|
||||||
'-Djdk.attach.allowAttachSelf',
|
'-Djdk.attach.allowAttachSelf',
|
||||||
'-javaagent:' + jmockitPath,
|
'-javaagent:' + jmockitPath,
|
||||||
'-DLock.DEBUG=true',
|
'-noverify',
|
||||||
|
'-XX:TieredStopAtLevel=1',
|
||||||
'-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=' + debugPort
|
'-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=' + debugPort
|
||||||
|
|
||||||
|
// Note: this args are used to speed-up the tests, but are not safe for production code
|
||||||
|
// -noverify and -XX:TieredStopAtLevel=1
|
||||||
|
|
||||||
// Note: modern remote debug invocation;
|
// Note: modern remote debug invocation;
|
||||||
// -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
|
// -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue