mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Meta: Use absolute paths in Meta/analyze-qemu-coverage.sh
This is a bit easier to read in the output when running locally, and a bit better script hygiene overall.
This commit is contained in:
parent
8356677868
commit
0e90b0921e
Notes:
sideshowbarker
2024-07-17 03:29:53 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/0e90b0921e Pull-request: https://github.com/SerenityOS/serenity/pull/16409
@ -3,6 +3,7 @@
|
|||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
SCRIPT_DIR="$(dirname "${0}")"
|
SCRIPT_DIR="$(dirname "${0}")"
|
||||||
|
SERENITY_ROOT="$(realpath "${SCRIPT_DIR}"/..)"
|
||||||
|
|
||||||
if [ -z "$SERENITY_ARCH" ]; then
|
if [ -z "$SERENITY_ARCH" ]; then
|
||||||
SERENITY_ARCH="x86_64"
|
SERENITY_ARCH="x86_64"
|
||||||
@ -13,7 +14,7 @@ if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then
|
|||||||
toolchain_suffix="clang"
|
toolchain_suffix="clang"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BUILD_DIR="${SCRIPT_DIR}/../Build/${SERENITY_ARCH}${toolchain_suffix}"
|
BUILD_DIR="${SERENITY_ROOT}/Build/${SERENITY_ARCH}${toolchain_suffix}"
|
||||||
TEMP_PROFDATA="$BUILD_DIR/tmp_profile_data"
|
TEMP_PROFDATA="$BUILD_DIR/tmp_profile_data"
|
||||||
|
|
||||||
mkdir -p "$TEMP_PROFDATA"
|
mkdir -p "$TEMP_PROFDATA"
|
||||||
@ -62,12 +63,12 @@ if [ ! -f "$COVERAGE_PREPARE" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CLANG_BINDIR="${SCRIPT_DIR}/../Toolchain/Local/clang/bin"
|
CLANG_BINDIR="${SERENITY_ROOT}/Toolchain/Local/clang/bin"
|
||||||
|
|
||||||
# shellcheck disable=SC2128,SC2086 # all_binaries variable needs expanded to space separated string, not newline separated string
|
# shellcheck disable=SC2128,SC2086 # all_binaries variable needs expanded to space separated string, not newline separated string
|
||||||
python3 "$COVERAGE_PREPARE" \
|
python3 "$COVERAGE_PREPARE" \
|
||||||
--unified-report \
|
--unified-report \
|
||||||
-C "$SCRIPT_DIR/.." \
|
-C "${SERENITY_ROOT}" \
|
||||||
"$CLANG_BINDIR/llvm-profdata" "$CLANG_BINDIR/llvm-cov" \
|
"$CLANG_BINDIR/llvm-profdata" "$CLANG_BINDIR/llvm-cov" \
|
||||||
"$TEMP_PROFDATA/" \
|
"$TEMP_PROFDATA/" \
|
||||||
"$BUILD_DIR/reports/" \
|
"$BUILD_DIR/reports/" \
|
||||||
|
Loading…
Reference in New Issue
Block a user