Browse code

test/unit Added support for running the tests if kamailio was built instead of ser

Support was added by checking what executable exists in the $SR_DIR path

Marius Zbihlei authored on 12/03/2010 09:54:25
Showing 1 changed files
... ...
@@ -7,6 +7,15 @@ CTLRC="$CTL_DIR/kamctlrc"
7 7
 CTL="$CTL_DIR/kamctl"
8 8
 DBCTL="$CTL_DIR/kamdbctl"
9 9
 BIN="$SR_DIR/ser"
10
+if [ -f $SR_DIR/ser ] ; then
11
+    BIN="$SR_DIR/ser"
12
+else
13
+    if [ -f $SR_DIR/kamailio ] ; then
14
+	BIN="$SR_DIR/kamailio"
15
+    else
16
+	echo "WARNING Binary not found!"
17
+    fi
18
+fi
10 19
 KILL="killall -15 $BIN"
11 20
 # test directory relative to root
12 21
 TEST_DIR="test/unit"