You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
440 B
23 lines
440 B
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
OUTPUT_DIR=$(realpath $(dirname "$0"))
|
|
. "$OUTPUT_DIR"/include.sh
|
|
|
|
BASE_PATH=/proc/self/cwd/packages/modules/adb
|
|
PATHS=""
|
|
if [[ $# == 0 ]]; then
|
|
PATHS=$BASE_PATH
|
|
else
|
|
for arg in "$@"; do
|
|
PATHS="$PATHS $BASE_PATH/$arg"
|
|
done
|
|
fi
|
|
|
|
cd $ANDROID_BUILD_TOP
|
|
llvm-cov show --instr-profile="$OUTPUT_DIR"/adbd.profdata \
|
|
$ANDROID_PRODUCT_OUT/apex/com.android.adbd/bin/adbd \
|
|
$PATHS \
|
|
$ADB_TEST_BINARIES
|