[DRE-commits] [ruby-mousetrap-rails] 02/02: add smoke test
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Jan 12 11:29:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-mousetrap-rails.
commit 0657c944c34524b65c6fd57a11336782b64134ca
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue Jan 12 16:56:02 2016 +0530
add smoke test
---
debian/changelog | 1 +
debian/tests/control | 2 ++
debian/tests/control.ex | 13 -------------
debian/tests/smoke-test | 20 ++++++++++++++++++++
4 files changed, 23 insertions(+), 13 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 604db98..79e5d48 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ ruby-mousetrap-rails (1.4.6-4) unstable; urgency=medium
* Stop providing libjs-mousetrap (Closes: #804116)
libjs-mousetrap is now available as a separate package
+ * Add smoke test for assets
-- Pirate Praveen <praveen at debian.org> Tue, 12 Jan 2016 16:47:39 +0530
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d89edb1
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: smoke-test
+Depends: @, rails, ruby-coffee-script, ruby-jbuilder, ruby-sqlite3
diff --git a/debian/tests/control.ex b/debian/tests/control.ex
deleted file mode 100644
index d604201..0000000
--- a/debian/tests/control.ex
+++ /dev/null
@@ -1,13 +0,0 @@
-# AUTOGENERATED FILE
-#
-# As of autopkgtest 3.5, Ruby packages that use gem2deb are automatically
-# detected, and if debian/tests/control does not exist the contents below will
-# be assumed (with the exception of gem2deb being filtered out from
-# @builddeps@):
-
-Test-Command: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1
-Depends: @, @builddeps@, gem2deb-test-runner
-
-# if you would need to change something to the above, to that and rename this
-# file to `control`. Otherwise, you should probably delete this file
-# (recommended).
diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test
new file mode 100755
index 0000000..223d507
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+cd $ADTTMP
+
+rails new foo
+cd foo
+
+cat >> app/assets/javascripts/application.js <<EOF
+# =require mousetrap
+EOF
+
+cat >> Gemfile <<EOF
+gem 'mousetrap-rails'
+EOF
+
+bundle install --local
+bundle exec rake assets:precompile
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-mousetrap-rails.git
More information about the Pkg-ruby-extras-commits
mailing list