Module: sip-router
Branch: master
Commit: 688c565e4601bb8f0e6524108df3c76be50958e8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=688c565…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Date: Mon Jan 18 15:26:29 2010 +0200
test/unit/29.sh :Fixed test
---
test/unit/29.sh | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/test/unit/29.sh b/test/unit/29.sh
index 4c3147f..a023e53 100755
--- a/test/unit/29.sh
+++ b/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:alice@127.0.0.1 $CPL
+$CTL fifo LOAD_CPL sip:alice@127.0.0.1 $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:alice@127.0.0.1 > $TMPFILE
+ $CTL fifo GET_CPL sip:alice@127.0.0.1 > $TMPFILE
diff $TMPFILE $CPL
ret=$?
fi;
if [ "$ret" -eq 0 ] ; then
- ../scripts/$CTL fifo REMOVE_CPL sip:alice@127.0.0.1
- ../scripts/$CTL fifo GET_CPL sip:alice@127.0.0.1 > $TMPFILE
+ $CTL fifo REMOVE_CPL sip:alice@127.0.0.1
+ $CTL fifo GET_CPL sip:alice@127.0.0.1 > $TMPFILE
fi;
diff $TMPFILE $CPL &> /dev/null;