[DRE-commits] [gem2deb] 08/08: Add support for running the gem2deb testsuite with autopkgtest
Antonio Terceiro
terceiro at moszumanska.debian.org
Mon Feb 10 16: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 gem2deb.
commit af1e228822a18d343a393c7f9744c5d1e41ba389
Author: Antonio Terceiro <terceiro at debian.org>
Date: Mon Feb 10 11:51:47 2014 -0300
Add support for running the gem2deb testsuite with autopkgtest
---
debian/changelog | 1 +
debian/control | 1 +
debian/tests/control | 3 +++
debian/tests/testsuite | 10 ++++++++++
test/unit/secure_code_test.rb | 3 +--
5 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index cf6b621..e38ae68 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,7 @@ gem2deb (0.7.0) UNRELEASED; urgency=medium
- multiple interpreters won't be supported for Jessie, and any interpreter
that is not /usr/bin/ruby will have been installed by hand so we don't
want system binaries using external interpreters.
+ * Add support for running the gem2deb testsuite with autopkgtest
[ Cédric Boutillier ]
* Make build of C extensions verbose (Closes: #721674)
diff --git a/debian/control b/debian/control
index c7951c3..83cb1d2 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends: debhelper (>= 7.0.50~), rake, ruby-test-unit, ruby-shoulda-contex
Standards-Version: 3.9.5
Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/gem2deb.git
Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/gem2deb.git;a=summary
+XS-Testsuite: autopkgtest
Package: gem2deb
Architecture: all
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..ef6c541
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: testsuite
+Depends: @, @builddeps@
+Restrictions: rw-build-tree allow-stderr
diff --git a/debian/tests/testsuite b/debian/tests/testsuite
new file mode 100755
index 0000000..57de880
--- /dev/null
+++ b/debian/tests/testsuite
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+mv lib lib.off
+
+rake
+status=$?
+
+mv lib.off lib
+
+exit $status
diff --git a/test/unit/secure_code_test.rb b/test/unit/secure_code_test.rb
index 78cca56..cb48205 100644
--- a/test/unit/secure_code_test.rb
+++ b/test/unit/secure_code_test.rb
@@ -7,7 +7,6 @@ class SecureCodeTest < Gem2DebTestCase
unless insecure_code.empty?
fail "files containing insecure code: \n\t" + insecure_code.join("\n\t")
end
- end
-
+ end unless ENV['ADTTMP']
end
--
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