platform_build_soong/tests/mixed_mode_test.sh

29 lines
510 B
Bash
Executable File

#!/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"
function setup_bazel() {
copy_directory build/bazel
symlink_directory prebuilts/bazel
symlink_directory prebuilts/jdk
symlink_file WORKSPACE
symlink_file tools/bazel
}
function test_bazel_smoke {
setup
setup_bazel
tools/bazel info
}
test_bazel_smoke