From 4ad8091da6f848ca831006d6993f45cc7b2934a0 Mon Sep 17 00:00:00 2001 From: Mikko Lehto Date: Mon, 9 Jan 2017 13:11:07 +0200 Subject: [PATCH] test/unit: update unit test 19 - does not need bash - change mi_fifo to jsonrpcs --- test/unit/19.cfg | 5 +++-- test/unit/19.sh | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/unit/19.cfg b/test/unit/19.cfg index 0aefe734294..ccc1e0e3f0f 100644 --- a/test/unit/19.cfg +++ b/test/unit/19.cfg @@ -18,12 +18,13 @@ loadmodule "sl/sl.so" loadmodule "maxfwd/maxfwd.so" loadmodule "pv/pv.so" #for debugging purposes only -loadmodule "mi_fifo/mi_fifo.so" +loadmodule "jsonrpcs" loadmodule "xlog/xlog.so" #-----------------------Module parameters------------------------------------- -modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo") +modparam("jsonrpcs", "transport", 2) +modparam("jsonrpcs", "fifo_name", "kamailio_rpc.fifo") modparam("usrloc", "db_mode", 3) modparam("usrloc", "db_url", "mysql://kamailio:kamailiorw@localhost/kamailio") diff --git a/test/unit/19.sh b/test/unit/19.sh index 2cbf18f18e5..8815aa07f54 100755 --- a/test/unit/19.sh +++ b/test/unit/19.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # check user lookup for proxy functionality with usrloc and registrar for mysql # Copyright (C) 2007 1&1 Internet AG @@ -36,9 +36,9 @@ UAC=5080 # add an registrar entry to the db; $MYSQL "INSERT INTO location (ruid,username,contact,socket,user_agent,cseq,q) VALUES (\"kamailio-unit-uid\", \"foo\",\"sip:foo@localhost:$UAS\",\"udp:127.0.0.1:$UAS\",\"kamailio_test\",1,-1);" -$BIN -L $MOD_DIR -Y $RUN_DIR -P $PIDFILE -w . -f $CFG > /dev/null -sipp -sn uas -bg -i localhost -m 10 -f 2 -p $UAS &> /dev/null -sipp -sn uac -s foo 127.0.0.1:$SRV -i localhost -m 10 -f 2 -p $UAC &> /dev/null +$BIN -L $MOD_DIR -Y $RUN_DIR -P $PIDFILE -w . -f $CFG -a no > /dev/null +sipp -sn uas -bg -i 127.0.0.1 -m 10 -f 2 -p $UAS > /dev/null 2>&1 +sipp -sn uac -s foo 127.0.0.1:$SRV -i 127.0.0.1 -m 10 -f 2 -p $UAC > /dev/null 2>&1 ret=$?