The output of test is easier to read when the name of the test script is
displayed in the test output. Therefore, we copy the setup/exit code
that is common to the all tests to the tests themselves.
. $(dirname $0)/wvtest.sh
-setup_dummy
+WVSTART Setup
+WVPASS fcb -dfcb.pid
+WVPASS frm_dummy -dfrm.pid
+
WVPASS dummy_spare_capacity
+
+WVSTART Kill
+WVPASS kill `cat fcb.pid`
+WVPASS rm fcb.pid
+WVPASS kill `cat frm.pid`
+WVPASS rm frm.pid
. $(dirname $0)/wvtest.sh
-setup_dummy
+trap '' SIGINT
+
+WVSTART Setup
+WVPASS fcb -dfcb.pid
+WVPASS frm_dummy -dfrm.pid
+
+
WVPASS negotiation
+
+WVSTART Kill
+WVPASS kill `cat fcb.pid`
+WVPASS rm fcb.pid
+WVPASS kill `cat frm.pid`
+WVPASS rm frm.pid
WVPASS frm_dummy -dfrm1.pid -i1
WVPASS frm_dummy -dfrm2.pid -i2
-trap '
+WVPASS trans_nego
+WVPASS trans_nego2
+
WVSTART Kill
WVPASS kill `cat fcb.pid`
WVPASS rm fcb.pid
WVPASS rm frm1.pid
WVPASS kill `cat frm2.pid`
WVPASS rm frm2.pid
-' 0
-
-WVPASS trans_nego
-WVPASS trans_nego2
+++ /dev/null
-. $(dirname $0)/../../../wvtest.sh
-
-setup_dummy() {
- WVSTART Setup
- WVPASS fcb -dfcb.pid
- WVPASS frm_dummy -dfrm.pid
- trap '
-WVSTART Kill
-WVPASS kill `cat fcb.pid`
-WVPASS rm fcb.pid
-WVPASS kill `cat frm.pid`
-WVPASS rm frm.pid
-' 0
-}
--- /dev/null
+../../../wvtest.sh
\ No newline at end of file