0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035 TESTNAME="test001_basiccall"
0036 TOUT=2
0037
0038 PWD=`pwd`
0039 if [ `echo $PWD | grep $TESTNAME ` ]; then
0040
0041 echo > /dev/null
0042 else
0043
0044 pushd .
0045 echo "Doing cd"
0046 cd test001_basiccall
0047 fi;
0048
0049 . ../testenv.sh
0050
0051 export NDRX_TOUT=2
0052
0053 ulimit -c unlimited
0054
0055 export NDRX_DEBUG_CONF=`pwd`/debug-bench.conf
0056 echo "Debug config set to: [$NDRX_DEBUG_CONF]"
0057 rm *.log
0058
0059
0060
0061
0062
0063 (./atmi.sv1 -t10 -i 123 2>&1) > ./atmisv1.log &
0064 (./atmi.sv1 -t10 -i 124 2>&1) > ./atmisv1.log &
0065 (./atmi.sv1 -t10 -i 125 2>&1) > ./atmisv1.log &
0066 (./atmi.sv1 -t10 -i 125 2>&1) > ./atmisv1.log &
0067 (./atmi.sv1 -t10 -i 125 2>&1) > ./atmisv1.log &
0068 (./atmi.sv1 -t10 -i 125 2>&1) > ./atmisv1.log &
0069 (./atmi.sv1 -t10 -i 125 2>&1) > ./atmisv1.log &
0070 (./atmi.sv1 -t10 -i 125 2>&1) > ./atmisv1.log &
0071 (./atmi.sv1 -t10 -i 125 2>&1) > ./atmisv1.log &
0072 (./atmi.sv1 -t10 -i 125 2>&1) > ./atmisv1.log &
0073 sleep 1
0074 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_1.log &
0075 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_2.log &
0076 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_3.log &
0077 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_4.log &
0078 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_5.log &
0079 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_6.log &
0080 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_7.log &
0081 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_8.log &
0082 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_9.log &
0083 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_10.log &
0084 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_11.log &
0085 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_12.log &
0086 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_13.log &
0087 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_14.log &
0088 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_15.log &
0089 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_16.log &
0090 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_17.log &
0091 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_18.log &
0092 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_19.log &
0093 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_20.log &
0094 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_21.log &
0095 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_22.log &
0096 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_23.log &
0097 $PSCMD | grep atmiclt1 | grep -v grep | wc
0098
0099
0100 echo 1 > sync.log
0101
0102
0103 (./atmiclt1 2>&1 s :1:8:) > ./atmiclt1_24.log
0104
0105 sleep 5
0106 RETP=`$PSCMD | grep atmiclt1 | grep -v grep`
0107 while [[ "X$RETP" != "X" ]]; do
0108 RETP=`$PSCMD | grep atmiclt1 | grep -v grep`
0109 done
0110
0111 RET=$?
0112
0113
0114 if [ "X`grep TESTERROR *.log`" != "X" ]; then
0115 echo "Test error detected!"
0116 RET=-2
0117 fi
0118
0119 killall atmi.sv1 2>/dev/null
0120
0121 killall atmiclt1
0122
0123 popd 2>/dev/null
0124
0125 exit $RET
0126
0127