File: run

package info (click to toggle)
sip-tester 1%3A3.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,932 kB
  • sloc: cpp: 29,383; xml: 13,436; ansic: 2,381; python: 2,218; sh: 505; makefile: 13
file content (32 lines) | stat: -rwxr-xr-x 908 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
# This regression test is a part of SIPp.
# Author: Walter Doekes, OSSO B.V., 2015
. "`dirname "$0"`/../functions"; init

# Test that out-of-dialog INFO, NOTIFY, UPDATE and OPTIONS get an
# automatic 200 reply with automaticResponseMode (-aa):
sippbg -sn uas -i 127.0.0.1 -p 5070 -m 1 -aa
sippbg -sf uac.xml -i 127.0.0.1 -m 1 127.0.0.1:5070
job2=$!

# If job2 did not finish, we have failure.
if /bin/kill -0 $job2 2>/dev/null; then
    fail
fi

# Remove all running sipp instances manually.
cleanup

# Test that out-of-dialog INFO, NOTIFY, UPDATE and OPTIONS do *NOT*
# get the automatic 200 if we don't use automaticResponseMode (-aa).
sippbg -sn uas -i 127.0.0.1 -p 5070 -m 1
sippbg -sf uac.xml -i 127.0.0.1 -m 1 127.0.0.1:5070
job2=$!

# If job2 did not finish, it is waiting for job1 to send a 200. This
# is expected behaviour.
if /bin/kill -0 $job2 2>/dev/null; then
    ok
else
    fail
fi