Module: sip-router
Branch: master
Commit: cd46c51dd12e85ba1508ce5752762269686eeded
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cd46c51…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: Sun Apr 21 18:49:19 2013 +0200
tests: fix some old paths
---
test/unit/10.sh | 2 +-
test/unit/17.sh | 2 +-
test/unit/3.sh | 2 +-
test/unit/35.sh | 4 ++--
test/unit/8.sh | 2 +-
test/unit/9.sh | 2 +-
6 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/test/unit/10.sh b/test/unit/10.sh
index d8eb6eb..be3b746 100755
--- a/test/unit/10.sh
+++ b/test/unit/10.sh
@@ -21,7 +21,7 @@
source include/common
-cd ../scripts
+cd $CTL_DIR
# setup config file
cp $CTLRC $CTLRC.bak
diff --git a/test/unit/17.sh b/test/unit/17.sh
index f162e7e..eeb69bb 100755
--- a/test/unit/17.sh
+++ b/test/unit/17.sh
@@ -32,7 +32,7 @@ tmp_name=""$RANDOM"_kamailiodb_tmp"
echo "loadmodule \"../../modules/db_berkeley/db_berkeley.so\""
>> $CFG
cat 2.cfg >> $CFG
-echo "modparam(\"$DB_ALL_MOD\", \"db_url\",
\"berkeley://`pwd`/../scripts/$tmp_name\")" >> $CFG
+echo "modparam(\"$DB_ALL_MOD\", \"db_url\",
\"berkeley://`pwd`/$CTL_DIR/$tmp_name\")" >> $CFG
# setup config file
cp $CTLRC $CTLRC.bak
diff --git a/test/unit/3.sh b/test/unit/3.sh
index a5f808f..0a4fedb 100755
--- a/test/unit/3.sh
+++ b/test/unit/3.sh
@@ -34,7 +34,7 @@ source dbrootpw
tmp_name=""$RANDOM"_kamailiodb_tmp"
-cd ../scripts
+cd $CTL_DIR
# setup config file
cp $CTLRC $CTLRC.bak
diff --git a/test/unit/35.sh b/test/unit/35.sh
index 91efbdb..c16ad0b 100755
--- a/test/unit/35.sh
+++ b/test/unit/35.sh
@@ -52,8 +52,8 @@ if [ "$ret" -eq 0 ] ; then
MASK=10
$MYSQL "INSERT INTO address (ip_addr, mask) VALUES ('$IP',
'$MASK');"
- ../scripts/$CTL fifo address_reload
- #../scripts/$CTL fifo address_dump
+ $CTL fifo address_reload
+ #$CTL fifo address_dump
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
diff --git a/test/unit/8.sh b/test/unit/8.sh
index 4569a9c..98769c2 100755
--- a/test/unit/8.sh
+++ b/test/unit/8.sh
@@ -23,7 +23,7 @@ source include/common
tmp_name=""$RANDOM"_kamailiodb_tmp"
-cd ../scripts
+cd $CTL_DIR
# setup config file
cp $CTLRC $CTLRC.bak
diff --git a/test/unit/9.sh b/test/unit/9.sh
index bdcafb7..cd18c3e 100755
--- a/test/unit/9.sh
+++ b/test/unit/9.sh
@@ -21,7 +21,7 @@
source include/common
-cd ../scripts
+cd $CTL_DIR
# setup config file
cp $CTLRC $CTLRC.bak