mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Use source data for genfiles that is guaranteed to exist
This commit is contained in:
parent
5a46cf1d48
commit
bab1e26d9b
@ -121,7 +121,7 @@ alterFiles() {
|
|||||||
|
|
||||||
# Create some new files and alter existing ones
|
# Create some new files and alter existing ones
|
||||||
echo " $i: random nonoverlapping"
|
echo " $i: random nonoverlapping"
|
||||||
../genfiles -maxexp 22 -files 200
|
../genfiles -maxexp 22 -files 200 -src ../genfiles
|
||||||
echo " $i: new files in ro directory"
|
echo " $i: new files in ro directory"
|
||||||
uuidgen > ro-test/$(uuidgen)
|
uuidgen > ro-test/$(uuidgen)
|
||||||
chmod 500 ro-test
|
chmod 500 ro-test
|
||||||
@ -146,7 +146,7 @@ echo "Setting up files..."
|
|||||||
for i in 1 12-2 23-3; do
|
for i in 1 12-2 23-3; do
|
||||||
pushd "s$i" >/dev/null
|
pushd "s$i" >/dev/null
|
||||||
echo " $i: random nonoverlapping"
|
echo " $i: random nonoverlapping"
|
||||||
../genfiles -maxexp 22 -files 400
|
../genfiles -maxexp 22 -files 400 -src ../genfiles
|
||||||
echo " $i: ro directory"
|
echo " $i: ro directory"
|
||||||
mkdir ro-test
|
mkdir ro-test
|
||||||
uuidgen > ro-test/$(uuidgen)
|
uuidgen > ro-test/$(uuidgen)
|
||||||
|
@ -115,7 +115,7 @@ alterFiles() {
|
|||||||
pushd "s$i" >/dev/null
|
pushd "s$i" >/dev/null
|
||||||
|
|
||||||
echo " $i: random nonoverlapping"
|
echo " $i: random nonoverlapping"
|
||||||
../genfiles -maxexp 22 -files 200
|
../genfiles -maxexp 22 -files 200 -src ../genfiles
|
||||||
echo " $i: append to large file"
|
echo " $i: append to large file"
|
||||||
dd if=large-$i bs=1024k count=4 >> large-$i 2>/dev/null
|
dd if=large-$i bs=1024k count=4 >> large-$i 2>/dev/null
|
||||||
../md5r -l > ../md5-tmp
|
../md5r -l > ../md5-tmp
|
||||||
@ -135,7 +135,7 @@ for i in 1 2 3 12-1 12-2 23-2 23-3; do
|
|||||||
mkdir "s$i"
|
mkdir "s$i"
|
||||||
pushd "s$i" >/dev/null
|
pushd "s$i" >/dev/null
|
||||||
echo " $i: random nonoverlapping"
|
echo " $i: random nonoverlapping"
|
||||||
../genfiles -maxexp 22 -files 200
|
../genfiles -maxexp 22 -files 200 -src ../genfiles
|
||||||
echo " $i: empty file"
|
echo " $i: empty file"
|
||||||
touch "empty-$i"
|
touch "empty-$i"
|
||||||
echo " $i: large file"
|
echo " $i: large file"
|
||||||
|
Loading…
Reference in New Issue
Block a user