[DRE-commits] [ruby-redcarpet] 03/03: add rdeps test

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Jan 1 11:09:36 UTC 2016


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

praveen pushed a commit to branch master
in repository ruby-redcarpet.

commit e93daf99d41d2125d724e8668dcd6d23766a43f3
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Jan 1 16:36:12 2016 +0530

    add rdeps test
---
 debian/changelog        |  1 +
 debian/tests/control    |  7 +++++++
 debian/tests/rdeps-test | 23 +++++++++++++++++++++++
 3 files changed, 31 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e4e6912..7df34d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ ruby-redcarpet (3.3.3-1) experimental; urgency=medium
 
   * New upstream patch release
   * Add myself to uploaders
+  * Add a simple rdeps test (need to fix their gemspec for tests to pass)
 
  -- Pirate Praveen <praveen at debian.org>  Fri, 01 Jan 2016 15:25:17 +0530
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..40a33e2
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,7 @@
+# Just make sure gemspec declared dependecy versions match
+Tests: rdeps-test
+Depends: @,  ruby-github-markup, ruby-markerb, yard, tdiary, ruby-middleware, 
+ mdpress, jekyll
+
+Test-Command: gem2deb-test-runner --autopkgtest 2>&1
+Depends: @, @builddeps@, gem2deb-test-runner
diff --git a/debian/tests/rdeps-test b/debian/tests/rdeps-test
new file mode 100644
index 0000000..9318ce1
--- /dev/null
+++ b/debian/tests/rdeps-test
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+cd $ADTTMP
+
+mkdir foo
+cd foo
+
+cat >Gemfile <<EOF
+source 'https://rubygems.org'
+
+gem 'github-markup'
+gem 'markerb'
+gem 'yard'
+gem 'tdiary'
+gem 'middleware'
+gem 'mdpress'
+gem 'jekyll'
+EOF
+
+bundle install --local

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



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