blob: 87d092fa9cefdf80a83bbc77a28208cebafed680 [file] [log] [blame]
Sam Delmerico4ee85082022-09-09 17:21:25 -04001# Copyright (C) 2022 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# These commands are expected to always return successfully
16
17trap 'exit 1' ERR
18
19source $(dirname $0)/../envsetup.sh
20
21test_target=//build/bazel/scripts/difftool:difftool
22
23b cquery 'kind(test, //build/bazel/...)'
24b build "$test_target"
25b build "$test_target" --run-soong-tests
26b build --run-soong-tests "$test_target"
27b --run-soong-tests build "$test_target"
28b run $test_target
29b run $test_target -- --help
30b cquery --output=build 'kind(test, //build/bazel/...)'
31b cquery 'kind(test, //build/bazel/...)' --output=build