#!/bin/ksh
#
#pragma ident "@(#)tests7.tst	1.8      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/common/CON5_str.stf	# CON5 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

SDIR=`/opt/SUNWstaf/prgs/sliceinfo | awk '{print $2}' | sed -n '3p'`
TDIR=`/opt/SUNWstaf/prgs/sliceinfo | awk '{print $2}' | sed -n '7p'`

srcdir=$SDIR/kernel2
targdir=$TDIR/tmp

echo "h:<HR><B><U>Storage tests - CON5</U></B>:"
echo "X:4:$testcmd"

echo "h: Default source directory = $srcdir:"
echo "h: Default target directory = $targdir:"

echo "T:Enter your source directory:$srcdir"
echo "x:5:"
echo "T:Enter your target directory:$targdir"
echo "x:6:"

go_fun runt 1 0 10 1
