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 | |
| 12 | |
| 13 | export TMPDIR=/tmp |
| 14 | |
plars | 2c8e1fa | 2001-09-06 12:14:19 +0000 | [diff] [blame] | 15 | cat ${LTPROOT}/runtest/tcp_cmds > $TMPDIR/network.tests |
| 16 | cat ${LTPROOT}/runtest/multicast >> $TMPDIR/network.tests |
| 17 | cat ${LTPROOT}/runtest/rpc >> $TMPDIR/network.tests |
| 18 | cat ${LTPROOT}/runtest/nfs >> $TMPDIR/network.tests |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 19 | |
| 20 | mkdir /tmp/netpan-$$ |
| 21 | cd /tmp/netpan-$$ |
| 22 | |
plars | 2c8e1fa | 2001-09-06 12:14:19 +0000 | [diff] [blame] | 23 | export PATH="${PATH}:${LTPROOT}/testcases/bin" |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 24 | |
robbiew | 03cbf73 | 2001-10-12 21:06:50 +0000 | [diff] [blame^] | 25 | ${LTPROOT}/ver_linux |
| 26 | |
plars | 122242c | 2001-06-27 20:26:37 +0000 | [diff] [blame] | 27 | ${LTPROOT}/pan/pan -e -l /tmp/netpan.log -S -a ltpnet -n ltpnet -f ${TMPDIR}/network.tests |
| 28 | |
| 29 | if [ $? -eq "0" ]; then |
| 30 | echo pan reported PASS |
| 31 | else |
| 32 | echo pan reported FAIL |
| 33 | fi |
| 34 | |
| 35 | rm -f ${TMPDIR}/network.tests |