build: add simple test_race.sh script

Useful for triggering startup races and can be used with git bisect.
This commit is contained in:
CJ van den Berg 2025-04-30 11:32:56 +02:00
parent df70384b7b
commit 09be9b3774
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

13
contrib/test_race.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
set -e
if [ "$1" == "--build" ]; then
shift
echo "building..."
zig build -freference-trace --prominent-compile-errors
fi
for i in {1..60}; do
echo "running $i ..."
flow --exec quit "$@" || exit 1
done