#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
#
#pragma ident "@(#)run-tests 1.1 09/07/08 SMI"
#
# *
# * U.S. Government Rights - Commercial software. Government users are subject
# * to the Sun Microsystems, Inc. standard license agreement and applicable
# * provisions of the FAR and its supplements.
#
# Use is subject to license terms.
#
# This distribution may include materials developed by third parties. Sun,
# Sun Microsystems, the Sun logo and Solaris are trademarks or registered
# trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
#
#
# Run Net-SNMP testing kit
# get the arch that we are building on
DIR=$1
MACH32=$2
MACH64=$3
if [ ${IPROC} == "amd64" ]; then
PATH=${IROOT}/usr/sbin/i86:${IROOTB}:${IROOTS}:/usr/ccs/bin:/usr/bin:${SPRO_VROOT}/bin:/usr/sbin:/sbin:/usr/bin:/usr/etc:/usr/sbin:/etc:.:/usr/openwin/bin
export PATH
#./RUNTESTS -a > test.32.out 2>&1
if [ $? -ne 0 ]; then
echo ""
echo "=================================================================="
echo "======= Tests failed for i386 architecture ===================="
echo "======= see test.32.out in ================="
echo "=================================================================="
echo ""
fi
PATH=${IROOT}/usr/sbin/amd64:${IROOT}/usr/bin:/usr/ccs/bin:/usr/bin:${SPRO_VROOT}/bin:/usr/sbin:/sbin:/usr/bin:/usr/etc:/usr/sbin:/etc:.:/usr/openwin/bin
export PATH
if [ $? -ne 0 ]; then
echo ""
echo "=================================================================="
echo "======= Tests failed for AMD architecture ===================="
echo "======= see test.64.out in $testdir ================="
echo "=================================================================="
echo ""
fi
fi
if [ ${IPROC} == "sparcv9" ]; then
PATH=${IROOT}/usr/sbin:${IROOT}/usr/bin:/usr/ccs/bin:/usr/bin:${SPRO_VROOT}/bin:/usr/sbin:/sbin:/usr/bin:/usr/etc:/usr/sbin:/etc:.:/usr/openwin/bin
export PATH
if [ $? -ne 0 ]; then
echo ""
echo "=================================================================="
echo "======= Tests failed for SPARC architecture ===================="
echo "======= see test.64.out in $testdir ================="
echo "=================================================================="
echo ""
fi
fi