Tweak locking and integration test.

This commit is contained in:
Jakob Borg
2014-01-20 22:22:27 +01:00
parent b67443eb40
commit d9ffd359e2
7 changed files with 122 additions and 110 deletions

View File

@@ -2,6 +2,7 @@
rm -rf files-* conf-* md5-*
extraopts=""
p=$(pwd)
go build genfiles.go
@@ -29,19 +30,22 @@ EOT
mkdir files-$i
pushd files-$i >/dev/null
../genfiles -maxsize 780 -files 1500
../genfiles -maxexp 21 -files 4000
../md5r > ../md5-$i
popd >/dev/null
done
echo "Starting..."
for i in 1 2 3 ; do
syncthing -c conf-$i --no-gui -l :2200$i &
sleep 1
syncthing -c conf-$i --no-gui -l :2200$i $extraopts &
done
cat md5-* | sort > md5-tot
while true ; do
sleep 10
read
echo Verifying...
conv=0
for i in 1 2 3 ; do
pushd files-$i >/dev/null