components/net-snmp/run-tests
changeset 1679 51291a5fd692
parent 1650 ce501c11d5fa
equal deleted inserted replaced
1678:68d1cdc71760 1679:51291a5fd692
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    19 #
    19 #
    20 # CDDL HEADER END
    20 # CDDL HEADER END
    21 #
    21 #
    22 #
    22 #
    23 # Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 #
    25 #
    26 #pragma ident	"@(#)run-tests	1.1	09/07/08 SMI"
    26 #pragma ident	"@(#)run-tests	1.1	09/07/08 SMI"
    27 #
    27 #
    28 # *
    28 # *
    59 
    59 
    60 if [ ${IPROC} == "amd64" ]; then
    60 if [ ${IPROC} == "amd64" ]; then
    61 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
    61 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
    62 export PATH
    62 export PATH
    63 #./RUNTESTS -a > test.32.out 2>&1
    63 #./RUNTESTS -a > test.32.out 2>&1
    64 ./RUNTESTS > ${VER}/test.32.out 2>&1
    64 ./RUNTESTS -a > ${VER}/test.32.out 2>&1
    65 if [ $? -ne 0 ]; then
    65 if [ $? -ne 0 ]; then
    66 	echo ""
    66 	echo ""
    67 	echo "=================================================================="
    67 	echo "=================================================================="
    68 	echo "=======      Tests failed for i386 architecture ===================="
    68 	echo "=======      Tests failed for i386 architecture ===================="
    69 	echo "=======          see test.32.out in           ================="
    69 	echo "=======          see test.32.out in           ================="
    72 fi
    72 fi
    73 
    73 
    74 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
    74 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
    75 export PATH
    75 export PATH
    76 cd ${VER64}/testing
    76 cd ${VER64}/testing
    77 ./RUNTESTS > ${VER64}/test.64.out 2>&1
    77 ./RUNTESTS -a > ${VER64}/test.64.out 2>&1
    78 if [ $? -ne 0 ]; then
    78 if [ $? -ne 0 ]; then
    79 	echo ""
    79 	echo ""
    80 	echo "=================================================================="
    80 	echo "=================================================================="
    81 	echo "=======      Tests failed for AMD architecture ===================="
    81 	echo "=======      Tests failed for AMD architecture ===================="
    82 	echo "=======          see test.64.out in $testdir ================="
    82 	echo "=======          see test.64.out in $testdir ================="
    87 
    87 
    88 if [ ${IPROC} == "sparcv9" ]; then
    88 if [ ${IPROC} == "sparcv9" ]; then
    89 cd ${VER64}/testing
    89 cd ${VER64}/testing
    90 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
    90 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
    91 export PATH
    91 export PATH
    92 ./RUNTESTS > ${VER64}/test.64.out 2>&1
    92 ./RUNTESTS -a > ${VER64}/test.64.out 2>&1
    93 if [ $? -ne 0 ]; then
    93 if [ $? -ne 0 ]; then
    94         echo ""
    94         echo ""
    95         echo "=================================================================="
    95         echo "=================================================================="
    96         echo "=======      Tests failed for SPARC architecture ===================="
    96         echo "=======      Tests failed for SPARC architecture ===================="
    97         echo "=======          see test.64.out in $testdir ================="
    97         echo "=======          see test.64.out in $testdir ================="