1#!/bin/bash 2 3set -euxo pipefail 4 5OUTPUT_DIR=$(realpath $(dirname "$0")) 6. "$OUTPUT_DIR"/include.sh 7 8BASE_PATH=/proc/self/cwd/packages/modules/adb 9PATHS="" 10if [[ $# == 0 ]]; then 11 PATHS=$BASE_PATH 12else 13 for arg in "$@"; do 14 PATHS="$PATHS $BASE_PATH/$arg" 15 done 16fi 17 18cd $ANDROID_BUILD_TOP 19llvm-cov show --instr-profile="$OUTPUT_DIR"/adbd.profdata \ 20 $ANDROID_PRODUCT_OUT/apex/com.android.adbd/bin/adbd \ 21 $PATHS \ 22 $ADB_TEST_BINARIES 23