[DRE-commits] [ruby-em-synchrony] 01/02: create tables for activerecord tests

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Apr 24 05:50:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository ruby-em-synchrony.

commit b75f1a5ab4b100f4eacc49e229fd9c19747eadaf
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Thu Apr 24 11:20:04 2014 +0530

    create tables for activerecord tests
---
 debian/start_services_and_auto_install.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/start_services_and_auto_install.sh b/debian/start_services_and_auto_install.sh
index 5574cf4..834f109 100755
--- a/debian/start_services_and_auto_install.sh
+++ b/debian/start_services_and_auto_install.sh
@@ -40,11 +40,18 @@ done
 #mysql --socket=${MYSQL_UNIX_PORT} --execute "CREATE DATABASE ${DO_MYSQL_DBNAME};"
 mysql --socket=${MYSQL_UNIX_PORT} --execute "GRANT ALL PRIVILEGES ON ${DO_MYSQL_DBNAME}.* TO '${DO_MYSQL_USER}'@'localhost' IDENTIFIED BY '${DO_MYSQL_PASS}';"
 
+# Create database for activerecord tests
+mysql --socket=${MYSQL_UNIX_PORT} --execute "create database widgets;"
+mysql --socket=${MYSQL_UNIX_PORT} --execute "create table widgets.widgets (id INT NOT NULL AUTO_INCREMENT, title varchar(255), PRIMARY KEY (id) );"
+
 # Start redis server
 redis-server --daemonize yes
 
 dh_auto_install
 
+# Drop databases
+mysql --socket=${MYSQL_UNIX_PORT} --execute "drop database widgets;"
+
 # Stop mysqld
 /usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} shutdown
 rm -rf ${MYTEMP_DIR}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-em-synchrony.git



More information about the Pkg-ruby-extras-commits mailing list