Home | History | Annotate | Download | only in fsx-linux
      1 #!/bin/sh
      2 # SPDX-License-Identifier: GPL-2.0-or-later
      3 # Copyright (c) 2016-2018 Oracle and/or its affiliates. All Rights Reserved.
      4 # Copyright (c) International Business Machines  Corp., 2001
      5 #
      6 #  PURPOSE: Runs the fsx-linux tool with a 50000 iterations setting to
      7 #	    attempt to uncover the "doread:read input/output" error
      8 #	    received if the latest NFS patches for 2.4.17 from Trond
      9 #	    are not applied. http://nfs.sf.net
     10 
     11 TST_TESTFUNC="do_test"
     12 
     13 . nfs_lib.sh
     14 
     15 do_test()
     16 {
     17 	ITERATIONS=${ITERATIONS:=50000}
     18 	tst_res TINFO "starting fsx-linux -N $ITERATIONS..."
     19 	fsx-linux -N $ITERATIONS testfile > fsx-out.log 2>&1
     20 	if [ "$?" -ne 0 ]; then
     21 		tst_res TFAIL "Errors have resulted from this test"
     22 		cat fsx-out.log
     23 	else
     24 		tst_res TPASS "fsx-linux test passed"
     25 	fi
     26 }
     27 
     28 tst_run
     29