Module: sip-router
Branch: master
Commit: 0921a4f6a2215b3e60bcc0dee4afe826f55a91d2
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0921a4f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Oct 2 17:58:09 2014 +0200
test/unit: updated test units 8 and 9
---
test/unit/8.sh | 11 ++++++-----
test/unit/9.sh | 8 ++++----
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/test/unit/8.sh b/test/unit/8.sh
index 6412484..3165e2f 100755
--- a/test/unit/8.sh
+++ b/test/unit/8.sh
@@ -27,12 +27,13 @@ cd $CTL_DIR
# setup config file
cp $CTLRC $CTLRC.bak
-sed -i "s/# DBENGINE=MYSQL/DBENGINE=DBTEXT/g" $CTLRC
-sed -i "s/# INSTALL_EXTRA_TABLES=ask/INSTALL_EXTRA_TABLES=yes/g" $CTLRC
-sed -i "s/# INSTALL_PRESENCE_TABLES=ask/INSTALL_PRESENCE_TABLES=yes/g" $CTLRC
+sed -i'' -e "s/# DBENGINE=MYSQL/DBENGINE=DBTEXT/g" $CTLRC
+sed -i'' -e "s/# INSTALL_EXTRA_TABLES=ask/INSTALL_EXTRA_TABLES=yes/g"
$CTLRC
+sed -i'' -e "s/#
INSTALL_PRESENCE_TABLES=ask/INSTALL_PRESENCE_TABLES=yes/g" $CTLRC
+sed -i'' -e "s/# INSTALL_DBUID_TABLES=ask/INSTALL_DBUID_TABLES=yes/g"
$CTLRC
cp $DBCTL $DBCTL.bak
-sed -i "s/TEST=\"false\"/TEST=\"true\"/g" $DBCTL
+sed -i'' -e "s/TEST=\"false\"/TEST=\"true\"/g"
$DBCTL
./$DBCTL create $tmp_name > /dev/null
ret=$?
@@ -46,4 +47,4 @@ fi ;
mv $CTLRC.bak $CTLRC
mv $DBCTL.bak $DBCTL
-exit $ret
\ No newline at end of file
+exit $ret
diff --git a/test/unit/9.sh b/test/unit/9.sh
index a393b55..8e21626 100755
--- a/test/unit/9.sh
+++ b/test/unit/9.sh
@@ -26,8 +26,8 @@ cd $CTL_DIR
# setup config file
cp $CTLRC $CTLRC.bak
cp $CTL $CTL.bak
-sed -i "s/# DBENGINE=MYSQL/DBENGINE=MYSQL/g" $CTLRC
-sed -i "s/TEST=\"false\"/TEST=\"true\"/g" $CTL
+sed -i'' -e "s/# DBENGINE=MYSQL/DBENGINE=MYSQL/g" $CTLRC
+sed -i'' -e "s/TEST=\"false\"/TEST=\"true\"/g"
$CTL
./$CTL avp list > /dev/null
@@ -39,7 +39,7 @@ if [ "$ret" -eq 0 ] ; then
fi ;
if [ "$ret" -eq 0 ] ; then
- ./$CTL lcr show > /dev/null
+ ./$CTL dispatcher show > /dev/null
ret=$?
fi ;
@@ -47,4 +47,4 @@ fi ;
mv $CTLRC.bak $CTLRC
mv $CTL.bak $CTL
-exit $ret
\ No newline at end of file
+exit $ret