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 (19 lines) | stat: -rwxr-xr-x 443 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# This regression test is a part of SIPp.
# Author: Walter Doekes, OSSO B.V., 2019
. "`dirname "$0"`/../functions"; init

tcplisten 5070 >empty-keyword-allowed.log 2>&1 &
listen=$!
sleep 1

( sippbg -m 1 -sf empty-keyword-allowed.xml -t t1 127.0.0.1:5070 \
    -key keyword '' ); ret=$?
/bin/kill -9 $listen 2>&1
test $ret -ne 0 && exit 1

if grep -q "X-Keyword: --" empty-keyword-allowed.log; then
    ok
else
    fail "on$fail"
fi