[DRE-commits] [ruby-em-synchrony] 01/01: run mysqld and run mysql2 tests
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Apr 24 03:51:16 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 04fa57c7c9a7e20c28961b626d37c94c6e542835
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Apr 24 09:20:43 2014 +0530
run mysqld and run mysql2 tests
---
debian/patches/disable-mysql2.patch | 65 -------------------------------------
debian/patches/series | 1 -
debian/rules | 5 +++
3 files changed, 5 insertions(+), 66 deletions(-)
diff --git a/debian/patches/disable-mysql2.patch b/debian/patches/disable-mysql2.patch
deleted file mode 100644
index afd82bf..0000000
--- a/debian/patches/disable-mysql2.patch
+++ /dev/null
@@ -1,65 +0,0 @@
---- a/spec/mysql2_spec.rb
-+++ b/spec/mysql2_spec.rb
-@@ -6,7 +6,7 @@
- DELAY = 0.25
- QUERY = "SELECT sleep(#{DELAY}) as mysql2_query"
-
-- it "should support queries" do
-+ xit "should support queries" do
- res = []
- EventMachine.synchrony do
- db = Mysql2::EM::Client.new
-@@ -18,7 +18,7 @@
- res.first.keys.should include("mysql2_query")
- end
-
-- it "should fire sequential, synchronous requests" do
-+ xit "should fire sequential, synchronous requests" do
- EventMachine.synchrony do
- db = Mysql2::EM::Client.new
-
-@@ -33,7 +33,7 @@
- end
- end
-
-- it "should have accept a callback, errback on async queries" do
-+ xit "should have accept a callback, errback on async queries" do
- EventMachine.synchrony do
- db = Mysql2::EM::Client.new
-
-@@ -46,7 +46,7 @@
- end
- end
-
-- it "should fire simultaneous requests via Multi interface" do
-+ xit "should fire simultaneous requests via Multi interface" do
- EventMachine.synchrony do
-
- db = EventMachine::Synchrony::ConnectionPool.new(size: 2) do
-@@ -68,7 +68,7 @@
- end
- end
-
-- it "should fire sequential and simultaneous MySQL requests" do
-+ xit "should fire sequential and simultaneous MySQL requests" do
- EventMachine.synchrony do
- db = EventMachine::Synchrony::ConnectionPool.new(size: 3) do
- Mysql2::EM::Client.new
-@@ -97,7 +97,7 @@
- end
- end
-
-- it "should raise Mysql::Error in case of error" do
-+ xit "should raise Mysql::Error in case of error" do
- EventMachine.synchrony do
- db = Mysql2::EM::Client.new
- proc {
-@@ -107,7 +107,7 @@
- end
- end
-
-- it "errback should not catch exception thrown from callback" do
-+ xit "errback should not catch exception thrown from callback" do
- class ErrbackShouldNotCatchThis < Exception; end
- proc {
- EM.synchrony do
diff --git a/debian/patches/series b/debian/patches/series
index 56997f2..f35fd47 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,7 +3,6 @@ disable-activerecord-tests.patch
disable-amqp.patch
disable-connection-pool-tests.patch
disable-em-mongo-test.patch
-disable-mysql2.patch
disable-memcached-tests.patch
disable-mongo-tests.patch
disable-remcached-tests.patch
diff --git a/debian/rules b/debian/rules
index 82ddc0c..f9b011a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,8 @@
%:
dh $@ --buildsystem=ruby --with ruby
+
+# need to start an mysqld instance to run the tests
+override_dh_auto_install:
+ chmod +x debian/start_mysqld_and_auto_install.sh
+ debian/start_mysqld_and_auto_install.sh
--
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