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:
parent
c431e216bc
commit
802135201a
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
|
||||||
BIN=$HOME/bin
|
BIN=$HOME/bin
|
||||||
SCRIPTS=(grub-list.zsh setup-cthon.zsh)
|
SCRIPTS=(grub-list.zsh setup-testdirs.zsh setup-cthon.zsh)
|
||||||
|
|
||||||
function install_script() {
|
function install_script() {
|
||||||
ssh $1 mkdir -p bin/
|
ssh $1 mkdir -p bin/
|
||||||
|
|
|
@ -15,5 +15,4 @@ TRAPEXIT() {
|
||||||
|
|
||||||
mkdir -p $MOUNTPOINT
|
mkdir -p $MOUNTPOINT
|
||||||
mount -o sec=sys $SERVER:$EXPORT $MOUNTPOINT
|
mount -o sec=sys $SERVER:$EXPORT $MOUNTPOINT
|
||||||
cd /home/$USER/cthon04 && ./runcthon --rdma --mkdirs $MOUNTPOINT/$USER
|
/home/$USER/bin/setup-testdirs.zsh $MOUNTPOINT/$USER
|
||||||
chmod 777 $MOUNTPOINT/$USER
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue