xref: /JGit/org.eclipse.jgit.lfs.server.test/BUILD (revision 22973d13ea4eaef390a9ce00d448317808e07ced)
1load(
2    "@com_googlesource_gerrit_bazlets//tools:junit.bzl",
3    "junit_tests",
4)
5load("@rules_java//java:defs.bzl", "java_library")
6
7TEST_BASE = ["tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java"]
8
9DEPS = [
10    "//org.eclipse.jgit.lfs.test:helpers",
11    "//org.eclipse.jgit:jgit",
12    "//org.eclipse.jgit.junit:junit",
13    "//org.eclipse.jgit.junit.http:junit-http",
14    "//org.eclipse.jgit.lfs:jgit-lfs",
15    "//org.eclipse.jgit.lfs.server:jgit-lfs-server",
16    "//lib:commons-logging",
17    "//lib:httpcore",
18    "//lib:httpclient",
19    "//lib:junit",
20    "//lib:jetty-http",
21    "//lib:jetty-io",
22    "//lib:jetty-server",
23    "//lib:jetty-servlet",
24    "//lib:jetty-security",
25    "//lib:jetty-util",
26    "//lib:servlet-api",
27]
28
29junit_tests(
30    name = "lfs_server",
31    srcs = glob(
32        ["tst/**/*.java"],
33        exclude = TEST_BASE,
34    ),
35    jvm_flags = [
36        "-Xmx512m",
37        "-Dfile.encoding=UTF-8",
38    ],
39    tags = ["lfs-server"],
40    deps = DEPS + [
41        ":helpers",
42    ],
43)
44
45java_library(
46    name = "helpers",
47    testonly = 1,
48    srcs = TEST_BASE,
49    deps = DEPS,
50)
51