#!/bin/ksh
#
#pragma ident "@(#)tests3.tst	1.6      01/07/27 SMI"
# 
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#
#
# Original Author: Michael Koller
# Modified by:	   Andrew McCarthy
#

# variables
hctsdir=SUNWhcts			# base directory
hname=$1			# test system
testcmd=tests/str/Fs_stress.stf	# harddrive test
prgdir=prgs			# program directory

# functions

# do function
go_fun()
{
	$prgdir/funcs "$*" 2>&1
}	

### MAIN ###

# change to base directory
cd `dirname $0`
while [ `basename $PWD` != $hctsdir ]
do
	cd ..
done

targdev=`/opt/SUNWstaf/prgs/sliceinfo | awk '{print $1}' | sed -n '1p'`
args="-F ufs -D $targdev -r -n 30 -f 128k:16m -t 1k:256k -s"

echo "h:<HR><B><U>Storage tests - Fs_stress</U></B>:"
echo "X:4:$testcmd"
echo "h:Default device = $targdev:"
echo "T:Enter your options:$args"

echo "x:5:"

go_fun runt 1 0 1 1
