mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
tests: Use python single liner to generate data
This commit is contained in:
parent
70a45c44e8
commit
b5811b7c9c
@ -22,9 +22,11 @@ mkdir -p $mnt
|
|||||||
|
|
||||||
aux prepare_devs 6 64
|
aux prepare_devs 6 64
|
||||||
|
|
||||||
for i in `seq 1 16384`; do echo -n "A" >> fileA; done
|
PYTHON="$(which python3 python2 python 2>/dev/null | head -n 1)"
|
||||||
for i in `seq 1 16384`; do echo -n "B" >> fileB; done
|
test -n "$PYTHON" || skip
|
||||||
for i in `seq 1 16384`; do echo -n "C" >> fileC; done
|
$PYTHON -c "print 'A'*16384" >> fileA
|
||||||
|
$PYTHON -c "print 'B'*16384" >> fileB
|
||||||
|
$PYTHON -c "print 'C'*16384" >> fileC
|
||||||
|
|
||||||
# generate random data
|
# generate random data
|
||||||
dd if=/dev/urandom of=randA bs=512K count=2
|
dd if=/dev/urandom of=randA bs=512K count=2
|
||||||
|
@ -25,9 +25,11 @@ mkdir -p $mnt
|
|||||||
# raid1 LV needs to be extended to 512MB to test imeta being exended
|
# raid1 LV needs to be extended to 512MB to test imeta being exended
|
||||||
aux prepare_devs 4 600
|
aux prepare_devs 4 600
|
||||||
|
|
||||||
for i in `seq 1 16384`; do echo -n "A" >> fileA; done
|
PYTHON="$(which python3 python2 python 2>/dev/null | head -n 1)"
|
||||||
for i in `seq 1 16384`; do echo -n "B" >> fileB; done
|
test -n "$PYTHON" || skip
|
||||||
for i in `seq 1 16384`; do echo -n "C" >> fileC; done
|
$PYTHON -c "print 'A'*16384" >> fileA
|
||||||
|
$PYTHON -c "print 'B'*16384" >> fileB
|
||||||
|
$PYTHON -c "print 'C'*16384" >> fileC
|
||||||
|
|
||||||
# generate random data
|
# generate random data
|
||||||
dd if=/dev/urandom of=randA bs=512K count=2
|
dd if=/dev/urandom of=randA bs=512K count=2
|
||||||
|
@ -22,9 +22,11 @@ mkdir -p $mnt
|
|||||||
|
|
||||||
aux prepare_devs 5 64
|
aux prepare_devs 5 64
|
||||||
|
|
||||||
for i in `seq 1 16384`; do echo -n "A" >> fileA; done
|
PYTHON="$(which python3 python2 python 2>/dev/null | head -n 1)"
|
||||||
for i in `seq 1 16384`; do echo -n "B" >> fileB; done
|
test -n "$PYTHON" || skip
|
||||||
for i in `seq 1 16384`; do echo -n "C" >> fileC; done
|
$PYTHON -c "print 'A'*16384" >> fileA
|
||||||
|
$PYTHON -c "print 'B'*16384" >> fileB
|
||||||
|
$PYTHON -c "print 'C'*16384" >> fileC
|
||||||
|
|
||||||
# generate random data
|
# generate random data
|
||||||
dd if=/dev/urandom of=randA bs=512K count=2
|
dd if=/dev/urandom of=randA bs=512K count=2
|
||||||
|
@ -23,9 +23,11 @@ mkdir -p $mnt
|
|||||||
|
|
||||||
aux prepare_devs 5 64
|
aux prepare_devs 5 64
|
||||||
|
|
||||||
for i in `seq 1 16384`; do echo -n "A" >> fileA; done
|
PYTHON="$(which python3 python2 python 2>/dev/null | head -n 1)"
|
||||||
for i in `seq 1 16384`; do echo -n "B" >> fileB; done
|
test -n "$PYTHON" || skip
|
||||||
for i in `seq 1 16384`; do echo -n "C" >> fileC; done
|
$PYTHON -c "print 'A'*16384" >> fileA
|
||||||
|
$PYTHON -c "print 'B'*16384" >> fileB
|
||||||
|
$PYTHON -c "print 'C'*16384" >> fileC
|
||||||
|
|
||||||
# generate random data
|
# generate random data
|
||||||
dd if=/dev/urandom of=randA bs=512K count=2
|
dd if=/dev/urandom of=randA bs=512K count=2
|
||||||
|
Loading…
Reference in New Issue
Block a user