Home | History | Annotate | Download | only in nfs_stress
      1 #!/bin/sh
      2 # Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved.
      3 # Copyright (c) International Business Machines  Corp., 2003
      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 #  PURPOSE: Creates a text file of specified size locally and copies
     19 #           the file to an NFS mountpoint.  The two files are compared
     20 #           and checked for differences.  If the files differ, then
     21 #           the test fails.  By default, this test creates a 10Mb file
     22 #           and runs for one loop.
     23 #
     24 # Created by: Robbie Williamson (robbiew (at] us.ibm.com)
     25 
     26 TCID="nfs04"
     27 TST_TOTAL=1
     28 TST_CLEANUP="nfs_cleanup"
     29 
     30 . nfs_lib.sh
     31 . test_net.sh
     32 
     33 nfs_setup
     34 
     35 tst_resm TINFO "create 10M file"
     36 ROD nfs04_create_file 10 nfs04.testfile
     37 tst_resm TPASS "Test finished"
     38 
     39 tst_exit
     40