[DRE-commits] [ruby-prawn] 15/15: Add autopkgtest support

Cédric Boutillier boutil at moszumanska.debian.org
Mon Sep 8 14:04:25 UTC 2014


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

boutil pushed a commit to branch master
in repository ruby-prawn.

commit dc7e549648be222f9b3abd16433a52b8b5c56667
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Sep 8 15:58:02 2014 +0200

    Add autopkgtest support
---
 debian/changelog     | 1 +
 debian/ruby-tests.rb | 2 +-
 debian/tests/control | 5 +++++
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index cf2b1f6..a3d048b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,7 @@ ruby-prawn (1.2.1+dfsg-1) unstable; urgency=medium
     - fix entry for lib/prawn/graphics/gradient.rb, renamed/rewritten
       to patterns.rb
     - fix typo in lib/prawn/measurements.rb filename
+  * Add autopkgtest support
 
  -- Cédric Boutillier <boutil at debian.org>  Mon, 08 Sep 2014 14:15:05 +0200
 
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 772e6e7..6da7bcb 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -5,4 +5,4 @@ RSpec.configure do |c|
   c.filter_run_excluding :unresolved => true
 end
 
-Dir['spec/*_spec.rb'].each { |f| require f }
+Dir['./spec/*_spec.rb'].each { |f| require f }
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..c9dd881
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Test-Command: gem2deb-test-runner --autopkgtest 2>&1
+Depends: @, gem2deb-test-runner, ruby-mocha, ruby-pdf-inspector, ruby-rspec
+
+Test-Command: ruby -r "prawn" -e "puts true"
+

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



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