aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Dave MacLachlan <dmaclach@google.com>2016-02-03 23:31:39 +0000
committerGravatar David Chen <dzc@google.com>2016-02-04 18:10:48 +0000
commit4800626eee5245a062e910b648adb2f291e212c5 (patch)
tree3788c41baf1878357c652ed5df013b0a2d3abb21 /src
parent2f4d1c2583b3fc1ce63d7c5eb678f0717c21db1a (diff)
Add shell example to bazel. Includes sh_binary, sh_library and sh_test.
-- MOS_MIGRATED_REVID=113789897
Diffstat (limited to 'src')
-rwxr-xr-xsrc/test/shell/bazel/bazel_example_test.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/shell/bazel/bazel_example_test.sh b/src/test/shell/bazel/bazel_example_test.sh
index d20139b408..9908ebc6c9 100755
--- a/src/test/shell/bazel/bazel_example_test.sh
+++ b/src/test/shell/bazel/bazel_example_test.sh
@@ -124,6 +124,12 @@ function test_native_python() {
assert_test_fails //examples/py_native:fail --python2_path=python
}
+function test_shell() {
+ assert_build "//examples/shell:bin"
+ assert_bazel_run "//examples/shell:bin" "Hello Bazel!"
+ assert_test_ok "//examples/shell:test"
+}
+
#
# Skylark rules
#