aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorGravatar twerth <twerth@google.com>2018-07-31 08:29:27 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-07-31 08:31:23 -0700
commit66a20633e89497c062b1e10cf7a02a996ab9a855 (patch)
tree2985370ed0c727385c7ce46c8d49919c3dbc8878 /src/test
parentf2505e4acc48aeaf6bf60b731257e7eadd6580a8 (diff)
Actually run aquery test
RELNOTES: None PiperOrigin-RevId: 206765416
Diffstat (limited to 'src/test')
-rwxr-xr-xsrc/test/shell/integration/aquery_test.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/test/shell/integration/aquery_test.sh b/src/test/shell/integration/aquery_test.sh
index 1d472270b1..735967a1ce 100755
--- a/src/test/shell/integration/aquery_test.sh
+++ b/src/test/shell/integration/aquery_test.sh
@@ -27,7 +27,7 @@ function test_basic_aquery() {
cat > "$pkg/BUILD" <<'EOF'
genrule(
name = "foo",
- srcs = ["in.txt"],
+ srcs = [":bar"],
outs = ["foo_out.txt"],
cmd = "cat $(SRCS) > $(OUTS)",
)
@@ -42,10 +42,12 @@ EOF
echo "hello aquery" > "$pkg/in.txt"
bazel aquery "//$pkg:foo" > output 2> "$TEST_log" || fail "Expected success"
- assert_contains "//$pkg:foo"
- assert_not_contains "//$pkg:bar"
+ assert_contains "//$pkg:foo" output
+ assert_not_contains "//$pkg:bar" output
bazel aquery "deps(//$pkg:foo)" > output 2> "$TEST_log" || fail "Expected success"
- assert_contains "//$pkg:foo"
- assert_contains "//$pkg:bar"
+ assert_contains "//$pkg:foo" output
+ assert_contains "//$pkg:bar" output
}
+
+run_suite "${PRODUCT_NAME} action graph query tests"