build: add simple test_race.sh script
Useful for triggering startup races and can be used with git bisect.
This commit is contained in:
parent
df70384b7b
commit
09be9b3774
1 changed files with 13 additions and 0 deletions
13
contrib/test_race.sh
Executable file
13
contrib/test_race.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue