blob: 37a1bf4f93c6f95aba96d826a3c8b8220a09ff63 [file] [log] [blame] [edit]
# Simple build tests for compatibility of gencode from previous major versions
# with the current runtime.
#
# To add more test cases in Java, use java_runtime_conformance as below, and add
# the corresponding http_archive in the WORKSPACE file for the version.
load("//compatibility:runtime_conformance.bzl", "java_runtime_conformance")
# main gencode builds with main runtime as a proof of concept.
java_runtime_conformance(
name = "java_conformance_main",
gencode_version = "main",
)
# Generates a build_test named "conformance_v3.25.0"
java_runtime_conformance(
name = "java_conformance_v3.25.0",
gencode_version = "3.25.0",
)
java_test(
name = "java_conformance_unittest_v3.25.0_jar",
size = "small",
test_class = "com.google.protobuf.CompatibilityTest",
srcs = ["CompatibilityTest.java"],
deps = [
":libconformance_v3.25.0_lib.jar",
"//java/core",
"@maven//:junit_junit",
],
)
java_test(
name = "java_conformance_unittest_v3.25.0",
size = "small",
test_class = "com.google.protobuf.CompatibilityTest",
srcs = ["CompatibilityTest.java"],
deps = [
":conformance_v3.25.0_lib",
"//java/core",
"@maven//:junit_junit",
],
)