Commit 93dec6f7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d1517dba
......@@ -4,11 +4,33 @@
export GOTRACEBACK=crash
ulimit -c unlimited
go test -c
#export DBTail_SEED=1602769537289632682
for i in `seq 100`; do
#echo -e "\n>>> #$i"
go test -v || break
cwd=$(pwd)
# runtest1
function runtest1() {
for i in `seq 100`; do
echo -e "\n>>> #$i"
$cwd/wcfs.test -test.v || break
done
}
nwork=3
rm -rf BUG
for n in `seq $nwork`; do
workdir=BUG/$n
mkdir -p $workdir
ln -s $cwd/testdata $workdir
ln -s $cwd/testprog $workdir
(cd $workdir && runtest1 >>log 2>&1) &
done
wait -n
echo "done, crashes:"
find BUG -name "*core*"
echo
kill `jobs -p`
wait
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment