8c52358ad7
In mixed builds, Bazel operates in <root>/out/soong/workspace, but the real OUT_DIR is just <root>out/, not <root>/out/soong/workspace/out. This CL ensures that the correct OUT_DIR is passed to mixed builds's bazel by making OUT_DIR absolute. Also add STANDALONE_BAZEL to build_test's Bazel smoke test. Test: TH Change-Id: If8b4058d43bf821f5196016f9b0ad38edfe18716
20 lines
372 B
Bash
Executable file
20 lines
372 B
Bash
Executable file
#!/bin/bash -eu
|
|
|
|
set -o pipefail
|
|
|
|
# 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 test_bazel_smoke {
|
|
setup
|
|
create_mock_bazel
|
|
|
|
STANDALONE_BAZEL=true run_bazel info
|
|
}
|
|
|
|
test_bazel_smoke
|