Jelajahi Sumber

tests: fix some old paths

Henning Westerholt 12 tahun lalu
induk
melakukan
cd46c51dd1
6 mengubah file dengan 7 tambahan dan 7 penghapusan
  1. 1 1
      test/unit/10.sh
  2. 1 1
      test/unit/17.sh
  3. 1 1
      test/unit/3.sh
  4. 2 2
      test/unit/35.sh
  5. 1 1
      test/unit/8.sh
  6. 1 1
      test/unit/9.sh

+ 1 - 1
test/unit/10.sh

@@ -21,7 +21,7 @@
 
 source include/common
 
-cd ../scripts
+cd $CTL_DIR
 
 # setup config file
 cp $CTLRC $CTLRC.bak

+ 1 - 1
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

+ 1 - 1
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

+ 2 - 2
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

+ 1 - 1
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

+ 1 - 1
test/unit/9.sh

@@ -21,7 +21,7 @@
 
 source include/common
 
-cd ../scripts
+cd $CTL_DIR
 
 # setup config file
 cp $CTLRC $CTLRC.bak