mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 01:55:10 +03:00
test: Use printf to generate data
...to avoid unnecessary dependency on python
This commit is contained in:
parent
b5811b7c9c
commit
53803821de
@ -22,11 +22,9 @@ mkdir -p $mnt
|
|||||||
|
|
||||||
aux prepare_devs 6 64
|
aux prepare_devs 6 64
|
||||||
|
|
||||||
PYTHON="$(which python3 python2 python 2>/dev/null | head -n 1)"
|
printf "%0.sA" {1..16384} >> fileA
|
||||||
test -n "$PYTHON" || skip
|
printf "%0.sB" {1..16384} >> fileB
|
||||||
$PYTHON -c "print 'A'*16384" >> fileA
|
printf "%0.sC" {1..16384} >> fileC
|
||||||
$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,11 +25,9 @@ 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
|
||||||
|
|
||||||
PYTHON="$(which python3 python2 python 2>/dev/null | head -n 1)"
|
printf "%0.sA" {1..16384} >> fileA
|
||||||
test -n "$PYTHON" || skip
|
printf "%0.sB" {1..16384} >> fileB
|
||||||
$PYTHON -c "print 'A'*16384" >> fileA
|
printf "%0.sC" {1..16384} >> fileC
|
||||||
$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,11 +22,9 @@ mkdir -p $mnt
|
|||||||
|
|
||||||
aux prepare_devs 5 64
|
aux prepare_devs 5 64
|
||||||
|
|
||||||
PYTHON="$(which python3 python2 python 2>/dev/null | head -n 1)"
|
printf "%0.sA" {1..16384} >> fileA
|
||||||
test -n "$PYTHON" || skip
|
printf "%0.sB" {1..16384} >> fileB
|
||||||
$PYTHON -c "print 'A'*16384" >> fileA
|
printf "%0.sC" {1..16384} >> fileC
|
||||||
$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,11 +23,9 @@ mkdir -p $mnt
|
|||||||
|
|
||||||
aux prepare_devs 5 64
|
aux prepare_devs 5 64
|
||||||
|
|
||||||
PYTHON="$(which python3 python2 python 2>/dev/null | head -n 1)"
|
printf "%0.sA" {1..16384} >> fileA
|
||||||
test -n "$PYTHON" || skip
|
printf "%0.sB" {1..16384} >> fileB
|
||||||
$PYTHON -c "print 'A'*16384" >> fileA
|
printf "%0.sC" {1..16384} >> fileC
|
||||||
$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