[DRE-commits] [ruby-rails-assets-diaspora-jsxc] 02/02: add a sprockets smoke test

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sat Sep 5 13:11:55 UTC 2015


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

praveen pushed a commit to branch master
in repository ruby-rails-assets-diaspora-jsxc.

commit dda43936271f51928b15ae0562729263ded3f0fc
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sat Sep 5 18:33:41 2015 +0530

    add a sprockets smoke test
---
 debian/tests/control    |  5 +++++
 debian/tests/control.ex | 13 -------------
 debian/tests/smoke-test | 14 ++++++++++++++
 3 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..7d9b804
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: smoke-test
+Depends: @, ruby-sprockets
+
+Test-Command: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1
+Depends: @, @builddeps@, gem2deb-test-runner
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 100755
index 0000000..97c62bd
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+cd $ADTTMP
+
+cat > foo.coffee <<EOF
+ at import diaspora_jsxc
+#= require diaspora_jsxc
+EOF
+
+sprockets -rrails -rrails-assets-diaspora_jsxc -I. foo.coffee
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rails-assets-diaspora-jsxc.git



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