1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
load(
"@com_googlesource_gerrit_bazlets//tools:genrule2.bzl",
"genrule2",
)
load(
"@com_googlesource_gerrit_bazlets//tools:junit.bzl",
"junit_tests",
)
DEPS = [
"//lib:eddsa",
"//lib:junit",
"//lib:slf4j-api",
"//lib:sshd-osgi",
"//lib:sshd-sftp",
"//org.eclipse.jgit:jgit",
"//org.eclipse.jgit.junit:junit",
"//org.eclipse.jgit.junit.ssh:junit-ssh",
"//org.eclipse.jgit.ssh.apache:ssh-apache",
]
HELPERS = ["tst/org/eclipse/jgit/internal/signing/ssh/AbstractSshSignatureTest.java"]
junit_tests(
name = "sshd_apache",
srcs = glob(
["tst/**/*.java"],
exclude = HELPERS,
),
tags = ["sshd"],
runtime_deps = [":tst_rsrc"],
deps = DEPS + [
":helpers",
],
)
java_library(
name = "helpers",
testonly = 1,
srcs = HELPERS,
deps = DEPS,
)
genrule2(
name = "tst_rsrc",
srcs = glob(["tst-rsrc/**"]),
outs = ["tst_rsrc.jar"],
cmd = "tar cf - $(SRCS) | tar -C $$TMP --strip-components=2 -xf - && cd $$TMP && zip -qr $$ROOT/$@ .",
)
|