[DRE-commits] [rails-3.2] 11/11: Add basic autopkgtest tests

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Dec 14 19:13:26 UTC 2013


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

terceiro pushed a commit to branch master
in repository rails-3.2.

commit 34822d80d8ef294749431343fb9d10e281d45334
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Dec 14 15:52:27 2013 -0300

    Add basic autopkgtest tests
---
 debian/control       |  1 +
 debian/tests/control |  2 ++
 debian/tests/newapp  | 17 +++++++++++++++++
 3 files changed, 20 insertions(+)

diff --git a/debian/control b/debian/control
index cad711c..30af226 100644
--- a/debian/control
+++ b/debian/control
@@ -12,6 +12,7 @@ Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/rails-3.2.git
 Vcs-Browser: http://anonscm.debian.org/git/?p=pkg-ruby-extras/rails-3.2.git;a=summary
 Homepage: http://www.rubyonrails.org
 XS-Ruby-Versions: all
+XS-Testsuite: autopkgtest
 
 Package: ruby-activesupport-3.2
 Architecture: all
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0576ec2
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: newapp
+Depends: @
diff --git a/debian/tests/newapp b/debian/tests/newapp
new file mode 100755
index 0000000..112ff2f
--- /dev/null
+++ b/debian/tests/newapp
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+cd $ADTTMP
+
+rails new foo
+cd foo
+
+# Does the empty app boots? This should catch dependency problems with gemspecs
+rails runner 'puts "Empty Rails %s app booted correctly" % Rails.version'
+
+# quick smoke test
+rails generate scaffold Product title
+rake db:migrate
+rake test
+

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



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