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

# variables
hctsdir=SUNWhcts			# base directory
hname=$1			# test system
testcmd=tests/str/hds.stf	# storage test
prgdir=prgs			# program directory
dls=				# data list
inst=1
option=-x			# load-balancing option for hds
# functions

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

### MAIN ###

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

dls=`cat /etc/mnttab | grep -v ":boot" | grep -w "/dev/dsk" | \
grep "rw," | tr ":" "-" | sort -k 1.1 | awk -F"/" '{print $4}' | cut -f1 -d's'\
| uniq`

# hds

echo "h:<HR><B><U>System certification test - HDS</U></B>:"
echo "h:Testing on following devices - "$dls":"
echo "X:4:$testcmd"
echo "X:5:$option"

go_fun runt 1 0 1 $inst 


