2021-04-08 19:21:13 +08:00
|
|
|
#!/bin/bash -eu
|
|
|
|
|
|
|
|
# This test exercises mixed builds where Soong and Bazel cooperate in building
|
|
|
|
# Android.
|
|
|
|
#
|
|
|
|
# When the execroot is deleted, the Bazel server process will automatically
|
|
|
|
# terminate itself.
|
|
|
|
|
|
|
|
source "$(dirname "$0")/lib.sh"
|
|
|
|
|
2021-04-14 22:40:03 +08:00
|
|
|
function create_mock_bazel() {
|
2021-04-08 19:21:13 +08:00
|
|
|
copy_directory build/bazel
|
|
|
|
|
|
|
|
symlink_directory prebuilts/bazel
|
|
|
|
symlink_directory prebuilts/jdk
|
|
|
|
|
|
|
|
symlink_file WORKSPACE
|
|
|
|
symlink_file tools/bazel
|
|
|
|
}
|
|
|
|
|
|
|
|
function test_bazel_smoke {
|
|
|
|
setup
|
2021-04-14 22:40:03 +08:00
|
|
|
create_mock_bazel
|
2021-04-08 19:21:13 +08:00
|
|
|
|
|
|
|
tools/bazel info
|
|
|
|
}
|
|
|
|
|
|
|
|
test_bazel_smoke
|