1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:04:57 +00:00
serenity/Base/home/anon/Tests/run-tests-and-shutdown.sh
Andrew Kaster 424eca24ba Base: Only do a boot/shutdown smoke-test for aarch64 for CI testing
Instead of managing a large list of tests to skip as we break aarch64,
simply don't run any userspace tests. We need to keep a smoke test going
so that we don't break aarch64 boot with new Kernel changes and new
drivers.
2023-10-17 11:02:25 -06:00

25 lines
514 B
Bash
Executable file

#!/bin/Shell
# shellcheck disable=all
echo
echo "==== Running Tests on SerenityOS ===="
echo "architecture is: >>$(uname -m)<<"
if [ "$(uname -m)" = "AArch64" ] && [ "$1" != "--force" ] {
fail_count=0
}
else {
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