xfstests.zsh: Add an --nconnect= option
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
088f2eead1
commit
c0883fd99e
|
@ -7,6 +7,7 @@ function _xfstests.zsh() {
|
|||
"domains\:domains\:($(virsh list --all --name))"' \
|
||||
{-k,--scratch}'[the exported scratch directory on the server]: : _files -/' \
|
||||
{-p,--mountpoint}'[the directory to mount the server]: : _files -/' \
|
||||
--nconnect'[number of connections]: :($(seq 1 32))' \
|
||||
{-r,--rdma}'[test using rdma]: :(rxe siw)' \
|
||||
{-q,--scratchmnt}'[the directory to mount the scratch export]: : _files -/' \
|
||||
{-s,--server}'[the server to test against]: : _alternative
|
||||
|
|
|
@ -11,6 +11,7 @@ PROTO=(tcp)
|
|||
zparseopts -D -K \
|
||||
c:=CLIENT -client:=CLIENT \
|
||||
k:=SCRATCH -scratch:=SCRATCH \
|
||||
-nconnect:=NCONNECT \
|
||||
p:=MOUNTPOINT -mountpoint:=MOUNTPOINT \
|
||||
q:=SCRATCHMNT -scratchmnt:=SCRATCHMNT \
|
||||
r:=RDMA -rdma:=RDMA \
|
||||
|
@ -43,6 +44,9 @@ if [ ${#RDMA} -gt 0 ]; then
|
|||
PROTO+=(rdma)
|
||||
$BIN/rping.zsh ${RDMA[-1]} ${CLIENT[-1]} ${SERVER[-1]}
|
||||
fi
|
||||
if [ ${#NCONNECT} -gt 0 ]; then
|
||||
OPTIONS="$OPTIONS,nconnect=${NCONNECT[-1]}"
|
||||
fi
|
||||
|
||||
ssh ${CLIENT[-1]} "sudo setup-xfstests.zsh ${SERVER[-1]} ${EXPORT[-1]} ${MOUNTPOINT[-1]} \
|
||||
${SCRATCH[-1]} ${SCRATCHMNT[-1]} $USER"
|
||||
|
|
Loading…
Reference in New Issue