These scripts run the protocol test suites for the SSCOP, SSCF-UNI and

UNI protocols. The actual test suites are not in these directories because
of their size. One needs to install the atmsupport port (the script
will remind you, if it cannot find the port).

The SSCOP test suite includes booth the ETSI and the ITU-T test suite,
the SSCF-UNI test suite is home grown and the UNI test suite is the
P2MP ETSI test suite. Others may follow.
This commit is contained in:
Hartmut Brandt 2004-01-29 16:01:57 +00:00
parent 2e0b641e23
commit ac9c95fde8
6 changed files with 145 additions and 0 deletions

View File

@ -0,0 +1,53 @@
#!/bin/sh
# $FreeBSD$
fatal() {
echo -e "$*" >&2
exit 1
}
msg() {
echo -e "$*" >&2
}
usage1() {
msg "Usage: RunTest.sh [-hq] [-b <localbase>]"
msg "Options:"
msg " -h show this info"
msg " -b <localbase> localbase if not /usr/local"
msg " -q be quite"
msg " -u run user space test, not kernel"
exit 0
}
parse_options() {
args=`getopt b:hqu $*`
if [ $? -ne 0 ] ; then
fatal "Usage: $0 [-qu] [-b <localbase>]"
fi
options=""
set -- $args
for i
do
case "$i"
in
-h) usage1;;
-u|-q) options="$options $i"; shift;;
-b) LOCALBASE="$2"; shift; shift;;
--) shift; break;;
esac
done
if [ "$LOCALBASE" = "" ] ; then
LOCALBASE="/usr/local"
pkg_info -I atmsupport-\* 2>/dev/null >/dev/null
if [ $? -ne 0 ] ; then
fatal "Atmsupport package not installed. \
Goto /usr/ports/net/atmsupport,\ntype 'make ; make install ; make clean' \
and re-run this script"
fi
fi
}

View File

@ -0,0 +1,16 @@
$FreeBSD$
This directory contains tests for the ATM stuff. Specific tests for HARP
are in the harp subdirectory and are not automatically run. All
other tests can be run from the top-level or from their sub-directories by
starting RunTest.sh.
These tests require ports/net/atmsupport to be installed - the
scripts will remind you if they cannot find the package.
harp HARP tests
proto_sscfu test suite for the SSCF at the user interface
proto_sscop test suite for the SSCOP protocol
proto_uni test suite for the UNI protocol
harti@freebsd.org

View File

@ -0,0 +1,43 @@
#!/bin/sh
# $FreeBSD$
. ./Funcs.sh
#
# Just check the legality of the options and pass them along
#
args=`getopt b:hq $*`
if [ $? -ne 0 ] ; then
fatal "Usage: $0 [-q] [-b <localbase>]"
fi
usage() {
msg "Usage: RunTest.sh [-hq] [-b <localbase>]"
msg "Options:"
msg " -h show this info"
msg " -b <localbase> localbase if not /usr/local"
msg " -q be quite"
exit 0
}
options=""
set -- $args
for i
do
case "$i"
in
-h) usage;;
-b) options="$options $i $2" ; shift; shift;;
-q) options="$options $i" ; shift;;
--) shift; break;;
esac
done
(cd proto_uni ; ./RunTest.sh -u $options)
(cd proto_sscop ; ./RunTest.sh -u $options)
(cd proto_sscfu ; ./RunTest.sh -u $options)
(cd proto_uni ; ./RunTest.sh $options)
(cd proto_sscop ; ./RunTest.sh $options)
(cd proto_sscfu ; ./RunTest.sh $options)

View File

@ -0,0 +1,11 @@
#!/bin/sh
# $FreeBSD$
. ../Funcs.sh
parse_options $*
DATA=$LOCALBASE/share/atmsupport/testsuite_sscfu
$LOCALBASE/bin/ats_sscfu $options $DATA/Funcs $DATA/EST* $DATA/REL* \
$DATA/REC* $DATA/RES* $DATA/DATA* $DATA/UDATA*

View File

@ -0,0 +1,10 @@
#!/bin/sh
# $FreeBSD$
. ../Funcs.sh
parse_options $*
DATA=$LOCALBASE/share/atmsupport/testsuite_sscop
$LOCALBASE/bin/ats_sscop $options $DATA/Funcs $DATA/S*

View File

@ -0,0 +1,12 @@
#!/bin/sh
# $FreeBSD$
. ../Funcs.sh
parse_options $*
DATA=$LOCALBASE/share/atmsupport/testsuite_uni
$LOCALBASE/bin/ats_sig $options $DATA/Funcs $DATA/L3MU_Funcs $DATA/Restart.??? \
$DATA/Unknown.??? $DATA/Incoming.??? $DATA/MpOut.??? $DATA/MpIn.??? \
$DATA/L???_??_??