[DRE-commits] [ruby-pcaprub] 01/02: Run test suite using autopkgtest
Jérémy Bobbio
lunar at moszumanska.debian.org
Tue Sep 8 12:44:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository ruby-pcaprub.
commit 1473bf9aca824ea3446c8bc1339390b2a429e881
Author: Jérémy Bobbio <lunar at debian.org>
Date: Tue Sep 8 11:56:53 2015 +0200
Run test suite using autopkgtest
---
debian/ruby-tests.rake | 13 +++++++++++++
debian/tests/control | 3 +++
2 files changed, 16 insertions(+)
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..f2040d1
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,13 @@
+require 'rake/testtask'
+
+unless ENV['ADTTMP'].nil?
+ Rake::TestTask.new(:default) do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+ end
+ task :default => [:test]
+else
+ $stderr.puts "Not running in autopkgtest. Skipping tests."
+ task :default => []
+end
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..b7080c8
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Test-Command: gem2deb-test-runner --autopkgtest 2>&1
+Restrictions: needs-root, isolation-machine
+Depends: @, gem2deb-test-runner, rake, ruby-coveralls, ruby-minitest, ruby-shoulda-context
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-pcaprub.git
More information about the Pkg-ruby-extras-commits
mailing list