Create a setup-testdirs.zsh

For creating test directories. This basically does the same thing as
cthon's --mkdirs option, but split out into a file that we control and
can used for other tests

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Anna Schumaker 2021-12-09 14:11:06 -05:00
parent c431e216bc
commit 802135201a
3 changed files with 14 additions and 3 deletions

View File

@ -1,6 +1,7 @@
#!/bin/zsh
BIN=$HOME/bin
SCRIPTS=(grub-list.zsh setup-cthon.zsh)
SCRIPTS=(grub-list.zsh setup-testdirs.zsh setup-cthon.zsh)
function install_script() {
ssh $1 mkdir -p bin/

View File

@ -15,5 +15,4 @@ TRAPEXIT() {
mkdir -p $MOUNTPOINT
mount -o sec=sys $SERVER:$EXPORT $MOUNTPOINT
cd /home/$USER/cthon04 && ./runcthon --rdma --mkdirs $MOUNTPOINT/$USER
chmod 777 $MOUNTPOINT/$USER
/home/$USER/bin/setup-testdirs.zsh $MOUNTPOINT/$USER

11
setup-testdirs.zsh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/zsh
PARENT=$1
function mkdirs() {
for vers in 3 4 41 42; do
mkdir -p -m 777 $PARENT/nfsv$vers$1
done
}
mkdirs tcp
mkdirs rdma