[DRE-commits] [ruby-ffi] 01/02: debian/tests/control: add `gem2deb-test-runner --autopkgtest`

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 24 14:06:27 UTC 2014


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

terceiro pushed a commit to branch master
in repository ruby-ffi.

commit e952f3e5094a664ec1da5317ce060b1a350d6ac0
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sun Aug 24 10:42:38 2014 -0300

    debian/tests/control: add `gem2deb-test-runner --autopkgtest`
---
 debian/changelog     | 8 ++++++++
 debian/ruby-tests.rb | 2 +-
 debian/tests/control | 3 +++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 82f2415..9af7c41 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ruby-ffi (1.9.3debian-3) UNRELEASED; urgency=medium
+
+   * debian/tests/control: also run test suite with
+     gem2deb-test-runner --autopkgtest
+     - needed to add './' to spec file glob in debian/ruby-tests.rb
+
+ -- Antonio Terceiro <terceiro at debian.org>  Sun, 24 Aug 2014 10:40:11 -0300
+
 ruby-ffi (1.9.3debian-2) unstable; urgency=medium
 
   * Add configuration file for mips64el (Closes: #756594)
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 517fa0b..36751de 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -2,7 +2,7 @@
 system('make -f libtest/GNUmakefile') or raise("Failed to build test library")
 
 require 'rspec/autorun'
-Dir.glob('spec/*/*_spec.rb').each do |spec|
+Dir.glob('./spec/*/*_spec.rb').each do |spec|
   require spec
 end
 
diff --git a/debian/tests/control b/debian/tests/control
index 53d6267..53a17fe 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1 +1,4 @@
 Tests: smoke
+
+Test-Command: gem2deb-test-runner --autopkgtest 2>&1
+Depends: @, gem2deb-test-runner, build-essential, ruby-rspec

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



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