Skip to content

Commit

Permalink
Update bazel_java_test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored Nov 24, 2023
1 parent cd658d5 commit dbdfc95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/shell/bazel/bazel_java_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1928,6 +1928,11 @@ EOF
}

function test_header_compiler_direct_supports_release() {
if [[ "${JAVA_TOOLS_PREBUILT_ZIP}" == "released" ]]; then
# TODO: Remove after the next java_tools release.
return
fi

mkdir -p pkg
cat << 'EOF' > pkg/BUILD
java_library(name = "a", srcs = ["A.java"], deps = [":b"])
Expand All @@ -1940,7 +1945,7 @@ EOF
public class B {}
EOF

bazel build //pkg:a --verbose_failures --announce_rc >& $TEST_log || fail "build failed"
bazel build //pkg:a >& $TEST_log || fail "build failed"
}

run_suite "Java integration tests"

0 comments on commit dbdfc95

Please sign in to comment.