gradle test option tweaks

This commit is contained in:
dragonmacher 2021-03-29 11:16:38 -04:00
parent 6a8788acbc
commit a2b7869199
2 changed files with 22 additions and 5 deletions

View file

@ -178,10 +178,14 @@ def initTestJVM(Task task, String rootDirName) {
'-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.
//
} }
} }
/********************************************************************************* /*********************************************************************************

View file

@ -346,9 +346,12 @@ def initTestJVM(Task task, String rootDirName) {
'-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