diff options
Diffstat (limited to 'java/org/brotli/integration/BUILD.bazel')
-rw-r--r-- | java/org/brotli/integration/BUILD.bazel | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/java/org/brotli/integration/BUILD.bazel b/java/org/brotli/integration/BUILD.bazel new file mode 100644 index 0000000..5b77325 --- /dev/null +++ b/java/org/brotli/integration/BUILD.bazel @@ -0,0 +1,73 @@ +# 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 = ["org/brotli/integration/test_data.zip"], + data = ["test_data.zip"], + main_class = "org.brotli.integration.BundleChecker", + use_testrunner = 0, + runtime_deps = [":bundle_checker"], +) + +java_test( + name = "bundle_checker_fuzz_test", + args = [ + "-s", + "org/brotli/integration/fuzz_data.zip", + ], + data = ["fuzz_data.zip"], + main_class = "org.brotli.integration.BundleChecker", + use_testrunner = 0, + runtime_deps = [":bundle_checker"], +) + +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__", + ], +) |