浏览代码

- openserctl test for dbtext

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3091 689a6050-402a-0410-94f2-e92a70836424
Henning Westerholt 18 年之前
父节点
当前提交
08c5fc92bc
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      test/unit/10.sh

+ 28 - 0
test/unit/10.sh

@@ -0,0 +1,28 @@
+#!/bin/bash
+# test basic db related openserctl functionality for dbtext
+
+cd ../scripts
+
+# setup config file
+cp openserctlrc openserctlrc.bak
+sed -i "s/# DBENGINE=MYSQL/DBENGINE=DBTEXT/g" openserctlrc
+
+./openserctl avp list > /dev/null
+
+ret=$?
+
+if [ "$ret" -eq 0 ] ; then
+	./openserctl domain showdb > /dev/null
+	ret=$?
+fi ;
+
+if [ "$ret" -eq 0 ] ; then
+	./openserctl lcr show > /dev/null
+	ret=$?
+fi ;
+
+# cleanup
+mv openserctlrc.bak openserctlrc
+
+cd ../test
+exit $ret