[DRE-commits] [ruby-devise] 02/03: Added DEP-8 (autopkgtest) smoke tests
Antonio Terceiro
terceiro at moszumanska.debian.org
Wed Nov 11 17:47:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-devise.
commit 28d2305d49ff93b97df18cd9ec2eebb3ee2fb345
Author: Antonio Terceiro <terceiro at debian.org>
Date: Wed Nov 11 15:43:42 2015 -0200
Added DEP-8 (autopkgtest) smoke tests
---
debian/changelog | 1 +
debian/tests/control | 3 +++
debian/tests/smoke-test | 22 ++++++++++++++++++++++
3 files changed, 26 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 6d5304b..ffb0aaa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ruby-devise (3.5.2-2) UNRELEASED; urgency=medium
* Team upload.
* debian/patches/locales.patch: copy locales file from the right place
(fixes rails generator)
+ * Added DEP-8 (autopkgtest) smoke tests
-- Antonio Terceiro <terceiro at debian.org> Wed, 11 Nov 2015 15:40:56 -0200
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..cb68f8d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: smoke-test
+Depends: @, rails
+Restrictions: needs-recommends
diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test
new file mode 100644
index 0000000..e20b36a
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ -z "$ADTTMP" ]; then
+ ADTTMP=$(mktemp -d)
+ cleanup() {
+ rm -rf "$ADTTMP"
+ }
+ trap cleanup INT TERM EXIT
+fi
+
+cd $ADTTMP
+
+exec 2>&1
+set -ex
+
+rails new myapp
+cd myapp
+
+rails generate devise:install
+
+test -f config/initializers/devise.rb
+test -f config/locales/devise.en.yml
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-devise.git
More information about the Pkg-ruby-extras-commits
mailing list