xref: /JGit/org.eclipse.jgit.lfs.server.test/BUILD (revision 22973d13ea4eaef390a9ce00d448317808e07ced)
10f6ddb37SDavid Ostrovskyload(
20f6ddb37SDavid Ostrovsky    "@com_googlesource_gerrit_bazlets//tools:junit.bzl",
30f6ddb37SDavid Ostrovsky    "junit_tests",
40f6ddb37SDavid Ostrovsky)
5*22973d13SMatthias Sohnload("@rules_java//java:defs.bzl", "java_library")
60f6ddb37SDavid Ostrovsky
70f6ddb37SDavid OstrovskyTEST_BASE = ["tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java"]
80f6ddb37SDavid Ostrovsky
90f6ddb37SDavid OstrovskyDEPS = [
100f6ddb37SDavid Ostrovsky    "//org.eclipse.jgit.lfs.test:helpers",
110f6ddb37SDavid Ostrovsky    "//org.eclipse.jgit:jgit",
120f6ddb37SDavid Ostrovsky    "//org.eclipse.jgit.junit:junit",
130f6ddb37SDavid Ostrovsky    "//org.eclipse.jgit.junit.http:junit-http",
140f6ddb37SDavid Ostrovsky    "//org.eclipse.jgit.lfs:jgit-lfs",
150f6ddb37SDavid Ostrovsky    "//org.eclipse.jgit.lfs.server:jgit-lfs-server",
160f6ddb37SDavid Ostrovsky    "//lib:commons-logging",
170f6ddb37SDavid Ostrovsky    "//lib:httpcore",
180f6ddb37SDavid Ostrovsky    "//lib:httpclient",
190f6ddb37SDavid Ostrovsky    "//lib:junit",
200f6ddb37SDavid Ostrovsky    "//lib:jetty-http",
210f6ddb37SDavid Ostrovsky    "//lib:jetty-io",
220f6ddb37SDavid Ostrovsky    "//lib:jetty-server",
230f6ddb37SDavid Ostrovsky    "//lib:jetty-servlet",
240f6ddb37SDavid Ostrovsky    "//lib:jetty-security",
250f6ddb37SDavid Ostrovsky    "//lib:jetty-util",
260f6ddb37SDavid Ostrovsky    "//lib:servlet-api",
270f6ddb37SDavid Ostrovsky]
280f6ddb37SDavid Ostrovsky
290f6ddb37SDavid Ostrovskyjunit_tests(
300f6ddb37SDavid Ostrovsky    name = "lfs_server",
310f6ddb37SDavid Ostrovsky    srcs = glob(
320f6ddb37SDavid Ostrovsky        ["tst/**/*.java"],
330f6ddb37SDavid Ostrovsky        exclude = TEST_BASE,
340f6ddb37SDavid Ostrovsky    ),
350f6ddb37SDavid Ostrovsky    jvm_flags = [
361e8b68cbSMatthias Sohn        "-Xmx512m",
370f6ddb37SDavid Ostrovsky        "-Dfile.encoding=UTF-8",
380f6ddb37SDavid Ostrovsky    ],
390f6ddb37SDavid Ostrovsky    tags = ["lfs-server"],
400f6ddb37SDavid Ostrovsky    deps = DEPS + [
410f6ddb37SDavid Ostrovsky        ":helpers",
420f6ddb37SDavid Ostrovsky    ],
430f6ddb37SDavid Ostrovsky)
440f6ddb37SDavid Ostrovsky
450f6ddb37SDavid Ostrovskyjava_library(
460f6ddb37SDavid Ostrovsky    name = "helpers",
470f6ddb37SDavid Ostrovsky    testonly = 1,
480f6ddb37SDavid Ostrovsky    srcs = TEST_BASE,
490f6ddb37SDavid Ostrovsky    deps = DEPS,
500f6ddb37SDavid Ostrovsky)
51