[DRE-commits] [redmine] 10/26: Add smoke test as autopkgtest test suite.

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Sep 14 17:54:46 UTC 2014


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

terceiro pushed a commit to branch master
in repository redmine.

commit c2c323f0454319eb742fc473b5674ea489ba0926
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Sep 13 21:55:23 2014 -0300

    Add smoke test as autopkgtest test suite.
---
 debian/changelog        |  1 +
 debian/control          |  1 +
 debian/tests/control    |  3 +++
 debian/tests/smoke-test | 25 +++++++++++++++++++++++++
 4 files changed, 30 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5f2d8da..15a96b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ redmine (3.0~20140825-1) UNRELEASED; urgency=medium
   * debian/rules: stop messing with the Gemfile
   * debian/patches/gemfile-adjustments.patch: make adjustments to version
     expectations; some of them are too strict
+  * Add smoke test as autopkgtest test suite.
 
  -- Antonio Terceiro <terceiro at debian.org>  Mon, 25 Aug 2014 21:04:18 -0300
 
diff --git a/debian/control b/debian/control
index be59435..d712753 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Standards-Version: 3.9.4
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/redmine.git
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/redmine.git
 Homepage: http://www.redmine.org
+Testsuite: autopkgtest
 
 Package: redmine
 Architecture: all
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0097add
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Test-Command: debian/tests/smoke-test
+Depends: redmine, redmine-sqlite, apache2, libapache2-mod-passenger, curl
+Restrictions: needs-root, breaks-testbed
diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test
new file mode 100644
index 0000000..c0a55d9
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+exec 2>&1
+set -e
+
+cat > /etc/apache2/sites-enabled/000-default.conf <<EOF
+<VirtualHost *:80>
+        RailsEnv production
+        SetEnv X_DEBIAN_SITEID "default"
+        PassengerDefaultUser www-data
+        Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/
+        DocumentRoot /usr/share/redmine/public
+        <Directory "/usr/share/redmine/public">
+          Allow from all
+          Options -MultiViews
+          Require all granted
+        </Directory>
+  ErrorLog /var/log/apache2/redmine.error.log
+  CustomLog ${APACHE_LOG_DIR}/redmine.access.log vhost_combined
+</VirtualHost>
+EOF
+
+service apache2 restart
+
+curl -s http://localhost/ | grep 'meta.*name="description".*content="Redmine"'

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



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