e3ba06f61f
Since recent SSH daemon upgrades, in context of If047c3a27, loading of BouncyCastle FileKeyPair provider depends on bouncycastle library. If in doubt, check this comment from: FileKeyPairProvider.java: Note that this class has a direct dependency on BouncyCastle and won't work unless it has been correctly registered as a security provider. Change-Id: I7e93713be5cbbdd470ab8fbb4eec61c3cbc78194
34 lines
700 B
Plaintext
34 lines
700 B
Plaintext
BOUNCYCASTLE = [
|
|
'//lib/bouncycastle:bcpkix',
|
|
'//lib/bouncycastle:bcpg',
|
|
]
|
|
|
|
def acceptance_tests(
|
|
group,
|
|
srcs,
|
|
deps = [],
|
|
labels = [],
|
|
source_under_test = [],
|
|
vm_args = ['-Xmx256m']):
|
|
from os import path
|
|
if path.exists('/dev/urandom'):
|
|
vm_args = vm_args + ['-Djava.security.egd=file:/dev/./urandom']
|
|
|
|
java_test(
|
|
name = group,
|
|
srcs = srcs,
|
|
deps = deps + BOUNCYCASTLE + [
|
|
'//gerrit-acceptance-tests:lib'
|
|
],
|
|
source_under_test = [
|
|
'//gerrit-httpd:httpd',
|
|
'//gerrit-sshd:sshd',
|
|
'//gerrit-server:server',
|
|
] + source_under_test,
|
|
labels = labels + [
|
|
'acceptance',
|
|
'slow',
|
|
],
|
|
vm_args = vm_args,
|
|
)
|