686965baeb
This is done by running a build before the first test case, tarring up $TOP (including out/) then untarring it for every test case instead of rebuilding soong_build each time. The speedup is approximately 2x. Also add some cute ANSI escape sequences and delineation of individual test cases. Test: The aforementioned integration tests. Change-Id: I6a98660cfe6a40bcaa978e8d7544cdffad86a7fa
28 lines
522 B
Bash
Executable file
28 lines
522 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 create_mock_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
|
|
create_mock_bazel
|
|
|
|
tools/bazel info
|
|
}
|
|
|
|
test_bazel_smoke
|