Home | History | Annotate | Download | only in nfs_stress
      1 #!/bin/sh
      2 # Copyright (c) 2015-2016 Oracle and/or its affiliates. All Rights Reserved.
      3 # Copyright (c) International Business Machines  Corp., 2001
      4 #
      5 # This program is free software; you can redistribute it and/or
      6 # modify it under the terms of the GNU General Public License as
      7 # published by the Free Software Foundation; either version 2 of
      8 # the License, or (at your option) any later version.
      9 #
     10 # This program is distributed in the hope that it would be useful,
     11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 # GNU General Public License for more details.
     14 #
     15 # You should have received a copy of the GNU General Public License
     16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
     17 #
     18 #  DESCRIPTION: This script sets up the NFS directories in the remote machine
     19 #               and invokes the program make_tree with parameters.
     20 #
     21 # Created by: Robbie Williamson (robbiew (at] us.ibm.com)
     22 
     23 TCID="nfs05"
     24 TST_TOTAL=1
     25 TST_CLEANUP="nfs_cleanup"
     26 
     27 DIR_NUM=${DIR_NUM:-"20"}
     28 FILE_NUM=${FILE_NUM:-"50"}
     29 THREAD_NUM=${THREAD_NUM:-"8"}
     30 
     31 . nfs_lib.sh
     32 . test_net.sh
     33 
     34 tst_check_cmds make gcc
     35 
     36 nfs_setup
     37 
     38 tst_resm TINFO "start nfs05_make_tree -d $DIR_NUM -f $FILE_NUM -t $THREAD_NUM"
     39 ROD nfs05_make_tree -d $DIR_NUM -f $FILE_NUM -t $THREAD_NUM
     40 
     41 tst_resm TPASS "test finished"
     42 
     43 tst_exit
     44