2
0
Эх сурвалжийг харах

test/unit/29.sh :Fixed test

Marius Zbihlei 15 жил өмнө
parent
commit
688c565e46
1 өөрчлөгдсөн 6 нэмэгдсэн , 6 устгасан
  1. 6 6
      test/unit/29.sh

+ 6 - 6
test/unit/29.sh

@@ -31,15 +31,15 @@ CPL=cpl_ignore.xml
 TMPFILE=`mktemp -t kamailio-test.XXXXXXXXXX`
 
 cp $CFG $CFG.tmp
-echo "loadmodule \"db_postgres/db_postgres.so\"" >> $CFG
+echo "loadmodule \"../../modules/db_postgres/db_postgres.so\"" >> $CFG
 echo "modparam(\"cpl-c\", \"db_url\", \"postgres://openser:openserrw@localhost/openser\")" >> $CFG
 
 
-../$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;
@@ -47,14 +47,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;