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:
Anna Schumaker 2022-05-24 13:14:13 -04:00
parent d770421063
commit 061d076ee9
2 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ function _xfstests.zsh() {
{-p,--mountpoint}'[the directory to mount the server]: : _files -/' \
--nconnect'[number of connections]: :($(seq 1 32))' \
{-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 -/' \
{-s,--server}'[the server to test against]: : _alternative
"hosts\:hosts\: _ssh_hosts"

View File

@ -10,6 +10,7 @@ zparseopts -D -K \
p:=MOUNTPOINT -mountpoint:=MOUNTPOINT \
q:=SCRATCHMNT -scratchmnt:=SCRATCHMNT \
r:=RDMA -rdma:=RDMA \
-rwsize:=RWSIZE \
s:=SERVER -server:=SERVER \
x:=EXPORT -export:=EXPORT \
v+:=VERSION -version+:=VERSION
@ -41,6 +42,9 @@ prepare_to_test
if [ ${#NCONNECT} -gt 0 ]; then
OPTIONS="$OPTIONS,nconnect=${NCONNECT[-1]}"
fi
if [ ${#RWSIZE} -gt 0 ]; then
OPTIONS="$OPTIONS,rsize=${RWSIZE[-1]},wsize=${RWSIZE[-1]}"
fi
testargs=()
for arg in $*; do