Module: sip-router
Branch: master
Commit: a9f51d5565f5bd13f2f88bebb6c4874703e0324f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a9f51d5…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Wed May 6 18:26:49 2009 +0200
test: port test 2 to sr, comment non-working modules out
---
test/unit/2.cfg | 110 ++++++++++++++++++++++++++++---------------------------
test/unit/2.sh | 8 ++--
2 files changed, 60 insertions(+), 58 deletions(-)
diff --git a/test/unit/2.cfg b/test/unit/2.cfg
index 1bdf793..5b7a1df 100644
--- a/test/unit/2.cfg
+++ b/test/unit/2.cfg
@@ -1,60 +1,62 @@
-debug=3
-mpath="../modules"
-loadmodule "tm/tm.so"
-loadmodule "acc/acc.so"
-loadmodule "alias_db/alias_db.so"
-loadmodule "auth/auth.so"
-loadmodule "auth_db/auth_db.so"
-loadmodule "avpops/avpops.so"
-loadmodule "benchmark/benchmark.so"
-loadmodule "cfgutils/cfgutils.so"
-loadmodule "dialog/dialog.so"
-loadmodule "dispatcher/dispatcher.so"
-loadmodule "diversion/diversion.so"
-loadmodule "domain/domain.so"
-loadmodule "domainpolicy/domainpolicy.so"
-loadmodule "enum/enum.so"
-loadmodule "exec/exec.so"
-loadmodule "db_flatstore/db_flatstore.so"
-loadmodule "group/group.so"
-loadmodule "htable/htable.so"
-loadmodule "imc/imc.so"
-loadmodule "maxfwd/maxfwd.so"
-loadmodule "mi_datagram/mi_datagram.so"
-loadmodule "mi_fifo/mi_fifo.so"
-loadmodule "msilo/msilo.so"
-loadmodule "nathelper/nathelper.so"
-loadmodule "nat_traversal/nat_traversal.so"
-loadmodule "path/path.so"
-loadmodule "pike/pike.so"
-loadmodule "ratelimit/ratelimit.so"
-loadmodule "rr/rr.so"
-loadmodule "seas/seas.so"
-loadmodule "siptrace/siptrace.so"
-loadmodule "siputils/siputils.so"
-loadmodule "sl/sl.so"
-loadmodule "sms/sms.so"
-loadmodule "speeddial/speeddial.so"
-loadmodule "sst/sst.so"
-loadmodule "statistics/statistics.so"
-loadmodule "textops/textops.so"
-loadmodule "uac/uac.so"
-loadmodule "uac_redirect/uac_redirect.so"
-loadmodule "uri_db/uri_db.so"
-loadmodule "usrloc/usrloc.so"
-loadmodule "userblacklist/userblacklist.so"
-loadmodule "registrar/registrar.so"
-loadmodule "permissions/permissions.so"
-loadmodule "pdt/pdt.so"
-loadmodule "pv/pv.so"
-loadmodule "mediaproxy/mediaproxy.so"
-loadmodule "xlog/xlog.so"
+debug=2
+# FIXME
+##loadpath "../../modules"
+loadpath "../../modules_k"
+loadmodule "../../modules/tm/tm.so"
+loadmodule "acc"
+loadmodule "alias_db"
+loadmodule "auth"
+loadmodule "auth_db"
+loadmodule "avpops"
+loadmodule "benchmark"
+loadmodule "cfgutils"
+##loadmodule "dialog"
+##loadmodule "dispatcher"
+loadmodule "diversion"
+loadmodule "domain"
+loadmodule "domainpolicy"
+loadmodule "enum"
+loadmodule "exec"
+loadmodule "../../modules/db_flatstore/db_flatstore.so"
+loadmodule "group"
+loadmodule "htable"
+loadmodule "imc"
+loadmodule "maxfwd"
+loadmodule "mi_datagram"
+loadmodule "mi_fifo"
+loadmodule "msilo"
+loadmodule "nathelper"
+##loadmodule "nat_traversal"
+loadmodule "path"
+loadmodule "pike"
+loadmodule "ratelimit"
+loadmodule "rr"
+##loadmodule "seas"
+##loadmodule "siptrace"
+loadmodule "siputils"
+loadmodule "sl"
+loadmodule "sms"
+loadmodule "speeddial"
+loadmodule "sst"
+##loadmodule "statistics"
+loadmodule "textops"
+loadmodule "uac"
+##loadmodule "uac_redirect"
+loadmodule "uri_db"
+loadmodule "usrloc"
+loadmodule "userblacklist"
+##loadmodule "registrar"
+loadmodule "permissions"
+loadmodule "pdt"
+##loadmodule "pv"
+loadmodule "mediaproxy"
+loadmodule "xlog"
modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
modparam("mi_datagram", "socket_name",
"/tmp/kamailio.sock")
-modparam("dialog", "dlg_flag", 10)
-modparam("dialog", "db_mode", 2)
-modparam("tm", "fr_inv_timer_avp", "$avp(i:704)")
+##modparam("dialog", "dlg_flag", 10)
+##modparam("dialog", "db_mode", 2)
+##modparam("tm", "fr_inv_timer_avp", "$avp(i:704)")
modparam("^auth$|lcr", "rpid_avp", "$avp(i:302)")
modparam("sms", "modems", "Nokia
[d=/dev/ttyS1;b=9600;m=new;l=30] ")
modparam("sms", "networks", "D1 [m=10] ;d2[ m=20]")
diff --git a/test/unit/2.sh b/test/unit/2.sh
index d46f64e..8cbea91 100755
--- a/test/unit/2.sh
+++ b/test/unit/2.sh
@@ -35,11 +35,11 @@ cp $CFG $CFG.bak
touch dispatcher.list
-echo "loadmodule \"db_mysql/db_mysql.so\"" >> $CFG
-echo "modparam(\"dispatcher\", \"list_file\",
\"`pwd`/../test/dispatcher.list\")" >> $CFG
-
+##echo "loadmodule \"../../modules/db_mysql/db_mysql.so\"" >>
$CFG
+##echo "modparam(\"dispatcher\", \"list_file\",
\"`pwd`/../test/dispatcher.list\")" >> $CFG
+cat $CFG > foobar
# start
-../$BIN -w . -f $CFG > /dev/null
+$BIN -w . -f $CFG > /dev/null
ret=$?
sleep 1