gerrit/gerrit-acceptance-tests/tests.defs
Shawn Pearce 79c58714de Fix acceptance test heap size to 128m
Buck defaults to running 1.25 * ncpus tests in parallel.  If each test
uses a heap size of 128M then an 8 core system will need at least
1.25G of RAM for JVM heap during test execution.  The actual memory
used will of course be much higher due to JVM overhead.

Set a default memory for acceptance tests to prevent a huge explosion
during `buck test --all`.

Change-Id: I373df822c029d2dc24c625129f540211cda910e7
2013-07-30 10:27:14 -07:00

21 lines
441 B
Plaintext

def acceptance_tests(
srcs,
deps = [],
vm_args = ['-Xmx128m']):
for j in srcs:
java_test(
name = j[:-len('.java')],
srcs = [j],
deps = ['//gerrit-acceptance-tests:lib'] + deps,
source_under_test = [
'//gerrit-httpd:httpd',
'//gerrit-sshd:sshd',
'//gerrit-server:server',
],
labels = [
'acceptance',
'slow',
],
vm_args = vm_args,
)