xref: /JGit/org.eclipse.jgit.gpg.bc.test/BUILD (revision c82818e0e02a9d1bd979d27bd342bb05661150d4)
1load(
2    "@com_googlesource_gerrit_bazlets//tools:genrule2.bzl",
3    "genrule2",
4)
5load(
6    "@com_googlesource_gerrit_bazlets//tools:junit.bzl",
7    "junit_tests",
8)
9
10junit_tests(
11    name = "bc",
12    srcs = glob(["tst/**/*.java"]),
13    resource_jars = [":tst_rsrc"],
14    tags = ["bc"],
15    deps = [
16        "//lib:bcpg",
17        "//lib:bcprov",
18        "//lib:junit",
19        "//org.eclipse.jgit.gpg.bc:gpg-bc",
20        "//org.eclipse.jgit:jgit",
21    ],
22)
23
24genrule2(
25    name = "tst_rsrc",
26    srcs = glob(["tst-rsrc/**"]),
27    outs = ["tst_rsrc.jar"],
28    cmd = "tar cf - $(SRCS) | tar -C $$TMP --strip-components=2 -xf - && cd $$TMP && zip -qr $$ROOT/$@ .",
29)
30