1# Copyright 2018 Google LLC
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
15package(default_visibility = ["//visibility:public"])
16
17licenses(["notice"])  # Apache 2.0
18
19load(
20    ":bigtable_client_integration_tests.bzl",
21    "bigtable_client_integration_tests",
22)
23
24[cc_test(
25    name = test.replace("/", "_").replace(".cc", ""),
26    timeout = "long",
27    srcs = [test],
28    tags = [
29        "integration-test",
30    ],
31    deps = [
32        "//google/cloud:google_cloud_cpp_common",
33        "//google/cloud:google_cloud_cpp_grpc_utils",
34        "//google/cloud/bigtable:bigtable_client",
35        "//google/cloud/bigtable:bigtable_client_testing",
36        "//google/cloud/testing_util:google_cloud_cpp_testing",
37        "@com_google_googletest//:gtest_main",
38    ],
39) for test in bigtable_client_integration_tests]
40
41cc_binary(
42    name = "instance_admin_emulator",
43    srcs = ["instance_admin_emulator.cc"],
44    deps = [
45        "//google/cloud/bigtable:bigtable_client",
46    ],
47)
48