From 6284ceb1f87bd5c4a86f14b40df0289ed151110e Mon Sep 17 00:00:00 2001 From: Rupert Shuttleworth Date: Tue, 27 Oct 2020 03:50:40 +0000 Subject: [PATCH] Add smoke test for Bazel. Test: Manually typed the commands in AOSP root. Change-Id: I5ecf85f9d715f2759d27de4ac18b4928eb306550 --- build_test.bash | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build_test.bash b/build_test.bash index ee979e7cb..a53a58598 100755 --- a/build_test.bash +++ b/build_test.bash @@ -43,5 +43,16 @@ case $(uname) in ;; esac +function bazel_cleanup { + "${TOP}/tools/bazel" shutdown +} +trap bazel_cleanup EXIT + +echo +echo "Running Bazel smoke test..." +"${TOP}/tools/bazel" info + +echo +echo "Running Soong test..." soong_build_go multiproduct_kati android/soong/cmd/multiproduct_kati exec "$(getoutdir)/multiproduct_kati" "$@"