[DRE-commits] [chef-zero] 03/04: Add autopkgtest that runs rspec against the installed package.

Stefano Rivera stefano at rivera.za.net
Sat May 3 13:07:43 UTC 2014


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

stefanor pushed a commit to branch master
in repository chef-zero.

commit 3318c62451a125fb6492476512d56059503e90a9
Author: Stefano Rivera <stefanor at debian.org>
Date:   Sat May 3 00:28:19 2014 +0200

    Add autopkgtest that runs rspec against the installed package.
---
 debian/changelog     | 1 +
 debian/control       | 1 +
 debian/tests/control | 2 ++
 debian/tests/rspec   | 9 +++++++++
 4 files changed, 13 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index abdf47b..09d4726 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 chef-zero (2.0.2-1) UNRELEASED; urgency=medium
 
   * New upstream release.
+  * Add autopkgtest that runs rspec against the installed package.
 
  -- Stefano Rivera <stefanor at debian.org>  Sat, 03 May 2014 00:00:13 +0200
 
diff --git a/debian/control b/debian/control
index d4a2947..975b86a 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/chef-zero.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/chef-zero.git;a=summary
 Homepage: http://www.opscode.com
 XS-Ruby-Versions: all
+XS-Testsuite: autopkgtest
 
 Package: chef-zero
 Architecture: all
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0135d45
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: rspec
+Depends: @, ruby-rspec
diff --git a/debian/tests/rspec b/debian/tests/rspec
new file mode 100755
index 0000000..2504b00
--- /dev/null
+++ b/debian/tests/rspec
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -efu
+
+cp -a spec "$ADTTMP"
+
+cd "$ADTTMP"
+
+export SKIP_PEDANT=1
+ruby spec/run.rb

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



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