[DRE-commits] [rails-assets-jquery-fullscreen-plugin] 13/15: Add smoke-test

Syam G Krishnan syamgk-guest at moszumanska.debian.org
Sun Sep 6 22:10:03 UTC 2015


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

syamgk-guest pushed a commit to branch master
in repository rails-assets-jquery-fullscreen-plugin.

commit 0cc448a21ea4fd585dea7c8245be6b126c6863d3
Author: Syam G Krishnan <syamgk01 at gmail.com>
Date:   Mon Sep 7 03:17:53 2015 +0530

    Add smoke-test
---
 debian/tests/control    |  2 ++
 debian/tests/control.ex | 13 -------------
 debian/tests/smoke-test | 21 +++++++++++++++++++++
 3 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..c810c6a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: smoke-test
+Depends: @, rails
diff --git a/debian/tests/control.ex b/debian/tests/control.ex
deleted file mode 100644
index 429a392..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 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 100644
index 0000000..409e81a
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+cd $ADTTMP
+
+rails new foo
+cd foo
+
+cat >> app/assets/javascripts/application.js <<EOF
+# =require jquery-fullscreen-plugin
+EOF
+
+cat >> Gemfile <<EOF
+gem 'rails-assets-jquery-fullscreen-plugin'
+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/rails-assets-jquery-fullscreen-plugin.git



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