Jelajahi Sumber

test/unit/28.sh Fixed CPL-C module test

Marius Zbihlei 15 tahun lalu
induk
melakukan
8262c28e35
2 mengubah file dengan 12 tambahan dan 12 penghapusan
  1. 7 7
      test/unit/28.cfg
  2. 5 5
      test/unit/28.sh

+ 7 - 7
test/unit/28.cfg

@@ -1,15 +1,15 @@
 debug=3
 
-mpath="../modules"
+mpath="../../modules_k/"
 loadmodule "sl.so"
-loadmodule "tm.so"
-loadmodule "db_mysql.so"
-loadmodule "cpl-c.so"
-loadmodule "mi_fifo.so"
-loadmodule "textops.so"
+loadmodule "../../modules/tm/tm.so"
+loadmodule "../../modules/db_mysql/db_mysql.so"
+loadmodule "cpl-c/cpl-c.so"
+loadmodule "mi_fifo/mi_fifo.so"
+loadmodule "textops/textops.so"
 
 modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
-modparam("cpl-c","cpl_dtd_file","../modules/cpl-c/cpl-06.dtd")
+modparam("cpl-c","cpl_dtd_file","../../modules_k/cpl-c/cpl-06.dtd")
 
 route {
   if (is_method("INVITE")) {

+ 5 - 5
test/unit/28.sh

@@ -32,11 +32,11 @@ CPL=cpl_ignore.xml
 TMPFILE=`mktemp -t kamailio-test.XXXXXXXXXX`
 
 
-../$BIN -w . -f $CFG &> /dev/null;
+$BIN -w . -f $CFG &> /dev/null;
 ret=$?
 sleep 1
 
-../scripts/$CTL fifo LOAD_CPL sip:[email protected] $CPL
+$CTL fifo LOAD_CPL sip:[email protected] $CPL
 
 if [ "$ret" -eq 0 ] ; then
 	sipp -m 1 -f 1 127.0.0.1:5060 -sf cpl_test.xml &> /dev/null;
@@ -44,14 +44,14 @@ if [ "$ret" -eq 0 ] ; then
 fi;
 
 if [ "$ret" -eq 0 ] ; then
-  ../scripts/$CTL fifo GET_CPL sip:[email protected] > $TMPFILE 
+  $CTL fifo GET_CPL sip:[email protected] > $TMPFILE 
   diff $TMPFILE $CPL 
   ret=$?
 fi; 
 
 if [ "$ret" -eq 0 ] ; then
-  ../scripts/$CTL fifo REMOVE_CPL sip:[email protected]
-  ../scripts/$CTL fifo GET_CPL sip:[email protected] > $TMPFILE
+  $CTL fifo REMOVE_CPL sip:[email protected]
+  $CTL fifo GET_CPL sip:[email protected] > $TMPFILE
 fi;
 
 diff $TMPFILE $CPL &> /dev/null;