Mercurial > hg > truffle
diff mx/mx_graal.py @ 15907:7d1690e145ae
mx: option to force a GC after each unit test
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Fri, 23 May 2014 11:44:18 +0200 |
parents | db776f9bea7c |
children | 67e0015b21d6 |
line wrap: on
line diff
--- a/mx/mx_graal.py Mon May 26 12:03:04 2014 +0200 +++ b/mx/mx_graal.py Fri May 23 11:44:18 2014 +0200 @@ -976,7 +976,7 @@ f_testfile.close() harness(projectscp, vmArgs) -def _unittest(args, annotations, prefixcp="", whitelist=None, verbose=False, enable_timing=False, regex=None, color=False, eager_stacktrace=False): +def _unittest(args, annotations, prefixcp="", whitelist=None, verbose=False, enable_timing=False, regex=None, color=False, eager_stacktrace=False, gc_after_test=False): mxdir = dirname(__file__) name = 'JUnitWrapper' javaSource = join(mxdir, name + '.java') @@ -999,6 +999,8 @@ coreArgs.append('-JUnitColor') if eager_stacktrace: coreArgs.append('-JUnitEagerStackTrace') + if gc_after_test: + coreArgs.append('-JUnitGCAfterTest') def harness(projectscp, vmArgs): @@ -1031,6 +1033,7 @@ --regex <regex> run only testcases matching a regular expression --color enable colors output --eager-stacktrace print stacktrace eagerly + --gc-after-test force a GC after each test To avoid conflicts with VM options '--' can be used as delimiter. @@ -1073,6 +1076,7 @@ parser.add_argument('--regex', help='run only testcases matching a regular expression', metavar='<regex>') parser.add_argument('--color', help='enable color output', action='store_true') parser.add_argument('--eager-stacktrace', help='print stacktrace eagerly', action='store_true') + parser.add_argument('--gc-after-test', help='force a GC after each test', action='store_true') ut_args = [] delimiter = False