mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: printf to awk
Shorten trace logs.
This commit is contained in:
parent
9fbcba1c40
commit
4b07ae55f1
@ -22,9 +22,11 @@ mkdir -p $mnt
|
|||||||
|
|
||||||
aux prepare_devs 5 64
|
aux prepare_devs 5 64
|
||||||
|
|
||||||
printf "%0.sA" {1..16384} >> fileA
|
# Use awk instead of anoyingly long log out from printf
|
||||||
printf "%0.sB" {1..16384} >> fileB
|
#printf "%0.sA" {1..16384} >> fileA
|
||||||
printf "%0.sC" {1..16384} >> fileC
|
awk 'BEGIN { while (z++ < 16384) printf "A" }' > fileA
|
||||||
|
awk 'BEGIN { while (z++ < 16384) printf "B" }' > fileB
|
||||||
|
awk 'BEGIN { while (z++ < 16384) printf "C" }' > 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,10 +23,11 @@ mkdir -p $mnt
|
|||||||
|
|
||||||
aux prepare_devs 5 64
|
aux prepare_devs 5 64
|
||||||
|
|
||||||
printf "%0.sA" {1..16384} >> fileA
|
# Use awk instead of anoyingly long log out from printf
|
||||||
# instead of long debug 'printf' log use 'sed' and just replace A->B|C
|
#printf "%0.sA" {1..16384} >> fileA
|
||||||
sed -e 's,A,B,g' fileA > fileB
|
awk 'BEGIN { while (z++ < 16384) printf "A" }' > fileA
|
||||||
sed -e 's,A,C,g' fileA > fileC
|
awk 'BEGIN { while (z++ < 16384) printf "B" }' > fileB
|
||||||
|
awk 'BEGIN { while (z++ < 16384) printf "C" }' > 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