summaryrefslogtreecommitdiff
path: root/Base/home/anon/Tests/run-tests-and-shutdown.sh
blob: 4edea6bfebac5e3fa51f0ed4117a262e94660f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/Shell

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 {
    sync
    shutdown -n
}

exit $fail_count