aboutsummaryrefslogtreecommitdiff
path: root/java/org/brotli/integration/BUILD.bazel
blob: 4607cda78b8b02e1ce073673f783f22f2a2c9ca5 (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Description:
#   Integration test runner + corpus for Java port of Brotli decoder.

java_library(
    name = "brotli_jni_test_base",
    srcs = ["BrotliJniTestBase.java"],
    visibility = [
        "//org/brotli/wrapper/common:__pkg__",
        "//org/brotli/wrapper/dec:__pkg__",
        "//org/brotli/wrapper/enc:__pkg__",
    ],
)

java_library(
    name = "bundle_helper",
    srcs = ["BundleHelper.java"],
    visibility = [
        "//org/brotli/wrapper/dec:__pkg__",
        "//org/brotli/wrapper/enc:__pkg__",
    ],
)

java_library(
    name = "bundle_checker",
    srcs = ["BundleChecker.java"],
    deps = [
        ":bundle_helper",
        "//org/brotli/dec",
    ],
)

java_binary(
    name = "bundle_checker_bin",
    main_class = "org.brotli.integration.BundleChecker",
    runtime_deps = [":bundle_checker"],
)

java_test(
    name = "bundle_checker_data_test",
    args = ["$(location :test_data)"],
    data = [":test_data"],
    main_class = "org.brotli.integration.BundleChecker",
    use_testrunner = 0,
    runtime_deps = [":bundle_checker"],
)

java_test(
    name = "bundle_checker_fuzz_test",
    args = [
        "-s",
        "$(location :fuzz_data)",
    ],
    data = [":fuzz_data"],
    main_class = "org.brotli.integration.BundleChecker",
    use_testrunner = 0,
    runtime_deps = [":bundle_checker"],
)

filegroup(
    name = "fuzz_data",
    srcs = ["fuzz_data.zip"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "test_data",
    srcs = ["test_data.zip"],
    visibility = ["//org/brotli/wrapper/dec:__pkg__"],
)

filegroup(
    name = "test_corpus",
    srcs = ["test_corpus.zip"],
    visibility = ["//org/brotli/wrapper/enc:__pkg__"],
)