xref: /llvm-project/libcxx/utils/ci/vendor/android/setup-env-for-emulator.sh (revision 52dc4918ca8b874ddd4e4fcad873a66ecc5b6953)
1# ===----------------------------------------------------------------------===##
2#
3# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4# See https://llvm.org/LICENSE.txt for license information.
5# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6#
7# ===----------------------------------------------------------------------===##
8
9export ADB_SERVER_SOCKET="tcp:$(docker inspect \
10    -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \
11    libcxx-ci-android-emulator):5037"
12
13echo "setup-env-for-emulator.sh: setting ADB_SERVER_SOCKET to ${ADB_SERVER_SOCKET}"
14