#!/bin/ksh
#
#pragma ident "@(#)test8.tst	1.4      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/mcpu/mcpu.stf	# storage test
prgdir=prgs			# program directory
num_cpu=			# number of CPUs in system
inst=1
# functions

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

### MAIN ###

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

num_cpu=`psrinfo | wc -l`

# mcpu

echo "h:<HR><B><U>System certification test - MCPU</U></B>:"
echo "h:Number of CPUs detected = $num_cpu:"
echo "X:4:$testcmd"

go_fun runt 1 0 1 $inst 


