Browse Source

- add working dir to tests, to get core dumps

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3477 689a6050-402a-0410-94f2-e92a70836424
Henning Westerholt 17 years ago
parent
commit
8510baa55f
17 changed files with 17 additions and 16 deletions
  1. 1 1
      test/unit/1.sh
  2. 1 1
      test/unit/11.sh
  3. 1 1
      test/unit/12.sh
  4. 1 1
      test/unit/13.sh
  5. 1 1
      test/unit/14.sh
  6. 1 1
      test/unit/15.sh
  7. 1 1
      test/unit/16.sh
  8. 1 1
      test/unit/17.sh
  9. 1 1
      test/unit/19.sh
  10. 1 0
      test/unit/2.cfg
  11. 1 1
      test/unit/2.sh
  12. 1 1
      test/unit/20.sh
  13. 1 1
      test/unit/21.sh
  14. 1 1
      test/unit/4.sh
  15. 1 1
      test/unit/5.sh
  16. 1 1
      test/unit/6.sh
  17. 1 1
      test/unit/7.sh

+ 1 - 1
test/unit/1.sh

@@ -24,7 +24,7 @@ CFG=1.cfg
 # setup config
 echo -e "debug=3" > $CFG
 
-../openser -f $CFG > /dev/null
+../openser -w . -f $CFG > /dev/null
 ret=$?
 
 sleep 1

+ 1 - 1
test/unit/11.sh

@@ -31,7 +31,7 @@ if [ ! $ret -eq 0 ] ; then
 	exit 0
 fi ;
 
-../openser -f $CFG > /dev/null
+../openser -w . -f $CFG > /dev/null
 ret=$?
 
 sleep 1

+ 1 - 1
test/unit/12.sh

@@ -32,7 +32,7 @@ if [ ! $? -eq 0 ] ; then
 	exit 0
 fi ;
 
-../openser -f $CFG &> $TMPFILE
+../openser -w . -f $CFG &> $TMPFILE
 ret=$?
 
 sleep 1

+ 1 - 1
test/unit/13.sh

@@ -45,7 +45,7 @@ $MYSQL "insert into openser.carrierroute (id, carrier, scan_prefix, domain, prob
 $MYSQL "insert into openser.carrierroute (id, carrier, scan_prefix, domain, prob, strip, rewrite_host) values ('5','1','','0','0.1','0','host5.local');"
 $MYSQL "insert into openser.carrierroute (id, carrier, scan_prefix, domain, prob, strip, rewrite_host) values ('6','2','','0','1','0','host6.local');"
 
-../openser -f $CFG > /dev/null
+../openser -w . -f $CFG > /dev/null
 ret=$?
 
 sleep 1

+ 1 - 1
test/unit/14.sh

@@ -31,7 +31,7 @@ cp $CFG $CFG.bak
 # setup config
 echo "modparam(\"carrierroute\", \"config_file\", \"`pwd`/../test/carrierroute.cfg\")" >> $CFG
 
-../openser -f $CFG > /dev/null
+../openser -w . -f $CFG > /dev/null
 ret=$?
 
 sleep 1

+ 1 - 1
test/unit/15.sh

@@ -25,7 +25,7 @@ echo "loadmodule \"../modules/dbtext/dbtext.so\"" >> $CFG
 cat 2.cfg >> $CFG
 echo "modparam(\"acc|alias_db|auth_db|dialog|dispatcher|domain|domainpolicy|group|imc|lcr|msilo|siptrace|speeddial|uri_db|usrloc|permissions|pdt\", \"db_url\", \"dbtext://`pwd`/../scripts/dbtext/openser\")" >> $CFG
 
-../openser -f $CFG > /dev/null
+../openser -w . -f $CFG > /dev/null
 ret=$?
 
 sleep 1

+ 1 - 1
test/unit/16.sh

@@ -34,7 +34,7 @@ echo "modparam(\"acc|alias_db|auth_db|dialog|dispatcher|domain|domainpolicy|grou
 
 
 # start
-../openser -f $CFG > /dev/null
+../openser -w . -f $CFG > /dev/null
 ret=$?
 
 sleep 1

+ 1 - 1
test/unit/17.sh

@@ -46,7 +46,7 @@ sed -i "s/# INSTALL_SERWEB_TABLES=ask/INSTALL_SERWEB_TABLES=yes/g" openserctlrc
 ret=$?
 
 if [ "$ret" -eq 0 ] ; then
-	../openser -f ../test/$CFG > /dev/null	
+	../openser -w . -f ../test/$CFG > /dev/null	
 	ret=$?
 fi ;
 

+ 1 - 1
test/unit/19.sh

@@ -33,7 +33,7 @@ fi ;
 # add an registrar entry to the db;
 mysql --show-warnings -B -u openser --password=openserrw -D openser -e "INSERT INTO location (username,contact,socket,user_agent,cseq,q) VALUES (\"foo\",\"sip:foo@localhost\",\"udp:127.0.0.1:5060\",\"ser_test\",1,-1);"
 
-../openser -f $CFG &> /dev/null
+../openser -w . -f $CFG &> /dev/null
 sipp -sn uas -bg -i localhost -m 10 -f 2 -p 5060 &> /dev/null
 sipp -sn uac -s foo 127.0.0.1:5059 -i 127.0.0.1 -m 10 -f 2 -p 5061 &> /dev/null
 

+ 1 - 0
test/unit/2.cfg

@@ -1,3 +1,4 @@
+debug=6
 mpath="../modules"
 loadmodule "tm/tm.so"
 loadmodule "acc/acc.so"

+ 1 - 1
test/unit/2.sh

@@ -35,7 +35,7 @@ echo "loadmodule \"mysql/mysql.so\"" >> $CFG
 echo "modparam(\"dispatcher\", \"list_file\", \"`pwd`/../test/dispatcher.list\")" >> $CFG
 
 # start
-../openser -f $CFG > /dev/null
+../openser -w . -f $CFG > /dev/null
 ret=$?
 
 sleep 1

+ 1 - 1
test/unit/20.sh

@@ -42,7 +42,7 @@ mysql --show-warnings -B -u openser --password=openserrw -D openser -e "INSERT I
 
 sipp -sn uas -bg -i localhost -m 1 -f 10 -p 5060 &> /dev/null
 
-../openser -f $CFG &> $TMPFILE
+../openser -w . -f $CFG &> $TMPFILE
 
 sipp -sn uac -s foo 127.0.0.1:5059 -i 127.0.0.1 -m 1 -f 10 -p 5061 &> /dev/null
 

+ 1 - 1
test/unit/21.sh

@@ -41,7 +41,7 @@ fi;
 #username domain password email-adreess
 mysql --show-warnings -B -u openser --password=openserrw -D openser -e "INSERT INTO subscriber (username, domain, password, email_address) VALUES (\"alice\",\"localhost\",\"alice\",\"alice@localhost\");"
 
-../openser -f $CFG &> /dev/null;
+../openser -w . -f $CFG &> /dev/null;
 sipp -s alice 127.0.0.1:5059 -i 127.0.0.1 -m 1 -f 1 -auth_uri alice@localhost -p 5061 -sf auth_test.xml -ap alice &> /dev/null;
 
 ret=$?

+ 1 - 1
test/unit/4.sh

@@ -25,7 +25,7 @@ CFG=4.cfg
 echo -e "loadmodule \"../modules/mi_fifo/mi_fifo.so\"" > $CFG
 echo -e "modparam(\"mi_fifo\", \"fifo_name\", \"/tmp/openser_fifo\")" >> $CFG
 
-../openser -f $CFG > /dev/null
+../openser -w . -f $CFG > /dev/null
 ret=$?
 
 cd ../scripts

+ 1 - 1
test/unit/5.sh

@@ -24,7 +24,7 @@
 CFG=5.cfg
 
 # start
-../openser -f $CFG &> /dev/null
+../openser -w . -f $CFG &> /dev/null
 ret=$?
 
 sleep 1

+ 1 - 1
test/unit/6.sh

@@ -22,7 +22,7 @@
 CFG=2.cfg
 
 # start
-../openser -c -f $CFG > /dev/null 2>&1
+../openser -w -c -f $CFG > /dev/null 2>&1
 ret=$?
 
 if [ "$ret" -eq 0 ] ; then

+ 1 - 1
test/unit/7.sh

@@ -26,7 +26,7 @@
 CFG=7.cfg
 
 # start
-../openser -f $CFG > /dev/null
+../openser -w . -f $CFG > /dev/null
 ret=$?
 
 sleep 1