blob: 4b6980486945f0fa519763a55749129e86baf54d [file]
load(
"@com_googlesource_gerrit_bazlets//tools:junit.bzl",
"junit_tests",
)
load("@rules_java//java:defs.bzl", "java_library")
TEST_BASE = ["tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java"]
TEST_SRCS = glob(["tst/**/*.java"])
filegroup(
name = "test-srcs",
testonly = 1,
srcs = TEST_SRCS,
visibility = [
"//org.eclipse.jgit.lfs.server.test.ee8:__pkg__",
"//tools/jgit-ee8:__pkg__",
],
)
filegroup(
name = "base-test-srcs",
testonly = 1,
srcs = TEST_BASE,
visibility = ["//org.eclipse.jgit.lfs.server.test.ee8:__pkg__"],
)
filegroup(
name = "nonbase-test-srcs",
testonly = 1,
srcs = glob(
["tst/**/*.java"],
exclude = TEST_BASE,
),
visibility = ["//org.eclipse.jgit.lfs.server.test.ee8:__pkg__"],
)
DEPS = [
"//org.eclipse.jgit.lfs.test:helpers",
"//org.eclipse.jgit:jgit",
"//org.eclipse.jgit.junit:junit",
"//org.eclipse.jgit.junit.http:junit-http",
"//org.eclipse.jgit.lfs:jgit-lfs",
"//org.eclipse.jgit.lfs.server:jgit-lfs-server",
"//lib:commons-logging",
"//lib:httpcore",
"//lib:httpclient",
"//lib:junit",
"//lib:jetty-http",
"//lib:jetty-io",
"//lib:jetty-server",
"//lib:jetty-servlet",
"//lib:jetty-security",
"//lib:jetty-util",
"//lib:jakarta-servlet-api",
]
junit_tests(
name = "lfs_server",
srcs = glob(
["tst/**/*.java"],
exclude = TEST_BASE,
),
jvm_flags = [
"-Xmx512m",
"-Dfile.encoding=UTF-8",
],
tags = ["lfs-server"],
deps = DEPS + [
":helpers",
],
)
java_library(
name = "helpers",
testonly = 1,
srcs = TEST_BASE,
deps = DEPS,
)