diff options
author | 2018-06-11 08:30:15 -0700 | |
---|---|---|
committer | 2018-06-11 08:31:36 -0700 | |
commit | 72141a1330aaf88d4a44e5fda8541c2cdf915c77 (patch) | |
tree | a218af7e30c72c98e3ef2c1b31ce386be4889549 /src/test/shell/bazel/bazel_bootstrap_distfile_test.sh | |
parent | e28c0ab84c7967e10cc3cd5333560c54653084bd (diff) |
update bazel's embedded jdk to jdk9
- Updates the embedded JDK to Azul Zulu 9.0.7
- All integration tests use Bazel with the embedded JDK
Also updated: http://storage.googleapis.com/bazel-mirror/openjdk/index.html
Closes #5312, #5314, #5315
PiperOrigin-RevId: 200055008
Diffstat (limited to 'src/test/shell/bazel/bazel_bootstrap_distfile_test.sh')
-rwxr-xr-x | src/test/shell/bazel/bazel_bootstrap_distfile_test.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/test/shell/bazel/bazel_bootstrap_distfile_test.sh b/src/test/shell/bazel/bazel_bootstrap_distfile_test.sh index 3f4dd06efa..273fe8d5cd 100755 --- a/src/test/shell/bazel/bazel_bootstrap_distfile_test.sh +++ b/src/test/shell/bazel/bazel_bootstrap_distfile_test.sh @@ -19,6 +19,7 @@ set -u DISTFILE=$(rlocation io_bazel/${1#./}) +EMBEDDED_JDK=$(rlocation io_bazel/${2#./}) shift 1 # Load the test setup defined in the parent directory @@ -41,12 +42,23 @@ function test_bootstrap() { export SOURCE_DATE_EPOCH=1501234567 _log_progress "unzip" unzip -q "${DISTFILE}" + if [[ $EMBEDDED_JDK == *.tar.gz ]]; then + tar xf $EMBEDDED_JDK + elif [[ $EMBEDDED_JDK == *.zip ]]; then + unzip -q $EMBEDDED_JDK + fi + JAVABASE=$(echo zulu*) + _log_progress "bootstrap" env EXTRA_BAZEL_ARGS="--curses=no --strategy=Javac=standalone" ./compile.sh \ || fail "Expected to be able to bootstrap bazel" _log_progress "run" - ./output/bazel version > "${TEST_log}" || fail "Generated bazel not working" - ./output/bazel shutdown + ./output/bazel \ + --host_javabase=$JAVABASE --host_jvm_args=--add-opens=java.base/java.nio=ALL-UNNAMED \ + version > "${TEST_log}" || fail "Generated bazel not working" + ./output/bazel \ + --host_javabase=$JAVABASE --host_jvm_args=--add-opens=java.base/java.nio=ALL-UNNAMED \ + shutdown _log_progress "assert" expect_log "${SOURCE_DATE_EPOCH}" cd "${olddir}" |