diff options
Diffstat (limited to 'src/test/shell/integration/build_event_stream_test.sh')
-rwxr-xr-x | src/test/shell/integration/build_event_stream_test.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/shell/integration/build_event_stream_test.sh b/src/test/shell/integration/build_event_stream_test.sh index 27d08739ab..32c128612f 100755 --- a/src/test/shell/integration/build_event_stream_test.sh +++ b/src/test/shell/integration/build_event_stream_test.sh @@ -105,6 +105,11 @@ def _simple_aspect_impl(target, ctx): simple_aspect = aspect(implementation=_simple_aspect_impl) EOF touch BUILD +cat > sample_workspace_status <<EOF +#!/bin/sh +echo SAMPLE_WORKSPACE_STATUS workspace_status_value +EOF +chmod 755 sample_workspace_status } #### TESTS ############################################################# @@ -132,6 +137,15 @@ function test_basic() { expect_log 'target_kind:.*sh' } +function test_workspace_status() { + bazel test --experimental_build_event_text_file=$TEST_log \ + --workspace_status_command=sample_workspace_status pkg:true \ + || fail "bazel test failed" + expect_log_once '^workspace_status' + expect_log 'key.*SAMPLE_WORKSPACE_STATUS' + expect_log 'value.*workspace_status_value' +} + function test_suite() { # ...same true when running a test suite containing that test bazel test --experimental_build_event_text_file=$TEST_log pkg:suite \ |