[DRE-commits] [ruby-oauth] 06/06: enable testcases except test_em_http_client.rb and test_em_http_request_proxy.rb
Daisuke Higuchi
dai at moszumanska.debian.org
Sun May 22 12:24:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
dai pushed a commit to branch master
in repository ruby-oauth.
commit 3dfe652eb3efa135b527a5fa0f8796f8c4fc885d
Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
Date: Sun May 22 21:20:07 2016 +0900
enable testcases except test_em_http_client.rb and test_em_http_request_proxy.rb
ruby-oauth test requires ruby-em-http-request 0.2.11,
but ruby-em-http-request in Debian is already 1.1.2, so skip them at now.
---
debian/control | 9 ++++++++
debian/patches/add_missing_rsa.patch | 41 ++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/ruby-tests.rb | 20 ++++++------------
4 files changed, 58 insertions(+), 13 deletions(-)
diff --git a/debian/control b/debian/control
index bc66cc4..674a7fd 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,15 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
Uploaders: Taku YASUI <tach at debian.org>
Build-Depends: debhelper (>= 9~),
gem2deb,
+ ruby-actionpack,
+ ruby-byebug,
+ ruby-curb,
+ ruby-mocha,
+ ruby-typhoeus,
+ ruby-rack-test,
+ ruby-webmock,
+ ruby-activesupport,
+ ruby-rest-client,
rake
Standards-Version: 3.9.8
Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-oauth.git
diff --git a/debian/patches/add_missing_rsa.patch b/debian/patches/add_missing_rsa.patch
new file mode 100644
index 0000000..0285520
--- /dev/null
+++ b/debian/patches/add_missing_rsa.patch
@@ -0,0 +1,41 @@
+Description: Add missing RSA files
+Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
+Last-Update: 2016-05-22
+
+Index: ruby-oauth/test/keys/rsa.cert
+===================================================================
+--- /dev/null
++++ ruby-oauth/test/keys/rsa.cert
+@@ -0,0 +1,11 @@
++-----BEGIN CERTIFICATE-----
++MIIBpjCCAQ+gAwIBAgIBATANBgkqhkiG9w0BAQUFADAZMRcwFQYDVQQDDA5UZXN0
++IFByaW5jaXBhbDAeFw03MDAxMDEwODAwMDBaFw0zODEyMzEwODAwMDBaMBkxFzAV
++BgNVBAMMDlRlc3QgUHJpbmNpcGFsMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
++gQC0YjCwIfYoprq/FQO6lb3asXrxLlJFuCvtinTF5p0GxvQGu5O3gYytUvtC2JlY
++zypSRjVxwxrsuRcP3e641SdASwfrmzyvIgP08N4S0IFzEURkV1wp/IpH7kH41Etb
++mUmrXSwfNZsnQRE5SYSOhh+LcK2wyQkdgcMv11l4KoBkcwIDAQABMA0GCSqGSIb3
++DQEBBQUAA4GBAGZLPEuJ5SiJ2ryq+CmEGOXfvlTtEL2nuGtr9PewxkgnOjZpUy+d
++4TvuXJbNQc8f4AMWL/tO9w0Fk80rWKp9ea8/df4qMq5qlFWlx6yOLQxumNOmECKb
++WpkUQDIDJEoFUzKMVuJf4KO/FJ345+BNLGgbJ6WujreoM1X/gYfdnJ/J
++-----END CERTIFICATE-----
+Index: ruby-oauth/test/keys/rsa.pem
+===================================================================
+--- /dev/null
++++ ruby-oauth/test/keys/rsa.pem
+@@ -0,0 +1,16 @@
++-----BEGIN PRIVATE KEY-----
++MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBALRiMLAh9iimur8V
++A7qVvdqxevEuUkW4K+2KdMXmnQbG9Aa7k7eBjK1S+0LYmVjPKlJGNXHDGuy5Fw/d
++7rjVJ0BLB+ubPK8iA/Tw3hLQgXMRRGRXXCn8ikfuQfjUS1uZSatdLB81mydBETlJ
++hI6GH4twrbDJCR2Bwy/XWXgqgGRzAgMBAAECgYBYWVtleUzavkbrPjy0T5FMou8H
++X9u2AC2ry8vD/l7cqedtwMPp9k7TubgNFo+NGvKsl2ynyprOZR1xjQ7WgrgVB+mm
++uScOM/5HVceFuGRDhYTCObE+y1kxRloNYXnx3ei1zbeYLPCHdhxRYW7T0qcynNmw
++rn05/KO2RLjgQNalsQJBANeA3Q4Nugqy4QBUCEC09SqylT2K9FrrItqL2QKc9v0Z
++zO2uwllCbg0dwpVuYPYXYvikNHHg+aCWF+VXsb9rpPsCQQDWR9TT4ORdzoj+Nccn
++qkMsDmzt0EfNaAOwHOmVJ2RVBspPcxt5iN4HI7HNeG6U5YsFBb+/GZbgfBT3kpNG
++WPTpAkBI+gFhjfJvRw38n3g/+UeAkwMI2TJQS4n8+hid0uus3/zOjDySH3XHCUno
++cn1xOJAyZODBo47E+67R4jV1/gzbAkEAklJaspRPXP877NssM5nAZMU0/O/NGCZ+
++3jPgDUno6WbJn5cqm8MqWhW1xGkImgRk+fkDBquiq4gPiT898jusgQJAd5Zrr6Q8
++AO/0isr/3aa6O6NLQxISLKcPDk2NOccAfS/xOtfOz4sJYM3+Bs4Io9+dZGSDCA54
++Lw03eHTNQghS0A==
++-----END PRIVATE KEY-----
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8699276
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+add_missing_rsa.patch
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index eac5ce6..95c4201 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,13 +1,7 @@
-# FIXME
-# there's a spec/ or a test/ directory in the upstream source, but
-# no test suite was defined in the Gem specification. It would be
-# a good idea to define it here so the package gets tested at build time.
-# Examples:
-# $: << 'lib' << '.'
-# Dir['{spec,test}/**/*.rb'].each { |f| require f }
-#
-# require 'test/ts_foo.rb'
-#
-# require 'rbconfig'
-# ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-# exec("#{ruby} -I. test/runtests.rb")
+Dir['test/**/*.rb'].each { |f|
+ # TODO: ruby-oauth test requires ruby-em-http-request 0.2.11,
+ # but ruby-em-http-request in Debian is already 1.1.2, so skip them at now.
+ next if f == 'test/test_em_http_client.rb'
+ next if f == 'test/test_em_http_request_proxy.rb'
+ require f
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-oauth.git
More information about the Pkg-ruby-extras-commits
mailing list