From 0e45b21e4583d4b50b888e907a51d24e1f50ca2c Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sat, 19 Mar 2022 14:06:52 -0600 Subject: [PATCH] Base: Set $LLVM_PROFILE_FILE before running run-tests Set LLVM_PROFILE_FILE to a pattern that is easily extractable as "these are the profile data files we generated while running tests" for later post-processing. --- Base/home/anon/Tests/run-tests-and-shutdown.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Base/home/anon/Tests/run-tests-and-shutdown.sh b/Base/home/anon/Tests/run-tests-and-shutdown.sh index 5800946fff..82579d91bf 100755 --- a/Base/home/anon/Tests/run-tests-and-shutdown.sh +++ b/Base/home/anon/Tests/run-tests-and-shutdown.sh @@ -3,9 +3,13 @@ echo echo "==== Running Tests on SerenityOS ====" +export LLVM_PROFILE_FILE="$HOME/profiles/%p-profile.profraw" + run-tests --show-progress=false fail_count=$? +unset LLVM_PROFILE_FILE + echo "Failed: $fail_count" > ./test-results.log if test $DO_SHUTDOWN_AFTER_TESTS {