[DRE-commits] [ruby-get-process-mem] 04/04: Making tests run

Balasankar C balasankarc-guest at moszumanska.debian.org
Tue May 26 17:35:08 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository ruby-get-process-mem.

commit 63282e7323b5e1554ccc401051c7a0555db1b0af
Author: Balasankar C <balasankarc at autistici.org>
Date:   Tue May 26 23:02:11 2015 +0530

    Making tests run
---
 debian/patches/bundler      | 19 +++++++++++++++++++
 debian/patches/series       |  1 +
 debian/ruby-test-files.yaml |  3 ---
 debian/ruby-tests.rake      |  6 ++++++
 debian/rules                |  3 +++
 5 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/debian/patches/bundler b/debian/patches/bundler
new file mode 100644
index 0000000..c70fb0a
--- /dev/null
+++ b/debian/patches/bundler
@@ -0,0 +1,19 @@
+Description: Remove bundler usage
+ Remove the usage of bundler for finding out gems
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -1,5 +1,3 @@
+-Bundler.require
+-
+ require 'get_process_mem'
+ require 'test/unit'
+ 
+@@ -7,4 +5,4 @@
+   path = Pathname.new(File.expand_path("../fixtures", __FILE__))
+   return path.join(name) if name
+   path
+-end
+\ No newline at end of file
++end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b841526
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+bundler
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index 4395078..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-- test/get_process_mem_test.rb
-- test/test_helper.rb
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..ec86e0b
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,6 @@
+require 'gem2deb/rake/testtask'
+
+Gem2Deb::Rake::TestTask.new do |t|
+  t.libs << 'test'
+  t.test_files = FileList['test/**/*_test.rb']
+end
diff --git a/debian/rules b/debian/rules
index 5e904b3..f86dfb5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,6 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGELOG.md

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



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