Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1341dd6011182452709580114aef105cd270df7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
load(
    "@com_googlesource_gerrit_bazlets//tools:junit.bzl",
    "junit_tests",
)

TEST_BASE = ["tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java"]

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:servlet-api",
]

junit_tests(
    name = "lfs_server",
    srcs = glob(
        ["tst/**/*.java"],
        exclude = TEST_BASE,
    ),
    jvm_flags = [
        "-Xmx256m",
        "-Dfile.encoding=UTF-8",
    ],
    tags = ["lfs-server"],
    deps = DEPS + [
        ":helpers",
    ],
)

java_library(
    name = "helpers",
    testonly = 1,
    srcs = TEST_BASE,
    deps = DEPS,
)

Back to the top