diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-16 06:15:24 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-16 06:15:24 +0000 |
commit | 16f96409b9ad2a1451c88b4e0074b57686f02269 (patch) | |
tree | 7c5c2e1d5276975aa26c9056a008cd302306a998 /sca-cpp/trunk/components/sqldb/server-test | |
parent | e351502e55d7de56a2d14ad33923f796a73d118f (diff) |
Test Postgresql hot standby + replication and integrated Postgresql database in store-cluster sample. Add a front cache component which can be used to wire a cache component and a database component.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@985799 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/components/sqldb/server-test')
-rwxr-xr-x | sca-cpp/trunk/components/sqldb/server-test | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sca-cpp/trunk/components/sqldb/server-test b/sca-cpp/trunk/components/sqldb/server-test index 784c7156c5..c07d3b0510 100755 --- a/sca-cpp/trunk/components/sqldb/server-test +++ b/sca-cpp/trunk/components/sqldb/server-test @@ -19,6 +19,11 @@ # Setup ../../modules/http/httpd-conf tmp localhost 8090 ../../modules/http/htdocs +./pgsql-conf tmp +./pgsql-start tmp +./pgsql "drop table test;" 1>/dev/null 2>&1 +./pgsql "create table test(key text, value text);" 1>/dev/null 2>&1 + ../../modules/server/server-conf tmp ../../modules/server/scheme-conf tmp cat >>tmp/conf/httpd.conf <<EOF @@ -26,9 +31,6 @@ SCAContribution `pwd`/ SCAComposite sqldb.composite EOF -./pgsql-start tmp -./pgsql "drop table test;" 1>/dev/null 2>&1 -./pgsql "create table test(key text, value text);" 1>/dev/null 2>&1 ../../modules/http/httpd-start tmp sleep 2 @@ -39,5 +41,4 @@ rc=$? # Cleanup ../../modules/http/httpd-stop tmp ./pgsql-stop tmp -sleep 2 return $rc |