[DRE-commits] [gem2deb] 01/06: dh-make-ruby: create debian/tests/control.ex

Antonio Terceiro terceiro at moszumanska.debian.org
Mon Sep 8 20:33:51 UTC 2014


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

terceiro pushed a commit to branch master
in repository gem2deb.

commit 6912f737788f34b35e075b137149ef51fc598dac
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Mon Sep 8 14:01:18 2014 -0300

    dh-make-ruby: create debian/tests/control.ex
    
    autopkgtest will now autodetect Ruby packages and assume an implicit
    debian/tests/control if one does not exist
---
 debian/changelog                                          |  4 ++++
 lib/gem2deb/dh_make_ruby/template/debian/tests/control    |  9 ---------
 lib/gem2deb/dh_make_ruby/template/debian/tests/control.ex | 13 +++++++++++++
 3 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 430f7ad..ab1587e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,10 @@ gem2deb (0.9.2) UNRELEASED; urgency=medium
 
   * gem2deb-test-runner: add '.' to $LOAD_PATH with --autopkgtest
   * Gem2Deb::TestRunner: remove innocuous constructor
+  * dh-make-ruby won't create debian/tests/control anymore since autopkgtest
+    will now auto-detect Ruby packages and assume an implicit tests
+    definition. debian/tests/control.ex will be created instead, with comments
+    explaining to either modify it and rename to control, or delete it.
 
  -- Antonio Terceiro <terceiro at debian.org>  Tue, 02 Sep 2014 20:10:55 -0300
 
diff --git a/lib/gem2deb/dh_make_ruby/template/debian/tests/control b/lib/gem2deb/dh_make_ruby/template/debian/tests/control
deleted file mode 100644
index ba12c70..0000000
--- a/lib/gem2deb/dh_make_ruby/template/debian/tests/control
+++ /dev/null
@@ -1,9 +0,0 @@
-Test-Command: gem2deb-test-runner --autopkgtest 2>&1
-Depends: @, gem2deb-test-runner
-#FIXME: add to Depends ruby-rspec, ruby-test-unit... if needed
-#Restrictions: allow-stderr
-
-#FIXME: replace LIB by the name of the main file of the library
-#Test-Command: ruby -r LIB -e "puts true"
-#Depends: @
-
diff --git a/lib/gem2deb/dh_make_ruby/template/debian/tests/control.ex b/lib/gem2deb/dh_make_ruby/template/debian/tests/control.ex
new file mode 100644
index 0000000..429a392
--- /dev/null
+++ b/lib/gem2deb/dh_make_ruby/template/debian/tests/control.ex
@@ -0,0 +1,13 @@
+# AUTOGENERATED FILE
+#
+# As of autopkgtest 3.5, Ruby packages that use gem2deb are automatically
+# detected, and if debian/tests/control does not exist the contents below will
+# be assumed (with the exception of gem2deb being filtered out from
+# @builddeps@):
+
+Test-Command: gem2deb-test-runner --autopkgtest 2>&1
+Depends: @, @builddeps@, gem2deb-test-runner
+
+# if you would need to change something to the above, to that and rename this
+# file to `control`. Otherwise, you should probably delete this file
+# (recommended).

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



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