diff options
Diffstat (limited to 'base_workspace_test.sh')
-rwxr-xr-x | base_workspace_test.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/base_workspace_test.sh b/base_workspace_test.sh new file mode 100755 index 0000000000..b49eb3e7f8 --- /dev/null +++ b/base_workspace_test.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -ex + +[[ -x "output/bazel" ]] || ./compile.sh + +OUTPUT_BASE=$(mktemp -d /tmp/bazel_base_workspace.XXXXXXXX) + +function delete_output_base() { + rm -fr $OUTPUT_BASE +} + +trap delete_output_base EXIT + +cd base_workspace +../output/bazel --batch --output_base $OUTPUT_BASE build -k //... +rm -f bazel-* + +echo "Base workspace test succeeded" |