[DRE-commits] [gem2deb] 08/08: add templates for debian/tests files

Cédric Boutillier boutil at moszumanska.debian.org
Mon Aug 11 13:28:30 UTC 2014


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

boutil pushed a commit to branch autopkgtest
in repository gem2deb.

commit 364679ac7aa607493ec205cb4a9e89174a493043
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Aug 8 23:10:27 2014 +0200

    add templates for debian/tests files
---
 lib/gem2deb/dh_make_ruby/template/debian/tests/control   | 6 ++++++
 lib/gem2deb/dh_make_ruby/template/debian/tests/load-test | 4 ++++
 lib/gem2deb/dh_make_ruby/template/debian/tests/testsuite | 3 +++
 3 files changed, 13 insertions(+)

diff --git a/lib/gem2deb/dh_make_ruby/template/debian/tests/control b/lib/gem2deb/dh_make_ruby/template/debian/tests/control
new file mode 100644
index 0000000..02385f9
--- /dev/null
+++ b/lib/gem2deb/dh_make_ruby/template/debian/tests/control
@@ -0,0 +1,6 @@
+Tests: testsuite
+Depends: @, @builddeps@, gem2deb-test-runner
+
+Tests: load-test
+Depends: @
+
diff --git a/lib/gem2deb/dh_make_ruby/template/debian/tests/load-test b/lib/gem2deb/dh_make_ruby/template/debian/tests/load-test
new file mode 100644
index 0000000..ea5f808
--- /dev/null
+++ b/lib/gem2deb/dh_make_ruby/template/debian/tests/load-test
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+#FIXME: replace LIB by the name of the main file of the library
+#ruby -r LIB -e "puts true"
diff --git a/lib/gem2deb/dh_make_ruby/template/debian/tests/testsuite b/lib/gem2deb/dh_make_ruby/template/debian/tests/testsuite
new file mode 100755
index 0000000..276045a
--- /dev/null
+++ b/lib/gem2deb/dh_make_ruby/template/debian/tests/testsuite
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+gem2deb-test-runner

-- 
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