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