@@ -6,7 +6,9 @@
CFG=2.cfg
cp $CFG $CFG.bak
-echo "modparam(\"dispatcher\", \"list_file\", \"`pwd`/../etc/dispatcher.list\")" >> $CFG
+touch dispatcher.list
+
+echo "modparam(\"dispatcher\", \"list_file\", \"`pwd`/../test/dispatcher.list\")" >> $CFG
# start
../openser -f $CFG > /dev/null
@@ -16,5 +18,6 @@ sleep 1
killall -9 openser
mv $CFG.bak $CFG
+rm -f dispatcher.list
exit $ret
@@ -2,7 +2,7 @@
# creates a mysql database with openserdbctl and deletes it again
# Needs a mysql database, the root user password must be given
-# in the file 'dbrootpw'
+# in the file 'dbrootpw' in the test directory
if [ ! -f dbrootpw ] ; then
echo "no root password, not run"
@@ -0,0 +1,13 @@
+#!/bin/bash
+# checks a configuration with 'openser -c'
+CFG=2.cfg
+# start
+../openser -c -f $CFG > /dev/null
+ret=$?
+sleep 1
+killall -9 openser
+exit $ret