plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # This will run all the network tests, with the status logged in /tmp/netpan.log |
| 3 | cd `dirname $0` |
| 4 | export LTPROOT=${PWD} |
| 5 | |
| 6 | |
| 7 | # ---***** THESE MUST BE SET FOR CORRECT OPERATION *****--- |
plars | 6502f49 | 2001-06-27 22:06:13 +0000 | [diff] [blame] | 8 | export RHOST= |
| 9 | export PASSWD= |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 10 | # ---***************************************************--- |
| 11 | |
robbiew | 2727dea | 2002-03-19 18:43:44 +0000 | [diff] [blame] | 12 | # ---***** NFS OPTIONAL SETTINGS *****--- |
| 13 | # DEFAULTS |
| 14 | # export VERSION=2 |
| 15 | # export SOCKET_TYPE=udp |
| 16 | # ---*********************************--- |
| 17 | |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 18 | |
robbiew | 85e1eef | 2002-06-20 21:54:32 +0000 | [diff] [blame] | 19 | export TMPDIR=/tmp/netpan-$$ |
robbiew | 852fdbd | 2002-06-20 22:00:38 +0000 | [diff] [blame] | 20 | mkdir $TMPDIR |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 21 | |
plars | 2c8e1fa | 2001-09-06 12:14:19 +0000 | [diff] [blame] | 22 | cat ${LTPROOT}/runtest/tcp_cmds > $TMPDIR/network.tests |
| 23 | cat ${LTPROOT}/runtest/multicast >> $TMPDIR/network.tests |
| 24 | cat ${LTPROOT}/runtest/rpc >> $TMPDIR/network.tests |
| 25 | cat ${LTPROOT}/runtest/nfs >> $TMPDIR/network.tests |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 26 | |
robbiew | 85e1eef | 2002-06-20 21:54:32 +0000 | [diff] [blame] | 27 | cd $TMPDIR |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 28 | |
plars | 2c8e1fa | 2001-09-06 12:14:19 +0000 | [diff] [blame] | 29 | export PATH="${PATH}:${LTPROOT}/testcases/bin" |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 30 | |
robbiew | 03cbf73 | 2001-10-12 21:06:50 +0000 | [diff] [blame] | 31 | ${LTPROOT}/ver_linux |
| 32 | |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 33 | ${LTPROOT}/pan/pan -e -l /tmp/netpan.log -S -a ltpnet -n ltpnet -f ${TMPDIR}/network.tests |
| 34 | |
| 35 | if [ $? -eq "0" ]; then |
| 36 | echo pan reported PASS |
| 37 | else |
| 38 | echo pan reported FAIL |
| 39 | fi |
| 40 | |
robbiew | 85e1eef | 2002-06-20 21:54:32 +0000 | [diff] [blame] | 41 | rm -rf ${TMPDIR} |