2021-01-17 17:21:28 +02:00
|
|
|
load(
|
|
|
|
"@com_googlesource_gerrit_bazlets//tools:genrule2.bzl",
|
|
|
|
"genrule2",
|
|
|
|
)
|
2020-04-27 01:58:28 +03:00
|
|
|
load(
|
|
|
|
"@com_googlesource_gerrit_bazlets//tools:junit.bzl",
|
|
|
|
"junit_tests",
|
|
|
|
)
|
|
|
|
|
|
|
|
junit_tests(
|
|
|
|
name = "bc",
|
|
|
|
srcs = glob(["tst/**/*.java"]),
|
|
|
|
tags = ["bc"],
|
2022-01-10 23:07:09 +02:00
|
|
|
runtime_deps = [":tst_rsrc"],
|
2020-04-27 01:58:28 +03:00
|
|
|
deps = [
|
2021-01-17 17:21:28 +02:00
|
|
|
"//lib:bcpg",
|
|
|
|
"//lib:bcprov",
|
2021-07-14 23:30:06 +03:00
|
|
|
"//lib:bcutil",
|
2020-04-27 01:58:28 +03:00
|
|
|
"//lib:junit",
|
|
|
|
"//org.eclipse.jgit.gpg.bc:gpg-bc",
|
2021-03-27 15:59:54 +02:00
|
|
|
"//org.eclipse.jgit:jgit",
|
2020-04-27 01:58:28 +03:00
|
|
|
],
|
|
|
|
)
|
2021-01-17 17:21:28 +02:00
|
|
|
|
|
|
|
genrule2(
|
2021-03-27 16:27:01 +02:00
|
|
|
name = "tst_rsrc",
|
2021-01-17 17:21:28 +02:00
|
|
|
srcs = glob(["tst-rsrc/**"]),
|
|
|
|
outs = ["tst_rsrc.jar"],
|
2021-03-27 16:27:01 +02:00
|
|
|
cmd = "tar cf - $(SRCS) | tar -C $$TMP --strip-components=2 -xf - && cd $$TMP && zip -qr $$ROOT/$@ .",
|
2021-01-17 17:21:28 +02:00
|
|
|
)
|