1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00
serenity/Base/home/anon/Tests/run-tests-and-shutdown.sh
Daniel Bertalan e77ce26ff1 run-tests: Unlink coredumps in self-test mode
This ensures that the RAM does not fill up with already processed
coredumps when many tests crash (as is the case on AArch64). We only
do this in self-test mode so as to avoid racing CrashDaemon.
2023-06-01 09:04:20 +02:00

20 lines
347 B
Bash
Executable file

#!/bin/Shell
echo
echo "==== Running Tests on SerenityOS ===="
export LLVM_PROFILE_FILE="$HOME/profiles/%p-profile.profraw"
run-tests --show-progress=false --unlink-coredumps
fail_count=$?
unset LLVM_PROFILE_FILE
echo "Failed: $fail_count" > ./test-results.log
if test $DO_SHUTDOWN_AFTER_TESTS {
sync
shutdown -n
}
exit $fail_count