xfstests.zsh: Add a --rwsize option
For setting the rsize and wsize used by the tests Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
d770421063
commit
061d076ee9
|
@ -9,6 +9,7 @@ function _xfstests.zsh() {
|
||||||
{-p,--mountpoint}'[the directory to mount the server]: : _files -/' \
|
{-p,--mountpoint}'[the directory to mount the server]: : _files -/' \
|
||||||
--nconnect'[number of connections]: :($(seq 1 32))' \
|
--nconnect'[number of connections]: :($(seq 1 32))' \
|
||||||
{-r,--rdma}'[test using rdma]: :(rxe siw)' \
|
{-r,--rdma}'[test using rdma]: :(rxe siw)' \
|
||||||
|
--rwsize'[test with a secific rsize & wsize]: :($(seq 4096 4096 1048576))' \
|
||||||
{-q,--scratchmnt}'[the directory to mount the scratch export]: : _files -/' \
|
{-q,--scratchmnt}'[the directory to mount the scratch export]: : _files -/' \
|
||||||
{-s,--server}'[the server to test against]: : _alternative
|
{-s,--server}'[the server to test against]: : _alternative
|
||||||
"hosts\:hosts\: _ssh_hosts"
|
"hosts\:hosts\: _ssh_hosts"
|
||||||
|
|
|
@ -10,6 +10,7 @@ zparseopts -D -K \
|
||||||
p:=MOUNTPOINT -mountpoint:=MOUNTPOINT \
|
p:=MOUNTPOINT -mountpoint:=MOUNTPOINT \
|
||||||
q:=SCRATCHMNT -scratchmnt:=SCRATCHMNT \
|
q:=SCRATCHMNT -scratchmnt:=SCRATCHMNT \
|
||||||
r:=RDMA -rdma:=RDMA \
|
r:=RDMA -rdma:=RDMA \
|
||||||
|
-rwsize:=RWSIZE \
|
||||||
s:=SERVER -server:=SERVER \
|
s:=SERVER -server:=SERVER \
|
||||||
x:=EXPORT -export:=EXPORT \
|
x:=EXPORT -export:=EXPORT \
|
||||||
v+:=VERSION -version+:=VERSION
|
v+:=VERSION -version+:=VERSION
|
||||||
|
@ -41,6 +42,9 @@ prepare_to_test
|
||||||
if [ ${#NCONNECT} -gt 0 ]; then
|
if [ ${#NCONNECT} -gt 0 ]; then
|
||||||
OPTIONS="$OPTIONS,nconnect=${NCONNECT[-1]}"
|
OPTIONS="$OPTIONS,nconnect=${NCONNECT[-1]}"
|
||||||
fi
|
fi
|
||||||
|
if [ ${#RWSIZE} -gt 0 ]; then
|
||||||
|
OPTIONS="$OPTIONS,rsize=${RWSIZE[-1]},wsize=${RWSIZE[-1]}"
|
||||||
|
fi
|
||||||
|
|
||||||
testargs=()
|
testargs=()
|
||||||
for arg in $*; do
|
for arg in $*; do
|
||||||
|
|
Loading…
Reference in New Issue