blob: 8e6a13ee71e8e32d7a4fe54fa6bf235dcf379909 [file] [log] [blame]
plars122242c2001-06-27 20:26:37 +00001#!/bin/sh
2# This will run all the network tests, with the status logged in /tmp/netpan.log
3cd `dirname $0`
4export LTPROOT=${PWD}
5
6
7# ---***** THESE MUST BE SET FOR CORRECT OPERATION *****---
plars6502f492001-06-27 22:06:13 +00008export RHOST=
9export PASSWD=
plars122242c2001-06-27 20:26:37 +000010# ---***************************************************---
11
robbiew2727dea2002-03-19 18:43:44 +000012# ---***** NFS OPTIONAL SETTINGS *****---
13# DEFAULTS
14# export VERSION=2
15# export SOCKET_TYPE=udp
16# ---*********************************---
17
plars122242c2001-06-27 20:26:37 +000018
robbiew85e1eef2002-06-20 21:54:32 +000019export TMPDIR=/tmp/netpan-$$
robbiew852fdbd2002-06-20 22:00:38 +000020mkdir $TMPDIR
plars122242c2001-06-27 20:26:37 +000021
plars2c8e1fa2001-09-06 12:14:19 +000022cat ${LTPROOT}/runtest/tcp_cmds > $TMPDIR/network.tests
23cat ${LTPROOT}/runtest/multicast >> $TMPDIR/network.tests
24cat ${LTPROOT}/runtest/rpc >> $TMPDIR/network.tests
25cat ${LTPROOT}/runtest/nfs >> $TMPDIR/network.tests
plars122242c2001-06-27 20:26:37 +000026
robbiew85e1eef2002-06-20 21:54:32 +000027cd $TMPDIR
plars122242c2001-06-27 20:26:37 +000028
plars2c8e1fa2001-09-06 12:14:19 +000029export PATH="${PATH}:${LTPROOT}/testcases/bin"
plars122242c2001-06-27 20:26:37 +000030
robbiew03cbf732001-10-12 21:06:50 +000031${LTPROOT}/ver_linux
32
plars122242c2001-06-27 20:26:37 +000033${LTPROOT}/pan/pan -e -l /tmp/netpan.log -S -a ltpnet -n ltpnet -f ${TMPDIR}/network.tests
34
35if [ $? -eq "0" ]; then
36 echo pan reported PASS
37else
38 echo pan reported FAIL
39fi
40
robbiew85e1eef2002-06-20 21:54:32 +000041rm -rf ${TMPDIR}