xref: /aosp_15_r20/external/bazelbuild-rules_rust/test/query_test_binary.sh (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1#!/bin/bash
2
3set -euo pipefail
4
5cd "${BUILD_WORKSPACE_DIRECTORY}"
6
7# We always expect to be able to query ... in this repo with no flags.
8# In the past this has regressed, e.g. in https://github.com/bazelbuild/rules_rust/issues/2359, so we have this test to ensure we don't regress again.
9bazel query //... >/dev/null
10bazel cquery //... >/dev/null
11