#! /bin/bash # # Copyright (C) 2021 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License.
# Utilities for buildbot. This script is sourced by other buildbot-*.sh scripts.
if [ -t 1 ]; then # Color sequences if terminal is a tty.
# Do some checks and prepare environment for tests that run on Linux (not on Android). if [[ -n "$ART_TEST_ON_VM" ]] || [[ -n "$ART_TEST_ON_SBC" ]]; then if [[ -z $ANDROID_BUILD_TOP ]]; then
msgfatal "ANDROID_BUILD_TOP is not set" elif [[ -z "$ART_TEST_SSH_USER" ]]; then
msgfatal "ART_TEST_SSH_USER not set" elif [[ -z "$ART_TEST_SSH_HOST" ]]; then
msgfatal "ART_TEST_SSH_HOST not set" elif [[ -z "$ART_TEST_SSH_PORT" ]]; then
msgfatal "ART_TEST_SSH_PORT not set" fi
if [[ -n "$ART_TEST_ON_SBC" ]]; then
SSH_CONFIG=$ANDROID_BUILD_TOP/art/test/testrunner/ssh_config_sbc else
SSH_CONFIG=$ANDROID_BUILD_TOP/art/test/testrunner/ssh_config fi export ART_TEST_CHROOT_BASENAME="art-test-chroot" export ART_TEST_CHROOT="/home/$ART_TEST_SSH_USER/$ART_TEST_CHROOT_BASENAME" export ART_CHROOT_CMD="unshare --user --map-root-user chroot $ART_TEST_CHROOT_BASENAME" export ART_SSH_CMD="ssh -q -F $SSH_CONFIG -p $ART_TEST_SSH_PORT $ART_TEST_SSH_USER@$ART_TEST_SSH_HOST" export ART_SCP_CMD="scp -q -F $SSH_CONFIG -P $ART_TEST_SSH_PORT -p -r" export ART_RSYNC_CMD="rsync -az" export RSYNC_RSH="ssh -q -F $SSH_CONFIG -p $ART_TEST_SSH_PORT"# don't prefix with "ART_", rsync expects this name
if [[ "$TARGET_ARCH" =~ ^(arm64|riscv64)$ ]]; then export ART_TEST_VM_IMG="ubuntu-24.04-server-cloudimg-$TARGET_ARCH.img" export ART_TEST_VM_DIR="$ANDROID_BUILD_TOP/vm/$TARGET_ARCH" export ART_TEST_VM="$ART_TEST_VM_DIR/$ART_TEST_VM_IMG" else
msgfatal "unexpected TARGET_ARCH=$TARGET_ARCH; expected one of {arm64,riscv64}" fi fi
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.